Page 1 of 2

Graphs not updating on website

Posted: Sun 06 Mar 2016 9:58 am
by Synewave
I have two weather stations running MX each on a Raspberry Pi. One is in France, the other in the UK. The France one is working fine, updating the graphs and gauges ok on the public website.

However, the UK one won't update graphs or gauges on the website.

I have Upload Gauges ticked, but the .json files are not being uploaded/updated on the website.

I have spent a lot of time investigating and comparing the two sites, but haven't found anything wrong.

Any help would be much appreciated.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 10:14 am
by steve
Presumably the json files are being updated on the Pi? If so, turn on ftp logging and the ftplog.txt file should help diagnose the problem.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 10:29 am
by Synewave
Hi Steve,

Thanks for the prompt reply.

The .json file aren't being generated on the UK Pi, but they have been and are being updated on the France one.

I assume they are meant to be created by MX as I don't see them in the unzipped distribution?

Thanks,

Paul

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 10:34 am
by mcrossley
I see the UK station is using build 3037 and the France one is 3031. Did the location of the json files change to the web folder in b3037?

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 10:45 am
by steve
mcrossley wrote:Did the location of the json files change to the web folder in b3037?
Yes, it did.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 10:54 am
by Synewave
steve wrote:
mcrossley wrote:Did the location of the json files change to the web folder in b3037?
Yes, it did.
The issue was still present for me pre-b3037.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 10:57 am
by steve
So to clarify, the json files are not being updated in the web folder on your Pi, with 3037?

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 11:12 am
by Synewave
steve wrote:So to clarify, the json files are not being updated in the web folder on your Pi, with 3037?
Correct, there are only .htm files and the realtimegaugesT.txt and realtimegauges.txt files in the web folder on the UK Pi (b3037).

On the France Pi running b3031, the .json files are being updated successfully in the CumulusMX folder.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 11:19 am
by steve
Synewave wrote:Correct, there are only .htm files and the realtimegaugesT.txt and realtimegauges.txt files in the web folder on the UK Pi (b3037).
Which .htm files - just the templates (the ones with T in them) or the processed files, e.g. index.htm and if so, are the files without the T in them being updated? In particular, the gauges.htm file, as that's the last one it creates before creating the json files.

Is the realtimegauges.txt file being updated? I'm wondering if it's a permissions problem and it can't write to the web folder.

Are there any errors in the current MXdiags file?

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 11:33 am
by Synewave
Hi Steve,

The htm files are not being updated, could that be because I have Include Standard Files unchecked? (I don't use these).

This is a capture of the files in the web folder on the UK Pi showing the update timestamps:
Untitled picture.png
I've attached the latest file from MXdiags, I can't see anything wrong in there.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 11:55 am
by steve
It should still create the .htm pages (but not upload them) without "include standard files" as long as you have 'auto update' selected and a valid interval specified.

You're getting an error when you change the internet settings:

2016-03-06 09:33:46.731 Updating internet settings
2016-03-06 09:33:46.732 Object reference not set to an instance of an object

I don't know whether that's related to the problem you're having.

It seems to have successfully created the realtimegauges.txt file at least once, but not since 0929. That does seem to rule out a permissions problem, and you're running MX as root anyway?

Perhaps it would be useful to see your internet settings screen - the "Web/ftp site" section, and the "Web/ftp settings" section, and your "extra files" page.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 12:01 pm
by steve
What update interval are you using? It looks like there's a bug where updates don't happen if you use an interval that isn't synchronised to the clock time, i.e. not a factor of 60.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 12:19 pm
by Synewave
CumulusMX is running under root on UK Pi:

ps -ef|grep Cumulus
root 467 1 1 09:18 ? 00:01:45 mono /home/pi/CumulusMX/CumulusMX.exe

I've attached the screenshots as requested.

I do get the Object Error when I change Internet settings. That seems to have started in b3037. But the changes seem to still take effect.
I don't get that error on the France b3031 build. I was going to let you know about this in a different topic.

Many thanks with all your help with this so far Steve.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 12:30 pm
by steve
Have you changed the interval or has it been 15 minutes all along?

Perhaps the best way forward would be for you to send me your Cumulus.ini file (you can edit out the passwords) and I should at least be able to see what the cause of the settings error is.

Re: Graphs not updating on website

Posted: Sun 06 Mar 2016 12:34 pm
by steve
It looks like you have a leading slash missing from the local filename of realtimegaugesT.txt?