Python is pretty new to me, I was unaware of the use of the _packet underscore method. I will update my code. Thanks for the tip.
Have a look at the rain calculations, I found out yesterday, during a rain shower, setting the self.rain_previous_period to zero is not a good idea. If weewx is reloading the diver (and it does) it will add the daily rain as a whole new rainfall. I will update my repo during the day. Also at midnight WLL will reset the rain_daily, so at that moment the rain_previous must be reset. I also don't think you need to do all the METRIC and METRICWX conversions. Weewx will do that for you, if you set the 'usUnits': weewx.US in the _packet. The LOOP will be generated and weewx is adding the record using the set database metrics. On Friday, June 26, 2020 at 6:56:18 PM UTC+2, [email protected] wrote: > > Hi everyone and thank you for your support ! I'm very glade to know that > people want to make this driver because there are not a lot. > > This is my repo : https://github.com/Drealine/WLLDriver > > @Bastiaan it's very nice ! Just, why you use update packet or not simply > do a for _packet in blabla(): It's a udp protocol ? > > With my driver, you can retrive lost data by using API v2 of Weatherlink. > Depend to your subscription. > > Glad to work with you, and if you want, it will be more often that split > some git to one. > > Regards, -fp > > Le vendredi 26 juin 2020 à 18:35:45 UTC+2, Bastiaan Meelberg a écrit : > >> Hi, >> >> I’m also working on a wll driver, including The 2,5 UDP packages. It is >> running now for a few days with good results (no rain check yet). >> The integration with the online fetch sounds interesting! >> This is my git fork: >> https://github.com/grebleem/WeatherLinkliveUDP >> >> It is feeding my site: https://meteo-otterlo.nl >> >> Cheers, Bastiaan >> > -- 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/073ec2e6-6d1e-4947-82e2-51d9f1dd4ff2o%40googlegroups.com.
