Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-29 Thread Remy Lavabre
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

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-28 Thread Tom Keffer
Oh, it was the first thing I did after realizing my omission! Commit 9455fa1 . On Sun, Jan 28, 2024 at 7:30 AM Remy Lavabre wrote: > thanks Tom, > > I had thought about putting rain = prefer_software but as this

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-28 Thread Remy Lavabre
thanks Tom, I had thought about putting rain = prefer_software but as this type of rain configuration is not documented in the Weewx documentation (or at least I didn't find it!) I didn't take the initiative. .. stupid I am ! :-( little suggestion Tom, perhaps it would be good to document this

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-27 Thread Tom Keffer
My apologies. I forgot one important detail. The "[Delta]" section tells WeeWX how to calculate rain, but you also have to include "rain" under [StdWXCalculations] / [[Calculations]] in order to get it to do the actual calculation. It looks like [StdWXCalculate] [[Calculations]] ...

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-27 Thread Remy Lavabre
Hello Tom, I followed your instructions: 1/“rain” field present in the database 2/ “dayRain” field not present in the database 3/ My driver returns “dayRain” values and not “rain” values in the packetsloop 4/ [[Delta]] [[ [rain]]] input = dayRain added in weewx.conf (under [StdWXCalculate]).

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-26 Thread Tom Keffer
If an observation type never gets reset to zero, you have two choices. 1. Save the value. If you want to know daily use, take the difference of the value. 2. Save the difference. That is, the change in the value over an archive period. If you want to know daily use, you would sum all the small

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-26 Thread Remy Lavabre
And one more question Is it absolutely necessary to create a "dayRain" field in addition to the "rain" field in the weewx.sdb database? If the database only contains the [rain] field but the Weewx driver returns a "dayRain" field (cumulative rain over 24 hours since midnight) with a real

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-26 Thread Remy Lavabre
Hello Tom and thank you for your response. [StdWXCalculate] [[Calculations]] ... [[Delta]] [[[rain]]] input = dayRain This will calculate the rain difference between two records in weewx sql based on the principle that the

Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-18 Thread Tom Keffer
Unfortunately (for you), WeeWX mostly uses observation type "rain", the amount of rain that fell since the last loop packet (what you are calling "instantaneous rain"). You should assign the rain since midnight to type "dayRain". Then calculate "rain" as the difference between successive

[weewx-user] Integrate rain24 with Packetsloop

2024-01-17 Thread Remy Lavabre
Good morning, I created a [driver] for weewx to retrieve data from the Awekas API (my Bresser weather station does not have a USB port). This works but regarding the rain, it is not the instantaneous rain (from a packetloop) that we recover but the rain over 24 hours since midnight. Is there a