Page 1 of 1

Rain value problem

Posted: Mon 13 May 2019 2:01 am
by f4phlyer
Just installed build #3050 and noticed that the yearly and monthly rain totals were incorrect. The values would be "yesterday's" values. I reinstalled build 3049 and all is back to normal.
Just wanted to post this and see if anyone else has had the problem. I'll wait to 3051 and see what happens.

Re: Rain value problem

Posted: Mon 13 May 2019 9:20 pm
by mcrossley
Steve, are you saying that it is not adding on any rain so far today?

I've had another look and cannot see at the moment how the 3050 changes would change anything, they were only to do with reading from the log file. The results of which are written to the diags log...

"Rainthismonth from dayfile.txt: xxx"
"Rainthisyear from dayfile.txt: xxx"

These would be "yesterdays" values because that is all that is in the dayfile, today's rain is added in separately and that code is not changed.

Could you post the MXdiags file from 3050 starting, and then 3049 starting afterwards please.

Re: Rain value problem

Posted: Tue 14 May 2019 8:14 pm
by f4phlyer
Mark, thanks for the response. I had put off doing any trouble shooting but looking at the logs I think I've spotted the issue. The logs for 3050 can't go past the rain computation as it finds an error in dayfile at line 1492 (which was back in 2015). Before I discovered the "separator" issue I had tried troubleshooting the 'incorrect format' to no avail, but then looking further and going back and comparing the beginning of the MXlog when the "separators" are defined I found the 3050 "separators" are contained in 'brackets' but in 3049 there are no brackets.
If you need any additional logs or anything else let me know

Re: Rain value problem

Posted: Tue 14 May 2019 11:03 pm
by mcrossley
So have you fixed the dayfile entry at line 1492?

I suspect that 3050 may work once the dayfile is sorted out.

As the error only occurs in 3050 and not 3049 I suspect the problem is the date format is incorrect in that a different separator was used for some entries.
Build 3049 uses fixed offsets to find day, month, year. Build 3050 uses the separators defined by the OS to split the values (so allowing for multi-character separators), but it does mean it will be sensitive to the separator value changing.

Re: Rain value problem

Posted: Wed 15 May 2019 2:50 pm
by f4phlyer
Mark, thanks again for the help. I must have missed something as I was making the corrections on the dayfile.txt located in the top directory/folder. Not sure when it was moved to the "data" folder but the last entry was Feb 2, 2019. I'm guessing I did a build update around that time. Correcting the delimiter fixed the problem.