Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

KeyError precip_accum_local_yesterday

Featured Replies

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'

 

  • Author

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.