Page 1 of 1

Dayfile.txt not update at midnight

Posted: Sun 24 Oct 2021 1:49 am
by snowman1977
Good evening,
I am writing about a problem that has occurred a couple of times, the last of which just yesterday.
I use an Oregon WMR88 with an Arduino RF receiver. CumulusMX installed on raspberry and the weather station is configured as "EasyWeather" so the data is provided through a ".dat" file. The problem I encounter is that at the stroke of midnight the dayfile.txt file is not updated and therefore remains behind by a day. Consequently, the today.ini file also remains with the date from the previous day. I solved it manually by stopping CumulusMX and using the "CreateMissing" tool to insert the missing line on the dayfile.txt and deleting the today.ini which is then created correctly when CumulusMX is restarted.

Re: Dayfile.txt not update at midnight

Posted: Mon 25 Oct 2021 12:46 pm
by mcrossley
Please zip up and post your MXdiags folder.

Re: Dayfile.txt not update at midnight

Posted: Mon 25 Oct 2021 6:34 pm
by snowman1977
Thanks in advance Mark for your quick reply.
Attached is the compressed MXdiags folder. As a further indication, I can tell you that in the log I noticed there is no "Day reset" when the reported problem occurs despite the date being correctly detected in the rest of the log.
Greetings

Re: Dayfile.txt not update at midnight

Posted: Tue 26 Oct 2021 1:00 pm
by mcrossley
You are getting lots of "data stopped" errors, if MX is not receiving data from the station it does not perform the rollover.

As an side, you have lots of errors in your tag files that MX is not processing because they are badly formed...
monthlyrecordT.php
alertshow.js

Re: Dayfile.txt not update at midnight

Posted: Tue 26 Oct 2021 9:06 pm
by snowman1977
Mark,
I think the "data stopped" are actually due to Cumulus expecting data every minute while in my case they are transmitted through the easyweather.dat file every two minutes.
However, looking carefully at the log, I noticed that sometimes the generated easyweather.dat file contained incorrect data ("NaN"). When this erroneous data arrived near midnight, the Cumulus log rightly detected an error in the data string and discarded the reading. In this error situation, as you indicated, the rollover was not performed.
So I proceeded to manage any incorrect data in my arduino-raspberry software that picks up the signals from the weather station so that an incorrect string no longer arrives at CumulusMX. I'll let you know if this was really the problem.
I am also correcting the html files affected by errors as reported by you.
Thanks for your valuable contribution.

Re: Dayfile.txt not update at midnight

Posted: Tue 26 Oct 2021 9:26 pm
by mcrossley
OK, CMX does expect he data to be refreshed at least once a minute. If you are using the EasyWeather file method, then could you update the file say every 30 seconds just changing the date/time even if the data does not change?

Re: Dayfile.txt not update at midnight

Posted: Wed 27 Oct 2021 7:46 pm
by snowman1977
Mark
that's just what I thought I'd do.
However, before proceeding, I tried to set the "File Read Interval" to 1 minute in the cumulus configuration (EasyWeather File Setting section) even if the data from the station is updated every 2 minutes. I must tell you that it worked because, while updating the data file every 2 minutes, I see that no anomaly is detected even if the data remains the same between two consecutive readings at 1 minute intervals (including identical date and time). I enclose the last log of the MXDiags folder as a demonstration.

Re: Dayfile.txt not update at midnight

Posted: Thu 28 Oct 2021 3:27 pm
by mcrossley
OK, that is good to know.