FYI, there is a detailed explanation of the various rain measurements and why the default sensor map value was chosen in the weewx-atmocom-udp station driver's README file:
https://github.com/captain-coredump/weewx-atmocom-udp/blob/master/README Rain Delta Calculations: Weewx likes its "rain" value passed from station drivers to be the amount of rain counted since the last LOOP packet was received. Weather Underground (and clones) receives one or more rainfall totals, based on fixed time periods: rainin dailyrainin weeklyrainin monthlyrainin yearlyrainin While one would hope that "rainin" would be the total since the last packet (like weewx needs), we would not be so lucky. There is actually conflicting information on the web, with some saying that "rainin" is the rain total for the past hour and others saying that it is rain total for the last 60 minutes. Yes, there are 60 minutes in an hour, but saying it is the last 60 minutes implies a sliding time window...and not from when the big hand is on the 12 until it returns to the 12. If that's not confusing enough, the Weather Underground protocol also allows for specifying observation time as "now" for stations without a clock. I'm going to stop here, and take some aspirin to numb the headache I'm getting just thinking about how the station knows when a day/month/year starts with no clock. To give a no-code option for everyone, I have parsed every single rain figure into separate delta variables in the returned LOOP packet: rainindelta dailyrainindelta weeklyrainindelta monthlyrainindelta yearlyrainindelta The default sensor_map entry is created as follows: rain = rainindelta.WUStationID Because of the sliding time window ambiguity with rainin, I strongly suggest editing weewx.conf and mapping rain to yearlyrainindelta or whatever is the longest time period observation your station is sending. I would really, really, really like to set the default as yearlyrainindelta, but fear that there is a station out there without a clock that does not send anything but rainin...and hopefully not as a sliding 60-minute time window! On Sunday, December 15, 2019 at 3:36:19 PM UTC-5, gjr80 wrote: > > I should have clarified, Gabor is exactly right, you originally had the > following in your sensor map: > > rain = rainindelta.ITEHKUMM2 > > this uses a synthetic rainindelta field created by the driver based on the > WU rainin. You need use a similar synthetic field based on dailyrainin (or > some other cumulative rain field). Such a map would be: > > rain = dailyrainindelta.ITEHKUMM2 > > 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/696853be-fa73-4824-b5e2-1f12a3019e8f%40googlegroups.com.
