I'm not code savvy but I seem to recall I personally was running this fork from tkeffer that he ported to python 3 https://github.com/tkeffer/weatherflow-udp/tree/master I might roll back tot hat and see if the issue go away, I don't think it was ever committed to the main
On Friday, February 23, 2024 at 8:29:23 PM UTC-5 vince wrote: > 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8b15753c-088a-449b-87af-d7b37de9a15en%40googlegroups.com.