Page 1 of 1
Rain Display Errors
Posted: Wed 04 Jan 2017 4:01 pm
by glennpm
Hi,
I have a reporting problem with my rain totals.
These values are correct in "today/yesterday"
"Rainfall
Today 0.27 in
Yesterday 0.59 in"
- rainfall counter is also correct in data logs
The following are only reporting yesterday's rain
Re: Rain Display Errors
Posted: Wed 04 Jan 2017 4:25 pm
by steve
What happens if you restart MX? Are there any messages in the latest diags file about errors in dayfile.txt?
Re: Rain Display Errors
Posted: Wed 04 Jan 2017 6:11 pm
by glennpm
Hi Steve,
There is an error in my dayfile.txt but I can't see it. The first part of this file I input some values to grab monthly rain and alltime values.
2017-01-04 13:06:51.651 Midnight rain found in the following entry:
2017-01-04 13:06:51.651 04/01/17,00:00,34.3,97,33.5,7.0,19.0,82,0.00,0.00,29.574,0.59,65.3,38,9.0,28.2,34.3,0.0,0,0.000,0.000,27.0,0,0.0,90,0.00,0.00
2017-01-04 13:06:51.654 Setting raintoday from logfile = 0.28
2017-01-04 13:06:51.654 Calculating rain counter = 0.87
2017-01-04 13:06:51.654 Midnight rain found = 0.59
2017-01-04 13:06:51.657 Getting rain totals, rain season start = 1
2017-01-04 13:06:51.657 Today = 04/01/17
2017-01-04 13:06:51.659 GetRainfallTotals: Error on line 1 of dayfile.txt: Input string was not in a correct format.
2017-01-04 13:06:51.659 Rainthismonth from dayfile.txt: 0
2017-01-04 13:06:51.659 Rainthisyear from dayfile.txt: 0
Re: Rain Display Errors
Posted: Wed 04 Jan 2017 6:24 pm
by steve
Lines 1-6:
2017-01-04 18_19_20-C__Users_steve_Downloads_dayfile (1).txt - Notepad++.png
Lines 282-283:
2017-01-04 18_20_10-C__Users_steve_Downloads_dayfile (1).txt - Notepad++.png
You can't in general have incomplete data in dayfile.txt. You
might get away with it if you at least include the daily rain total (even if it's zero). The last two lines don't even have dates on them.
Re: Rain Display Errors
Posted: Wed 04 Jan 2017 6:35 pm
by glennpm
Thanks Steve!
Re: Rain Display Errors
Posted: Wed 04 Jan 2017 6:40 pm
by steve
Note also that the date formats have to be dd/mm/yy
Re: Rain Display Errors
Posted: Wed 04 Jan 2017 10:12 pm
by glennpm
Thanks for the followup Steve.
I noticed the date format error as I was fixing things. The last two bad lines were due to me checking the SUM of column O for rain and then forgetting to take the formula out. This prevented new additions to the dayfile. I put zeros in where required and now all is good with no errors.
Thanks for your help.
Glenn