Page 2 of 2

Re: Rainfall So Far being carried forward to next day.

Posted: Sat 09 Oct 2021 9:56 pm
by mcrossley
Shutting down MX before hibernating would be a better solution, no rolling back of data would be required then.

But you have exposed a bug in the Davis VP2 & WLL (which was largely copied from the VP2) code that seems to have been there for a long time - it's in the original code released by Steve back in 2017. During day reset whilst catching-up, the monthly log file entry for the rollover hour is created before the day is reset. It should be done after the day reset - as it is when live running.

I'll get that fixed, and investigate your other issues and see if they are related to the same bug...

Re: Rainfall So Far being carried forward to next day.

Posted: Sun 10 Oct 2021 1:02 am
by Nin3DSFan
Is the Vantage Pro 2 bug also in the Vantage Vue (which is what I have)?
Also, I assume the bug in question is why the rainfall data at 23:59 does not reset at 0:00?
According to the "monthly logs" or "standard log files" as they are now called, the first time the rainfall data did not reset to 0.00 at midnight, with the total (yearly) rainfall counter suddenly seeing that as the rainfall for the next day, and suddenly increasing the counter by that amount, was at the rollover between June 17, and June 18, 2021. Specifically, at the beginning of June 17, the total rainfall counter was 422.6, we then had 19.2 mm of rain, which therefore means the total counter was 441.8 by 23:59, but at the rollover at 0:00, the daily rain was still 19.2, which caused the total to jump again from 441.8 to 461.0. After which, we had another 14.0 mm up to 13:33, which was when CMX was resumed at that point, where the total counter was suddenly readjusted back by 19.2 to 455.8, where it should be. It's just strange how it suddenly started doing that at that point. Unfortunately, while the total rain counter only temporarily is wrong, and then corrects itself somehow, the "total monthly counter" will most likely be wrong for June 2021 onwards.
According to the NOAA year report, the total rainfall for each month since June 2021 was:
June - 89.4 (should be 91.2, a difference of 1.8)
July - 71.6 (should be 77.2, a difference of 5.6)
August - 47.4 (should be 48.4, a difference of 1.0)
September - 28.0 (should be 28.4, a difference of 0.4)
October - 88.2 (should be 92.2, a difference of 4.0)