Hello, for my part, I just want to deactivate the accumulation of rain. I want to retrieve the "daily rain" from my weather station and send it to weewx. With the variable "rain", I will test with this file and this method if it works. if the cumulative increase it takes the new value via the dailyrain.
Thanks Sebastien Le mercredi 13 mai 2020 à 06:07:29 UTC+2, gjr80 a écrit : > One further thing re rain and fileparse. The fileparse driver is very > basic, it essentially reads data from a text file, if required maps that > data to WeeWX field names and emits the data in a loop packet. Since WeeWX > uses per-period rain data the rain data in the fileparse data file must be > per-period. This works fine if the generation of the data file and the > polling of the data file by the fileparse driver remain in perfect sync; > however, if they should vary for any reason and, say, the data file is > updated before the fileparse driver reads the data file, rain data can be > missed. Continuous obs such as temperature, humidity etc are not effected > in the same manner due to their continuous nature.The way around this rain > limitation is to have the fileparse driver handle cumulative rain data. > I've submitted a PR with the necessary changes, we will see how that goes > for inclusion in the 4.1, but in the meantime you might want to revert to > your cumulative rain data and try with the attached modified fileparse > driver which will handle cumulative rain data. All you need to is replace > your existing fileparse.py with the attached version and under [FileParse] > in weewx.conf add the following setting: > > [FileParse] > .... > cumulative_rain = true > > Then it is just a case of restarting WeeWX. Use of cumulative rain data > can be disabled by deleting the cumulative_rain setting or setting it to > false. > > Gary > > > On Wednesday, 13 May 2020 08:06:16 UTC+10, Ryan Stasel wrote: >> >> well that's unfortunate. I don't see a way to get that info out of >> meteobridge (such that it is per 30 seconds). >> >> hmm. suppose I could have the PHP compare previous and current value, and >> zero it out if it's equal to previous version. >> >> Open to other thoughts. >> >> On Tuesday, May 12, 2020 at 2:44:43 PM UTC-7, gjr80 wrote: >>> >>> WeeWX rainfall is a per period (loop or archive) value rather than as >>> cumulative rainfall. The fileparse driver is very basic and simply saves >>> the rain value from the source file in the WeeWX rain field. So fileparse >>> needs a file with a per period value. Other drivers calculate per period >>> rain from successive rain values, unfortunately fileparse does not. >>> >>> Gary >>> >> -- 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/3cbd2491-ec29-478d-b696-db6f30e26c7fn%40googlegroups.com.
