You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using this extension with my WeatherLink Live and Davis Pro account. I have the extension configured and it works, but I get these errors in the weewx.log.
Any idea how to clear these? is it a mapping issue?
2022-04-02 14:22:16 weewx[1] ERROR user.davishealthapi: No valid historical data structure types found in API data. Error is: list index out of range
2022-04-02 14:22:16 weewx[1] ERROR user.davishealthapi: The API data returned was: {'sensors': [{'lsid': 505957, 'data': [], 'sensor_type': 323, 'data_structure_type': 17}, {'lsid': 505956, 'data': [], 'sensor_type': 506, 'data_structure_type': 18}, {'lsid': 506765, 'data': [], 'sensor_type': 46, 'data_structure_type': 11}, {'lsid': 505948, 'data': [], 'sensor_type': 243, 'data_structure_type': 13}, {'lsid': 505947, 'data': [], 'sensor_type': 242, 'data_structure_type': 13}, {'lsid': 505946, 'data': [], 'sensor_type': 504, 'data_structure_type': 15}], 'generated_at': 1648923736, 'station_id': 133822}
The text was updated successfully, but these errors were encountered:
Reviewed the code. The decode_historical_json() and decode_current_json() were using a range of 7 values. On Davis systems that have more than 1 device (eg WeatherLinkLive + AirLink), it will provide additional sensor_type items in the JSON Stream.
I corrected this issue by using an iteration over the data stream. That will allow all items in the stream to be evaluated.
I have been using this extension with my WeatherLink Live and Davis Pro account. I have the extension configured and it works, but I get these errors in the weewx.log.
Any idea how to clear these? is it a mapping issue?
2022-04-02 14:22:16 weewx[1] ERROR user.davishealthapi: No valid historical data structure types found in API data. Error is: list index out of range
2022-04-02 14:22:16 weewx[1] ERROR user.davishealthapi: The API data returned was: {'sensors': [{'lsid': 505957, 'data': [], 'sensor_type': 323, 'data_structure_type': 17}, {'lsid': 505956, 'data': [], 'sensor_type': 506, 'data_structure_type': 18}, {'lsid': 506765, 'data': [], 'sensor_type': 46, 'data_structure_type': 11}, {'lsid': 505948, 'data': [], 'sensor_type': 243, 'data_structure_type': 13}, {'lsid': 505947, 'data': [], 'sensor_type': 242, 'data_structure_type': 13}, {'lsid': 505946, 'data': [], 'sensor_type': 504, 'data_structure_type': 15}], 'generated_at': 1648923736, 'station_id': 133822}
The text was updated successfully, but these errors were encountered: