Sorry Tom, I didn't notice how quick your insight was! ;-)
However
(if I may!), I think that for a better understanding, there would be (
perhaps?) another correction to make here:
https://github.com/weewx/weewx/blob/master/ src/weewx/wxxtypes.py#L586
Indeed, you indicate in comments a "rain" field and a "dayRain" field. I quote
"for calculating observation type 'rain' from a daily total, such as 'dayRain'" -> OK, thank's for the ifo
But below, dayRain "transforms" into "totalRain":
[StdWXCalculate]
[[Calculations]]
...
rain = prefer_hardware
...
[[Delta]]
[[[rain]]]
input = totalRain
It's certainly not a big problem, but for a neophyte like me, it raises unnecessary questions when reading the manual... ;-)
Finally, I would like to take this opportunity to ask you if it would not be possible to provide a new class for a counter that never resets to zero (DELTA2 for example), which would simply calculate the delta between two packetsloops (delta2 = measurement2 - measurement1) and if the result is negative, then delta2 = measurement2 (obviously the counter has been reset).
That would be very cool... ;-)
A (good) idea for development... no ?
Thank you Tom