[weewx-user] Re: My "rain" field adds up

2020-10-08 Thread Sébastien F4GQK
Thanks the daily rainfall values are subtracted from the file: /usr/share/weewx/weewx/wxformulas.py there are two variables: oldtotal and newtotal. oldtotal is old value and newtotal is new the result of this calculation is the variable "delta" but what is the file that uses this value

[weewx-user] Re: My "rain" field adds up

2020-10-08 Thread Susan Mackay
> > Where in HP1000.py it is. > > Lines 714 to 734 in the latest version. Susan -- 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

[weewx-user] Re: My "rain" field adds up

2020-10-08 Thread Sébastien F4GQK
Thank you for the answer. I'm not good enough at php to do a command line that would do this subtraction operation. Where in HP1000.py it is. It would not be better to just tell it to stop adding the daily precipitation value. The weather station knows the value of the daily precipitation,

[weewx-user] Re: My "rain" field adds up

2020-10-07 Thread Susan Mackay
WeeWx expects the amount of rain since the last packet. Therefore you need to remember the last 'rain' value you sent and then subtract that from the current reading (and remember the new value for the next packet). I know you are not using my driver but if you have a look at the HP1000 driver