This is a known bug, which was fixed in driver version 0.12, committed last
January. Just download the current version
<https://github.com/matthewwall/weewx-wh23xx> (v0.13) of the driver.

It occurs when something disconnects the light sensor, or by a low battery.

-tk

On Fri, Dec 1, 2017 at 9:35 AM, Stan C <[email protected]> wrote:

> Just recently Weewx started crashing. My weather station is an Excelvan
> WH-2310. I have been using Weewx with this
> weather station for almost a year now. This problem began about a month
> ago. I have not seen any consistency about
> conditions that may contribute to the crash.
>
> If the developers need my configuration file, I'll be glad to provide it.
> I currently connect to Weather Underground and
> CWOP. No FTP nor Rsync being used.
>
> Below is the log data in syslog.
>
> Nov 30 18:39:28 CM1745 weewx[2762]: engine: Shutting down StdReport thread
> Nov 30 18:39:28 CM1745 weewx[2762]: engine: Caught unrecoverable exception
> in engine:
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****  unsupported operand type(s)
> for *: 'NoneType' and 'float'
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****  Traceback (most recent call
> last):
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****    File
> "/usr/share/weewx/weewx/engine.py", line 847, in main
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****      engine.run()
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****    File
> "/usr/share/weewx/weewx/engine.py", line 186, in run
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****      for packet in
> self.console.genLoopPackets():
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****    File
> "/usr/share/weewx/user/wh23xx.py", line 421, in genLoopPackets
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****      packet =
> self._data_to_packet(decoded)
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****    File
> "/usr/share/weewx/user/wh23xx.py", line 469, in _data_to_packet
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****      pkt['radiation'] =
> pkt['luminosity'] * LUMINOSITY_TO_RADIATION
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****  TypeError: unsupported
> operand type(s) for *: 'NoneType' and 'float'
> Nov 30 18:39:28 CM1745 weewx[2762]:     ****  Exiting.
>
>

Reply via email to