I have this driver running in my development-environment. A similar driver (from greebleem) is running in my production environment. At the same time, both drivers crashed with the same error report. This means something on my WLL unit is not going well, and both drivers suffer from it. I've rebooted the WLL unit, and restarted weewx afterwards.
Oct 5 20:10:52 weewximport weewx[61209] DEBUG user.WLLDriver: rainFall_Daily set : 27
Oct 5 20:10:52 weewximport weewx[61209] DEBUG user.WLLDriver: Rainfall_Daily set after calculated : 27
Oct 5 20:10:52 weewximport weewx[61209] DEBUG user.WLLDriver: Current conditions Weewx packet : {'dateTime': 1601921452, 'usUnits': 1, 'outTemp': 53.2, 'outHumidity': 94.8, 'dewpoint': 51.7, 'heatindex': 53.7, 'windchill': 51.6, 'txBatteryStatus': 0, 'UV': 0.0, 'radiation': 0, 'windSpeed': 6.0, 'windDir': 155, 'windGust': 9.0, 'windGustDir': 164, 'inTemp': 67.2, 'inHumidity': 63.2, 'inDewpoint': 54.3, 'barometer': 29.505, 'pressure': 29.493, 'rain': 0.0, 'rainRate': 0, 'extraTemp1': 52.2}
Oct 5 20:10:52 weewximport weewx[61209] INFO user.WLLDriver: Weewx packet from WLL module : {'dateTime': 1601921452, 'usUnits': 1, 'outTemp': 53.2, 'outHumidity': 94.8, 'dewpoint': 51.7, 'heatindex': 53.7, 'windchill': 51.6, 'txBatteryStatus': 0, 'UV': 0.0, 'radiation': 0, 'windSpeed': 6.0, 'windDir': 155, 'windGust': 9.0, 'windGustDir': 164, 'inTemp': 67.2, 'inHumidity': 63.2, 'inDewpoint': 54.3, 'barometer': 29.505, 'pressure': 29.493, 'rain': 0.0, 'rainRate': 0, 'extraTemp1': 52.2}
Oct 5 20:10:52 weewximport weewx[61209] INFO weewx.restx: MQTT: Published record 2020-10-05 20:10:52 CEST (1601921452)
Oct 5 20:10:53 weewximport weewx[61209] INFO weewx.engine: Main loop exiting. Shutting engine down.
Oct 5 20:10:53 weewximport weewx[61209] INFO weewx.engine: Shutting down StdReport thread
Oct 5 20:11:13 weewximport weewx[61209] ERROR weewx.engine: Unable to shut down StdReport thread
Oct 5 20:11:13 weewximport weewx[61209] DEBUG weewx.restx: Shut down MQTT thread.
Oct 5 20:11:13 weewximport weewx[61209] DEBUG weewx.restx: Shut down StationRegistry thread.
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Caught unrecoverable exception:
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Expecting value: line 1 column 1 (char 0)
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Traceback (most recent call last):
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/weewxd", line 154, in main
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: engine.run()
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 188, in run
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: for packet in self.console.genLoopPackets():
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/user/WLLDriver.py", line 795, in genLoopPackets
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: for _realtime_packet in self.WLLDriverAPI.request_wll('realtime_broadcast'):
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/user/WLLDriver.py", line 271, in request_wll
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: for data_broadcast in self.get_realtime_data():
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/user/WLLDriver.py", line 295, in get_realtime_data
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: realtime_data = json.loads(data.decode("utf-8"))
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/lib/python3.8/json/init.py", line 357, in loads
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: return _default_decoder.decode(s)
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: raise JSONDecodeError("Expecting value", s, err.value) from None
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Exiting.
I have this driver running in my development-environment. A similar driver (from greebleem) is running in my production environment. At the same time, both drivers crashed with the same error report. This means something on my WLL unit is not going well, and both drivers suffer from it. I've rebooted the WLL unit, and restarted weewx afterwards.
Oct 5 20:10:52 weewximport weewx[61209] DEBUG user.WLLDriver: rainFall_Daily set : 27 Oct 5 20:10:52 weewximport weewx[61209] DEBUG user.WLLDriver: Rainfall_Daily set after calculated : 27 Oct 5 20:10:52 weewximport weewx[61209] DEBUG user.WLLDriver: Current conditions Weewx packet : {'dateTime': 1601921452, 'usUnits': 1, 'outTemp': 53.2, 'outHumidity': 94.8, 'dewpoint': 51.7, 'heatindex': 53.7, 'windchill': 51.6, 'txBatteryStatus': 0, 'UV': 0.0, 'radiation': 0, 'windSpeed': 6.0, 'windDir': 155, 'windGust': 9.0, 'windGustDir': 164, 'inTemp': 67.2, 'inHumidity': 63.2, 'inDewpoint': 54.3, 'barometer': 29.505, 'pressure': 29.493, 'rain': 0.0, 'rainRate': 0, 'extraTemp1': 52.2} Oct 5 20:10:52 weewximport weewx[61209] INFO user.WLLDriver: Weewx packet from WLL module : {'dateTime': 1601921452, 'usUnits': 1, 'outTemp': 53.2, 'outHumidity': 94.8, 'dewpoint': 51.7, 'heatindex': 53.7, 'windchill': 51.6, 'txBatteryStatus': 0, 'UV': 0.0, 'radiation': 0, 'windSpeed': 6.0, 'windDir': 155, 'windGust': 9.0, 'windGustDir': 164, 'inTemp': 67.2, 'inHumidity': 63.2, 'inDewpoint': 54.3, 'barometer': 29.505, 'pressure': 29.493, 'rain': 0.0, 'rainRate': 0, 'extraTemp1': 52.2} Oct 5 20:10:52 weewximport weewx[61209] INFO weewx.restx: MQTT: Published record 2020-10-05 20:10:52 CEST (1601921452) Oct 5 20:10:53 weewximport weewx[61209] INFO weewx.engine: Main loop exiting. Shutting engine down. Oct 5 20:10:53 weewximport weewx[61209] INFO weewx.engine: Shutting down StdReport thread Oct 5 20:11:13 weewximport weewx[61209] ERROR weewx.engine: Unable to shut down StdReport thread Oct 5 20:11:13 weewximport weewx[61209] DEBUG weewx.restx: Shut down MQTT thread. Oct 5 20:11:13 weewximport weewx[61209] DEBUG weewx.restx: Shut down StationRegistry thread. Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Caught unrecoverable exception: Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Expecting value: line 1 column 1 (char 0) Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Traceback (most recent call last): Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/weewxd", line 154, in main Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: engine.run() Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 188, in run Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: for packet in self.console.genLoopPackets(): Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/user/WLLDriver.py", line 795, in genLoopPackets Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: for _realtime_packet in self.WLLDriverAPI.request_wll('realtime_broadcast'): Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/user/WLLDriver.py", line 271, in request_wll Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: for data_broadcast in self.get_realtime_data(): Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/share/weewx/user/WLLDriver.py", line 295, in get_realtime_data Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: realtime_data = json.loads(data.decode("utf-8")) Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/lib/python3.8/json/init.py", line 357, in loads Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: return _default_decoder.decode(s) Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/lib/python3.8/json/decoder.py", line 337, in decode Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: obj, end = self.raw_decode(s, idx=_w(s, 0).end()) Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: raise JSONDecodeError("Expecting value", s, err.value) from None Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Oct 5 20:11:13 weewximport weewx[61209] CRITICAL main: Exiting.