Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Issue with MX Graphs

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
Big Daddy
Posts: 61
Joined: Tue Sep 10, 2013 8:40 pm
Weather Station: Maplin N96FY
Operating System: Windows 8
Location: Freiston, Lincolnshire, UK

Issue with MX Graphs

Postby Big Daddy » Wed Jul 04, 2018 12:08 pm

Hi All,
We had a power cut at the weekend and since then the "daily" graphs for rain and temperature have been displaying incorrectly showing a 100 year span. Everything else seems to have survived. This has obviously been caused by the incorrect shutdown of my Raspberry Pi so I am just wondering if anybody has any ided how to sort it out.

rain.png
.

Any help appreciated.

Andy
You do not have the required permissions to view the files attached to this post.

User avatar
steve
Cumulus Author
Posts: 26558
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Issue with MX Graphs

Postby steve » Wed Jul 04, 2018 12:52 pm

Looks like some kind of corruption in dayfile.txt - the diags file may have some relevant error messages. Stop MX and open the file in a good text editor and look for anything obviously unusual. Also check that the date formats are all correct.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

Big Daddy
Posts: 61
Joined: Tue Sep 10, 2013 8:40 pm
Weather Station: Maplin N96FY
Operating System: Windows 8
Location: Freiston, Lincolnshire, UK

Re: Issue with MX Graphs

Postby Big Daddy » Wed Jul 04, 2018 5:07 pm

Hi Steve,
Many thanks for the quick response and the pointers.

In the dayfile I found entries (in the following order) for 30/6/18, 1/7/18, 31/12/99, 31/12/99, 31/12/99, 2/7/18, 3/7/18)

Also there is an MXdiag file created with this date - 20000101-001741 that contains this.
2000-01-01 00:17:45.399 Start Timers
2000-01-01 00:17:45.399 Starting 1-minute timer
2000-01-01 00:17:45.401 Attempting realtime FTP connect
2000-01-01 00:17:46.121 Starting Realtime timer, interval = 60 seconds
2018-07-02 18:11:41.318 Hour changed:18
2018-07-02 18:11:41.318 Calculating sunrise and sunset times
2018-07-02 18:11:41.319 Sunrise: 04:39:01

So I expect this is what you were referring to.

Question now is how do I correct it. My thoughts were either:

1) Remove the offending 31/12/99 dates from the dayfile

or

2) I backup my data at 3am every Monday, so load all, or some, of the data files back and let them re-read from the station.

Advice on correction would be helpful please.

I need to look elsewhere as well as the Pi has a RTC fitted so unless this was pure file corruption due to the abnormal shutdown or possibly a time issue I dont know.

Thanks
Andy

User avatar
steve
Cumulus Author
Posts: 26558
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Issue with MX Graphs

Postby steve » Wed Jul 04, 2018 5:44 pm

Yes, looks like your clock went screwy. I can't really advise on which of the two approaches would be best, you could look at the lines with valid dates and assess whether they correctly represent those days, otherwise use your backup (or one the Cumulus backups, which are intended for this purpose) to reload the data from the end of June to date. Note that this data will typically not be as good as 'live' data.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

Big Daddy
Posts: 61
Joined: Tue Sep 10, 2013 8:40 pm
Weather Station: Maplin N96FY
Operating System: Windows 8
Location: Freiston, Lincolnshire, UK

Re: Issue with MX Graphs

Postby Big Daddy » Wed Jul 04, 2018 8:12 pm

Thanks Steve,

Took option 1 an removed the lines out of dayfile.txt. Graphs back to normal and all looking good.

Now to work on "did I install the RTC properly and is it working "issue.

Appreciate the help as always.

Andy


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 3 guests