On Sunday, February 7, 2021 at 12:31:33 AM UTC+1 [email protected] wrote:
> I've just installed your driver. Whats the status now? Right now it > neither seems to backfill data nor store current data from UDP into the > database. > Yes, I've recently noticed that UDP data is not getting filled into the database. I'm not sure why, as it's virtually using the same methods as the backfill (which BTW is working fine here). It took some time before I noticed the UDP not working as the REST data fills it up anyway. But I'm not sure why it's not working. I've been looking at it today, but it seems that somehow the fact that I have the genArchiveRecords() method causes the UDP/LOOP packages to be ignored by weewx. As far as I can see I'm still returning them to weewx and they seem fine to me, but it seems weewx is ignoring them. > Other Question: > @property > def archive_interval(self): > return 60 > What purpose does this have and why is it hardcoded to 60? Shouldn't it > read and return > [StdArchive] > > # If the station hardware supports data logging then the archive > interval > # will be downloaded from the station. Otherwise, specify it (in > seconds). > archive_interval = 300 > > from weewx.conf? > In the documentation at http://weewx.com/docs/customizing.htm#genArchiveRecords() it says: archive_interval If you implement function genArchiveRecords(), then you should also implement archive_interval as either an attribute, or as a property function <https://docs.python.org/3/library/functions.html#property>. It should return the archive interval in seconds. This too me means that as the WeatherFlow REST service has a record for every minute, the archive_interval should be set to 60 seconds. Cheers, Jan-Jaap -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/71d464a3-586e-4ffa-ac94-b2a42f6c72d9n%40googlegroups.com.
