Page 1 of 1

Rain using easyweather.dat file

Posted: Sun 13 Feb 2022 1:10 pm
by watsonm
I seem to be having some issues with CumulusMX rain display when using an easyweather.dat file as input..

( Note: this is on a different Raspberry pi that is providing the data for the banner below!!)

From another post by Steve I know that....
"Today's rain is calculated from the difference between the rain counter at start of day (which Cumulus records as Start= value in today.ini) and the
current value (which you can find from the latest entry in nov09log.txt)"

The last line of my Feb22log,txt file is:
13/02/22,12:00,8.0,100,8.0,0.00,0.00,0,0.00,1.50,998,5.10,20.3,0,0.00,8.0,8.0,0.0,0,0.000,0.000,0.0,383,0.0,30,0.00,0.00,0.0,0.0

And the Start value in Today.ini is : 3.5999999...

This is giving a display of 1.50 mm for today which is correct (since I put 5.1 there!)

However this last line doesn't seem to be updated by the data in the easyweather.dat file which has the following line

0,0,0,2022-02-13 12:10:19,0,0,20.52,95,9.1,0,0,0,984.77,0.0,0,0.0,0,2,NE,,,,10.5,,,,,,,,,,

Also the startup log shows this:

2022-02-13 12:14:41.624 Midnight rain found, setting midnight rain count = 3.6
2022-02-13 12:14:41.625 Checking rain counter = 5.1
2022-02-13 12:14:41.625 Rain counter set to = 5.1

Where is this rain counter as I changed the last line of the Feb22Log.txt file before this restart to show rain today as 6.1?

I am using the table in viewtopic.php?f=4&t=4344 to populate the red entries in the easyweather.dat file and other readings are successfully getting through. Has it been update since then or am I missing something ?

Thanks for any help...

Re: Rain using easyweather.dat file

Posted: Sun 13 Feb 2022 10:45 pm
by mcrossley
Cumulus reads two fields for the rain.
Zero relative...
23 = Rain in the last hour, which is used as the current rainfall rate. This is what you are setting.
27 = Rain this year, which is used as the counter to calculate the rainfall totals

Re: Rain using easyweather.dat file

Posted: Mon 14 Feb 2022 10:10 am
by watsonm
Thanks Mark,

Nice to have the confirmation.

Further investigation after that revealed I was a bit short in the length of of the line. MXDiags file had a complaint about bounds error that seemd to
be OK after first read. However the first read seemed to set up the rain info.... :groan:

Thanks again.... Mike