Just a clarification: on startup, weewx does indeed call the
genStartRecords() method on the driver. However, the default implementation
is to just call genArchiveRecords() with the last good timestamp in the
database as an argument. If the driver supports it, this effectively means
a "catch up" is done on every archive record.

For example, this is what the Vantage driver does. I'm not familiar with
the ws28xx driver, but the author may have had his/her reasons for
overriding genStartupRecords(), which could mean losing this feature.

-tk

On Wed, Aug 7, 2019 at 6:14 AM gjr80 <[email protected]> wrote:

> Hi,
>
> The backfill behaviour you are seeing is expected behaviour for the
> current codebase, in a nutshell WeeWX only attempts to download historical
> records when WeeWX starts.
>
> Explanation. Drivers for stations that have the ability to store archive
> records may implement a genStartupRecords method. When called this method
> emits any records held in the station memory that are newer than the last
> record held in the WeeWX archive. WeeWX calls the genStartupMethod (if it
> exists) once during WeeWX startup, once WeeWX has started genStartupRecords
> is not called again unless WeeWX is restarted. The ws28xx driver has a a
> genStartupRecords method, which is called during WeeWX startup; however,
> the loss of communications you are experiencing does not cause WeeWX to
> restart so hence the archive records stored in the station are not
> downloaded when the connection returns to normal.
>
> Looking at the ws28xx driver, the comments in the driver state:
>
> “The station console sends a broadcast on the hour.  If the transceiver
> responds, the station console may continue to broadcast data, depending on
> the transceiver response and the timing of the transceiver response.”
>
> This may explain why you are seeing activity on the hour and nothing in
> between. For some unknown reason communication is eventually properly
> restored and normal 5 minute archive operation returns.
>
> In short, given the current way stored records are backfilled by WeeWX and
> the operation of the ws28xx driver, I don’t think you have any other option
> for backfilling stored records. You may find that resynchronising with the
> station helps return normal operation earlier, but it won’t cause
> historical records to be downloaded.
>
> Matthew or a ws28xx guru may have better advice.
>
> Gary
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/d9018181-e22f-4dbc-9213-5383a4617863%40googlegroups.com
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDpiU5L-MVsAwz0WdeE95AQ48kzC%3Dqbszt49MfVoSz9%2Bg%40mail.gmail.com.

Reply via email to