captain-coredump / weatherflow-udp

WeatherFlow Personal Weather Station driver for weewx, via UDP broadcast packets
GNU General Public License v3.0
54 stars 19 forks source link

driver crashing #28

Open jamie75 opened 9 months ago

jamie75 commented 9 months ago

i pulled down the recent update that fixed the weewx station registry. now i get some random crashes that cause weewx to exit. its pretty random sometimes will run 8 hours other times 2 days between crashes

`× weewx.service - WeeWX Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2024-02-23 07:50:57 EST; 7h ago Docs: https://weewx.com/docs Process: 760 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, status=1/FAILURE) Main PID: 760 (code=exited, status=1/FAILURE) CPU: 31min 39.845s

Feb 23 07:50:57 weewx weewxd[760]: File "/usr/share/weewx/weewxd.py", line 166, in main Feb 23 07:50:57 weewx weewxd[760]: engine.run() Feb 23 07:50:57 weewx weewxd[760]: File "/usr/share/weewx/weewx/engine.py", line 204, in run Feb 23 07:50:57 weewx weewxd[760]: for packet in self.console.genLoopPackets(): Feb 23 07:50:57 weewx weewxd[760]: File "/etc/weewx/bin/user/weatherflowudp.py", line 313, in genLoopPackets Feb 23 07:50:57 weewx weewxd[760]: m0 = m[0].replace(",null",",None") # Python 2 Feb 23 07:50:57 weewx weewxd[760]: TypeError: a bytes-like object is required, not 'str' Feb 23 07:50:57 weewx systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE Feb 23 07:50:57 weewx systemd[1]: weewx.service: Failed with result 'exit-code'. Feb 23 07:50:57 weewx systemd[1]: weewx.service: Consumed 31min 39.845s CPU time.`