On the ws28xx series, interval is calculated as the time difference between
records. Perhaps your records were being emitted out of order from the
console?

In any case, the exception happened for a very old record (2015-04-28
06:15:00 EEST (1430190900))

Could you do your query again, except this time include the times in
something we can read:

select dateTime, datetime(dateTime,'unixepoch','localtime'), interval from
archive where interval < 0;

-tk

On Sun, Feb 3, 2019 at 7:02 AM Andrew Milner <[email protected]>
wrote:

> why did you do that??  I am not sure what backfill daily does (since that
> has been superceded since 3.7)
>
> Anyway you need to work out what those negative values for interval should
> be, and correct them before running rebuild daily.
>
> In the old versions of Weewx I think the interval was always the archive
> interval from weewx.conf but in 3.8 and later the value can be variable I
> believe.
>
>
>
> On Sunday, 3 February 2019 15:05:23 UTC+2, Ξ wrote:
>>
>> Hi Andy,
>>
>> Thanks for the suggestion. Indeed I have those values:
>> sqlite> select dateTime, interval from archive where interval < 0;
>> 1430448660|-4
>> 1443433740|-6
>> 1446832320|-3
>> 1457711580|-2
>> 1497621180|-2
>> 1508676660|-4
>> 1547560500|-12700
>>
>> What I did was to move the .sdb file to the installation with weewx 3.6.1
>> and there I ran --backfill-daily without it complaining.
>>
>> Ivo
>>
>> On Sunday, February 3, 2019 at 1:17:57 PM UTC+2, Andrew Milner wrote:
>>>
>>> have you checked the archive to see if you have a negative value in the
>>> interval column??
>>>
>>> select dateTime, interval from archive where interval < 0;
>>>
>>> should tell you.
>>>
>>>
>>> On Sunday, 3 February 2019 12:20:46 UTC+2, [email protected] wrote:
>>>>
>>>> It's works perfectly with my custom Davis Weather Monitor II Driver.
>>>>
>>> --
> 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