Tom, When dayRain is calculated by weewx and not read by the vantage driver the rain reset at midnight is OK.
Below the results for vantage (vpro) and meteostick (mstk). vpro: 23:59:58 R=1.2 mstk: 23:59:59 R=1.2 vpro: 00:00:04 R=0.0 mstk: 00:00:04 R=0.0 Luc On Wednesday, 31 May 2017 18:42:14 UTC-3, Luc Heijst wrote: > > Hi Tom, > > Dealing with the dayRain value of the Vantage loop data received from the > Pro2 and Vue consoles or Envoys when no time stamps are available and with > an internal clock which can run both slow or fast will be not easy and > should not be done. > A possible solution might introduce other problems. > > I advice to use instead the dayRain calculation of weewx which already > will be done for most (all?) other weather stations and even for the > Vantage stations when used with the Meteostick driver. > We could of course introduce a choice (hardware, software or > prefer_hardware) but again I think it is wasting of time because the > software solution is the best in my opinion > > As a test I renamed the "dayRain" variable names in the loop definitions > of the Vantage driver to "dayRain_skip" with as result the dayRain value in > the Vantage driver also will be calculate by weewx. > > I will report tomorrow the results of the upload data round midnight. > > Cheers, Luc > > > On Tuesday, 30 May 2017 21:09:21 UTC-3, Tom Keffer wrote: >> >> If we are going to have the driver make a decision that a dayRain (and >>> monthRain and yearRain and maybe dayET, monthET and yearET?) value is >>> to be ignored (ie we are essentially making the decision that the packet >>> was from the previous day) can we not just leave the packet data as is (we >>> have no reason to doubt its accuracy) and just set the packet timestamp to >>> 00:00? >>> >>> >> A sensible idea. >> >> But, say we have a packet that arrives at 00:00:02. How do we know if >> it's from the previous day? Maybe it is the very first packet of the day? >> >> At the end of the day (pun intended), we are trying to create N+1 pieces >> of data out of N pieces of information. Can't be done. >> >> -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 [email protected]. For more options, visit https://groups.google.com/d/optout.
