Jump to content

KeyError precip_accum_local_yesterday


Recommended Posts

Posted

Hey @bpwwer,

I migrated from my original weatherflow to tempest with a new hub, swapped the station id in PG3 config and restarted and it crashes with:

 

2022-04-09 12:03:01,238 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:fc_9 -  MID: 1 Result: 0
2022-04-09 12:03:01,256 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-04-09 12:03:04,211 MainThread udi_interface.interface INFO     interface:addNode: Adding node WeatherFlow(controller) [None]
2022-04-09 12:03:05,418 Thread-1   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-09 12:03:05,420 Thread-1   udi_interface      ERROR    udi_interface:write: Thread-1
2022-04-09 12:03:05,420 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-09 12:03:05,421 Thread-1   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-09 12:03:05,422 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-09 12:03:05,426 Thread-1   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-09 12:03:05,426 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-09 12:03:05,430 Thread-1   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-09 12:03:05,431 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 115, in parameterHandler
2022-04-09 12:03:05,432 Thread-1   udi_interface      ERROR    udi_interface:write: self.discover(stationList)
2022-04-09 12:03:05,433 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 462, in discover
2022-04-09 12:03:05,435 Thread-1   udi_interface      ERROR    udi_interface:write: info = self.query_station(station['id'])
2022-04-09 12:03:05,436 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 190, in query_station
2022-04-09 12:03:05,438 Thread-1   udi_interface      ERROR    udi_interface:write: info['units'] = self.query_station_uom(station, rain_id, rain_type)
2022-04-09 12:03:05,438 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 234, in query_station_uom
2022-04-09 12:03:05,440 Thread-1   udi_interface      ERROR    udi_interface:write: p_rain = jdata['obs'][0]['precip_accum_local_yesterday']
2022-04-09 12:03:05,441 Thread-1   udi_interface      ERROR    udi_interface:write: KeyError
2022-04-09 12:03:05,442 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-09 12:03:05,442 Thread-1   udi_interface      ERROR    udi_interface:write: 'precip_accum_local_yesterday'

 

Posted

It will probably work tomorrow :)

Try version 3.0.15, it should get farther, but it seems like there's no historical data so I might have other places where I assume the historical data exists.

Posted

Haha, yes, can wait till tomorrow unless you want to try again:

2022-04-09 15:41:43,333 MainThread udi_interface.interface INFO     interface:addNode: Adding node WeatherFlow(controller) [None]
2022-04-09 15:41:45,447 Thread-1   udi_interface      ERROR    weatherflow:get_monthly_rain: Failed to get rain for month 1
2022-04-09 15:41:45,869 Thread-1   udi_interface      ERROR    weatherflow:get_monthly_rain: Failed to get rain for month 2
2022-04-09 15:41:46,269 Thread-1   udi_interface      ERROR    weatherflow:get_monthly_rain: Failed to get rain for month 3
2022-04-09 15:41:46,678 Thread-1   udi_interface.interface WARNING  interface:db_getNodeDrivers: 194486 not found in database.
2022-04-09 15:41:46,680 Thread-1   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-09 15:41:46,681 Thread-1   udi_interface      ERROR    udi_interface:write: Thread-1
2022-04-09 15:41:46,682 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-09 15:41:46,682 Thread-1   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-09 15:41:46,683 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-09 15:41:46,688 Thread-1   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-09 15:41:46,689 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-09 15:41:46,692 Thread-1   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-09 15:41:46,693 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 115, in parameterHandler
2022-04-09 15:41:46,695 Thread-1   udi_interface      ERROR    udi_interface:write: self.discover(stationList)
2022-04-09 15:41:46,696 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 473, in discover
2022-04-09 15:41:46,699 Thread-1   udi_interface      ERROR    udi_interface:write: self.create_device_node(station['id'], device, info['units'], info['elevation'])
2022-04-09 15:41:46,699 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:fc_9/nodes/weatherflow.py", line 299, in create_device_node
2022-04-09 15:41:46,702 Thread-1   udi_interface      ERROR    udi_interface:write: node.rd = self.rainList[device['device_id']]
2022-04-09 15:41:46,703 Thread-1   udi_interface      ERROR    udi_interface:write: KeyError
2022-04-09 15:41:46,703 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-09 15:41:46,704 Thread-1   udi_interface      ERROR    udi_interface:write: 194486

 

Guest
This topic is now closed to further replies.

×
×
  • Create New...