Source is at
https://github.com/captain-coredump/weatherflow-udp/blob/master/bin/user/weatherflowudp.py
if
some driver experts wanted to suggest fixes. This one is beyond me other
than to suggest that since weewx v5 does not support python2 anymore that
perhaps the try/except block needs something tweaked to deal with what I'm
guessing (like totally guessing) is garbage-in a little more gracefully
(anybody ?????)
if timeouterr == 0:
try:
m0 = str(m[0],'utf-8').replace(",null",",None") #
Python 3
except:
m0 = m[0].replace(",null",",None") #
Python 2
m1=''
try:
m1=eval(m0)
except SyntaxError:
logerr('Packet parse error: %s' % m0)
if self._log_raw_packets:
loginf('raw packet: %s' % m1)
m2=parseUDPPacket(m1)
m3=sendMyLoopPacket(m2, self._sensor_map)
if len(m3) > 2:
yield m3
On Friday, February 23, 2024 at 12:10:54 PM UTC-8 Jamie Stephens wrote:
i went ahead and opened up a issue with the driver, had another crash today
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/091809f3-9964-4bc5-a5fd-8b407425eb52n%40googlegroups.com.