May be I should give an additional example regarding rain. And this is the reason people were aware of that detail:
Actually if you show yesterday rain ($yesterday.rain.sum) and today rain ( dayRain) then the rain between 23:55 and 00:00 ist included in the yesterday rain as well as in the today rain. If you add it together, then you get a higher value than the rain of those 2 days together. The general way of WeeWX is to think of an archive interval to be open at the left end and closed at the right end. This is because it records the readings of the last 5 minutes. Greg Troxel schrieb am Mittwoch, 20. April 2022 um 13:52:44 UTC+2: > > Karen K <[email protected]> writes: > > > There is a comment in restx.py saying: > > > > # NB: The WU considers the archive with time stamp 00:00 > > # (midnight) as (wrongly) belonging to the current day > > # (instead of the previous day). But, it's their site, > > # so we'll do it their way. That means the SELECT statement > > # is inclusive on both time ends: > > > > That is also used for MQTT, but it seems not appropriate in the context > of > > MQTT. So I looked for a solution. > > Assuming 5m archive interval, without loss of generality. > > Most observations in weewx are a value at a time, with temperature being > the canonical example. 0000 is indeed part of the same day as 0001, so > the temperature at 0000 should be used in min/max for "next day" rather > than "previous day". > > But, rain is different. The rain value at 0000 is the rain that fell > between 2355 and 0000. So that value belongs in the sum of the previous > day. > > More pedantically, one can thing of rain as the number of clicks > arriving > > >= 235500 and < 000000 > > or perhaps it's > and <=. It's hard to know, and it of course doesn't > really matter. > > All of this is a long way of saying that I think considering rain that > is reported at 0000 to belong to the previous day is sensible, always. > > I also don't really care personally, as whether daily rain is > [0000,0000) or [0005,0005) doesn't matter to me, or the plants. > -- 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/54c6f9af-807f-4eba-9204-c104f98f133dn%40googlegroups.com.
