> > (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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.