This is explained in the guidelines for writing a new driver <http://www.weewx.com/docs/customizing.htm#Implement_the_driver> in the Customizing Guide. In particular, the paragraph:
A couple of observation types are tricky. In particular, rain. Generally, > WeeWX expects to see a packet with the amount of rain that fell in that > packet period included as observation rain. It then sums up all the > values to get the total rainfall and emits that in the archive record. If > your hardware does not provide this value, you might have to infer it from > changes in whatever value it provides, for example changes in the daily or > monthly rainfall. This means you save the first value for daily rain you see, and compare it to the next value. The field 'rain' is the difference. -tk On Fri, Jun 26, 2020 at 4:17 PM Bastiaan Meelberg <[email protected]> wrote: > Hi, > > I'm working on a Weatherlink Live driver, WLL is giving a daily rain. The > driver looks for a difference and adds the difference to the loop and sets > the old value. > Starting weewxd this counter is set to zero. But if there was rainfall all > this rain is added again to the loop. > > So e.g. if there was 2 mm of rain fell during the day, and after a > restart, the driver adds this 2 mm to the loop (again), and is seen as new > rain. > > Is there a way to get this daily rain data from the database and set it in > python as the starting variable? > > -- > 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/b2d94112-1e1b-4061-bb66-5ab08ce3d444o%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/b2d94112-1e1b-4061-bb66-5ab08ce3d444o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEAqsE9JjFVN5JXK_7oXrNiN8QO8a3u%3DMVQV-uqodK0DUA%40mail.gmail.com.
