Weewx with WeatherlinkLiveUDP crashing

78 views
Skip to first unread message

joh....@googlemail.com

unread,
Sep 25, 2020, 6:36:57 AM9/25/20
to weewx-user
Hi,


Basically it is working but I have from time to time crashes of Weewx with the following errors:

Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 154, in main
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****      engine.run()
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 188, in run
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****    File "/usr/share/weewx/user/weatherlinkliveudp.py", line 440, in genLoopPackets
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****      packet = self.station.decode_data_wll(current_conditions['data'])
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****    File "/usr/share/weewx/user/weatherlinkliveudp.py", line 239, in decode_data_wll
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****      packet['rainRate'] = iss_udp_data['rain_rate_last'] * self.rainbarrel.bucketsize
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****  TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
Sep 25 12:34:15 Weewx weewx[2970] CRITICAL __main__:     ****  Exiting.


When I restart (or sometimes two restarts are needed) then it is working again some days.

Any IDeas?

Br,
JOhannes

Tom Keffer

unread,
Sep 25, 2020, 8:04:59 AM9/25/20
to weewx-user
It looks like the extension author forgot to check 'rain_rate_last' for None values. Try filing an issues report with him/her.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/eb5ce2d0-8607-4006-bade-a1687e443366n%40googlegroups.com.

Tom Quinn

unread,
Sep 29, 2020, 3:10:27 PM9/29/20
to weewx-user
I've written a driver for the same, and what I found while doing so, is that sometimes the weather link live device just doesn't want to participate, or there's some other network error. it seems that grebleem hasn't handled that any better than I did (thought I'm working on fixing that now)
Reply all
Reply to author
Forward
0 new messages