Hi Gary,
Thanks. I've found the cause of
the thread exit. Sometimes a garbled string gets received by the radio
comms and it is a problem to parse.
WLST: parsing ST<EA><CA><EA>%bwater_level 1 0x0 water_level 2 0x0135
Traceback (most recent call last):
File "/usr/share/weewx/user/water_level.py", line 191, in run
for p in re.split("[,]",line.decode("utf-8")):
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xea in position 2: invalid continuation byte
WLST: Exit inner while.
(WLST stands for Water Level Server Thread).
I'm not yet sure why my code didn't catch this exception when I was using syslog yet, but at least I now have a stable system.
It is lovely to watch the water volume in our tanks increasing when a shower of rain comes over.
Cheers,
James.