This is a known problem. See issue #375
<https://github.com/weewx/weewx/issues/375>. The fix is to go into file
wmr200.py and on or around line 1946, change this:

# Calculate time interval between archive packets.
timestamp_packet_interval = timestamp_packet_current \
        - timestamp_packet_previous

if timestamp_packet_interval < 0:
    loginf(('genStartup() Discarding received archive record that
presented out-of-order; '
            'current timestamp:%s; previous timestamp:%s')
           % (weeutil.weeutil.timestamp_to_string(timestamp_packet_current),
              weeutil.weeutil.timestamp_to_string(timestamp_packet_previous)))

to this:

# Calculate time interval between archive packets.
timestamp_packet_interval = timestamp_packet_current \
        - timestamp_packet_previous

if timestamp_packet_interval < 1:
    loginf(('genStartup() Discarding received archive record that
presented out-of-order; '
            'current timestamp:%s; previous timestamp:%s')
           % (weeutil.weeutil.timestamp_to_string(timestamp_packet_current),
              weeutil.weeutil.timestamp_to_string(timestamp_packet_previous)))

-tk

On Fri, Feb 15, 2019 at 8:05 PM Teva MERVIN <[email protected]> wrote:

> It's an Oregon WMR 200.
>
> tk
>
> Le samedi 16 février 2019 12:08:59 UTC+11, Thomas Keffer a écrit :
>>
>> What kind of weather station?
>>
>> -tk
>>
>> On Fri, Feb 15, 2019 at 4:52 PM Teva MERVIN <[email protected]> wrote:
>>
>>> Hello, I have problems with weewx.
>>> Can you help me ?
>>>
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****  Non-positive value for
>>> record field 'interval': 0
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****  Traceback (most recent call
>>> last):
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 890, in main
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****      engine.run()
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 160, in run
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****
>>>      self.dispatchEvent(weewx.Event(weewx.STARTUP))
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****      callback(event)
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 520, in startup
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****
>>>      self._catchup(self.engine.console.genStartupRecords)
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 635, in _catchup
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****      origin='hardware'))
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****      callback(event)
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****
>>>      dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****
>>>      self._addSingleRecord(record, cursor, log_level)
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****      _weight =
>>> self._calc_weight(record)
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****    File
>>> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****      raise
>>> ValueError("Non-positive value for record field 'interval': %s" %
>>> (record['interval'], ))
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****  ValueError: Non-positive
>>> value for record field 'interval': 0
>>> Feb 16 10:15:41 Nas weewx[22639]:     ****  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.
>

-- 
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