Page 1 of 1

graphs in trends not displaying.

Posted: Tue 08 Dec 2015 6:52 pm
by richard_newberry
http://kirbymuxloe-weather.dyndns.org/trends.htm

As you can see nothing is displaying, not sure if its permissions again.

Any ideas?

Re: graphs in trends not displaying.

Posted: Tue 08 Dec 2015 6:59 pm
by Grimers
Hi Richard,

I can see that the .json files are present on your website so it's probably a script error in the cumuluscharts.js file. Steve will be able to help you more on this.

Re: graphs in trends not displaying.

Posted: Tue 08 Dec 2015 7:04 pm
by water01
I turned on the debugger with F12 and then started a Network debug and this indicated on a page refresh that your graphconfig.json is missing on your server ( error 404).

Have you configured (i.e ticked) "Include graph data files" in the Web/FTP settings in the Internet Settings in Cumulus MX?

I you have are they being uploaded to the correct position on your Server?

Re: graphs in trends not displaying.

Posted: Tue 08 Dec 2015 7:06 pm
by mcrossley
You have a missing JSON file for some reason: http://kirbymuxloe-weather.dyndns.org/graphconfig.json

Edit: Cross posted with David.

Re: graphs in trends not displaying.

Posted: Tue 08 Dec 2015 7:07 pm
by Grimers
water01 wrote:I turned on the debugger with F12 and then started a Network debug and this indicated on a page refresh that you graphconfig.json is missing on your server ( error 404).

Have you configured (i.e ticked) "Include graph data files" in the Web/FTP settings in the Internet Settings in Cumulus MX?

I you have are they being uploaded to the correct position on your Server?
I didn't look for that file because I thought that file was uploaded along with the other XXXXdata.json files? He should have that ticked if the XXXXdata.json files are present.

Re: graphs in trends not displaying.

Posted: Tue 08 Dec 2015 8:02 pm
by steve
I think you are copying the files locally rather than using ftp, so the likely explanation is that you have missed graphconfig.json from the list of files to be copied.

Re: graphs in trends not displaying.

Posted: Tue 08 Dec 2015 11:13 pm
by richard_newberry
I'm not using FTP because the webserver and cumulus are on the same box so I'm using the local to remote filenames.

Apparently graphconfig.json wasn't in my webserver directory due to 2 reasons.

I mistyped graph I put "grapg" instead of graphconfig.json. Once I corrected it in local filenames and remote filenames and ticked process it still didn't copy it over so I just used a ftp client called WinSCP and moved it from Cumulus directory to the directory of my webserver directory and it works now. Dunno why it didn't copy it over oh well it works now.

Re: graphs in trends not displaying.

Posted: Wed 09 Dec 2015 8:21 am
by steve
You don't need 'process' ticked for the json files, because they don't need processing - they are generated by Cumulus from data within Cumulus and contain actual data already. Only where a 'template' file containing web tags is specified for the local file does 'process' need to be selected.

Re: graphs in trends not displaying.

Posted: Wed 09 Dec 2015 10:03 am
by richard_newberry
Thanks Steve,

Dunno why i couldnt copy over from cumulus directory to webserver directory. All json files are within /home/cumulus/CumulusMX and all .json files are in webserver directory also thats ok isnt it just dont need process ticked just local and remote filenames with .json files in them?

Re: graphs in trends not displaying.

Posted: Wed 09 Dec 2015 10:31 am
by steve
Yes, the graphconfig.json file is just the same as the other graph json files, so the same settings should work for that as for the data files. Any changes should take effect immediately, but perhaps a restart would get it working. But as you seem to have realised, that file doesn't actually change, so copying it manually once is all you really need anyway.