This is a known problem with the WMR200 driver (see issue #375
<https://github.com/weewx/weewx/issues/375>).

Either make the patch shown in this post
<https://groups.google.com/forum/#!msg/weewx-user/69RvQnD_OQc/M_8q8sDoAgAJ>,
or replace your copy of wmr200.py with the current version
<https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/drivers/wmr200.py>
.

On Thu, May 2, 2019 at 11:12 AM Invisible Man <[email protected]>
wrote:

> Hello,
>
> Ive had a crash this morning with weewx version 3.9.1. It has been running
> for weeks, so I don't know exactly what happened (the log talks about a non
> positive value for an interval which obviously should never  happen), I'm
> copying the logs below if that's any help to anybody.
>
> Thanks!
>
>
> May  2 08:22:09 localhost weewx[7950]: wmr200: MainThread: I USB polling
> thread expired
> May  2 08:22:09 localhost weewx[7950]: wmr200: Thread-7: I Watchdog
> received shutdown
> May  2 08:22:09 localhost weewx[7950]: wmr200: Thread-7: I Watchdog
> thread exiting
> May  2 08:22:09 localhost weewx[7950]: wmr200: MainThread: I Watchdog
> thread expired
> May  2 08:22:09 localhost weewx[7950]: wmr200: MainThread: I Received
> packet count live:7383\
> 03 archive:506 control:47742
> May  2 08:22:09 localhost weewx[7950]: wmr200: MainThread: I Received
> bytes:1696 sent bytes:\
> 48
> May  2 08:22:09 localhost weewx[7950]: wmr200: MainThread: I Packet
> archive queue len:0 live\
>  queue len:9
>
>
> May  2 08:22:09 localhost weewx[7950]: wmr200: MainThread: I Driver
> gracefully exitingMay  2 08:22:09 localhost weewx[7950]: engine: Caught
> unrecoverable exception in engine:
> May  2 08:22:09 localhost weewx[7950]:     ****  Non-positive value for
> record field 'interv\
> al': 0
> May  2 08:22:09 localhost weewx[7950]:     ****  Traceback (most recent
> call last):
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 890, in main
> May  2 08:22:09 localhost weewx[7950]:     ****      engine.run()
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 160, in run
> May  2 08:22:09 localhost weewx[7950]:     ****      self.dispatchEvent(
> weewx.Event(weewx.ST\
> ARTUP))
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 224, in dispatchEvent
> May  2 08:22:09 localhost weewx[7950]:     ****      callback(event)
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 520, in startup
> May  2 08:22:09 localhost weewx[7950]:     ****      self._catchup(self.
> engine.console.genSt\
> artupRecords)
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 635, in _catchup
> May  2 08:22:09 localhost weewx[7950]:     ****      origin='hardware'))
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 224, in dispatchEvent
> May  2 08:22:09 localhost weewx[7950]:     ****      callback(event)
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/engine.py", \
> line 601, in new_archive_record
> May  2 08:22:09 localhost weewx[7950]:     ****      dbmanager.addRecord(
> event.record, accum\
>
> ulator=self.old_accumulator)May  2 08:22:09 localhost weewx[7950]:
> ****    File "/usr/share/weewx/weewx/manager.py",\
>  line 246, in addRecord
> May  2 08:22:09 localhost weewx[7950]:     ****      self._addSingleRecord
> (record, cursor, l\
> og_level)
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/manager.py",\
>  line 1212, in _addSingleRecord
> May  2 08:22:09 localhost weewx[7950]:     ****      _weight = self.
> _calc_weight(record)
> May  2 08:22:09 localhost weewx[7950]:     ****    File
> "/usr/share/weewx/weewx/manager.py",\
>  line 1582, in _calc_weight
> May  2 08:22:09 localhost weewx[7950]:     ****      raise 
> ValueError("Non-positive
> value fo\
> r record field 'interval': %s" % (record['interval'], ))
> May  2 08:22:09 localhost weewx[7950]:     ****  ValueError: Non-positive
> value for record f\
> ield 'interval': 0
> May  2 08:22:09 localhost weewx[7950]:     ****  Exiting.
>
>
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to