Tom, When a check is done on the timestamp of the last_rain value in the database, we could skip using the value when it is too old, e.g. elder than twice the archive period.
Luc On Sunday, 19 August 2018 18:16:50 UTC-3, Thomas Keffer wrote: > > (btw, one utility function that might be useful for driver developers >> would be to get the last rain total from the database, if one exists. then >> we could use that value instead of just saying "no last value". almost >> every driver has to deal with this for rain or any other delta >> observations.) >> >> > Hmm, I guess I don't like that idea so much. > > The last value in the database is likely to be very out-of-date, resulting > in an archive record with a big value of rain. That violates our 2nd and > 3rd laws for writing a device driver > <http://weewx.com/docs/customizing.htm#General_guidelines>: don't make > stuff up. > > -tk > -- 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/b4e48146-370b-4f2d-8d81-70bda15034a2%40googlegroups.com.
