It might be best to not write an archive record less than or equal to the largest dateTime value in the archive table. Sure, there may be an erroneous later row, but that is an issue that should be addressed anyway (rather than ignored). WeeWX already gets the latest at startup (in order to catchup for drivers that support it).
> On Sep 14, 2020, at 4:45 PM, vince <[email protected]> wrote: > > > Over in the WeatherFlow forums a guy had an interesting problem where > occasionally he has timestamps in his weewx.sdb of 300 or so (ie, 12:05AM > 1/1/1970 GMT). My 'guess' is his host took a reboot and weewx fired up > before the host had accurate date+time. > > Is there an easy way to block writes to the db where date+time on the runtime > host is obviously crazy wrong ? > > Perhaps any time before y2k or some similarly 'not 1970 but not yesterday' > line in the sand ? > > > -- > 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/a7b16a6f-30f3-4c39-8f50-d2729023772do%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/14EBFA32-5ACD-43BA-AA62-DFEC9E96C975%40johnkline.com.
