Page 2 of 2

Re: Charts and gauges on my website

Posted: Tue 23 Aug 2016 2:14 pm
by seggins
Steve,

This strange because that file is present on the website and is being updated - as are all the other json files.
They are all in the CumulusMX folder with everything else. Should they be in a sub folder perhaps?
Regards
John

Re: Charts and gauges on my website

Posted: Tue 23 Aug 2016 2:16 pm
by mcrossley
You need to talk to your hosting provider and ask them to enable the JSON MIME type on the web server.

Re: Charts and gauges on my website

Posted: Wed 24 Aug 2016 10:15 pm
by seggins
Scripting has been enabled on the site.
Still no charts.
Regards
John

Re: Charts and gauges on my website

Posted: Thu 25 Aug 2016 6:31 am
by seggins
Gauges are working fine. Graphs are not.
Here is what is in CumulusMX folder on the website:

Re: Charts and gauges on my website

Posted: Thu 25 Aug 2016 7:06 am
by mcrossley
mcrossley wrote:You need to talk to your hosting provider and ask them to enable the JSON MIME type on the web server.
Have you done this?

Re: Charts and gauges on my website

Posted: Thu 25 Aug 2016 9:05 am
by seggins
Yes, did that. They did not seem to understand what I wanted. I enabled pnp(?) on the site although the significance of that escapes me.
All I want is the thing to work and they keep telling me to write "scripts" and offer examples but all they did was stop the whole site with an error 500.
My last post is what is in the CumulusMX folder in the hope that someone can tell me what is missing.
Regards
John

Re: Charts and gauges on my website

Posted: Thu 25 Aug 2016 9:18 am
by seggins
Update:

All is working perfectly now. A great guy called will at fast hosts put it right.
It was all due to something called ASP which I don't understand.
Thanks Steve and mcrossley for your patience and help for this old duffer here!
Regards
John

Re: Charts and gauges on my website

Posted: Fri 09 Sep 2016 11:53 am
by ConligWX
Mark I have a similar issue, though website is running on NAS.

PHP 5.6.23 / Apache 2.4.20

Any thoughts as to what I need to do? Gauges are fine, but charts on popups are broken.

Re: Charts and gauges on my website

Posted: Fri 09 Sep 2016 1:23 pm
by mcrossley
I'll need a bit more to go Simon...
Are you suing the SQL or JSON version of the graphs?
Where are the graph scripts, jpgraph, json files etc.?
Do you have any idea where it is failing?
What settings are you using?
Have you checked your servers Apache error log - that should give you some clues.

Re: Charts and gauges on my website

Posted: Fri 09 Sep 2016 10:22 pm
by ConligWX
Hi Mark

JSON i think...

Graphs scripts http://www.conligwx.org/lib/steelseries/scripts

Since my NAS is locked down apache logs are hard to get (if they log at all)

I do have Virtual Hosts enabled on my webserver since I have multiple domains. I wonder if that is screwing up the paths.

Include graph data files is enabled, and JSON files are in my root web folder.

I'm not that fussed to fix it tbh, is there anyway I can remove just the broken graphs from the popup window totally?

Re: Charts and gauges on my website

Posted: Sat 10 Sep 2016 7:22 am
by steve
Toxic17 wrote:is there anyway I can remove just the broken graphs from the popup window totally?
In the config section near the start of gauges.js, set showPopupGraphs to false.

Re: Charts and gauges on my website

Posted: Sat 10 Sep 2016 7:36 am
by ConligWX
steve wrote:
Toxic17 wrote:is there anyway I can remove just the broken graphs from the popup window totally?
In the config section near the start of gauges.js, set showPopupGraphs to false.
Thanks for the help.

Re: Charts and gauges on my website

Posted: Fri 16 Sep 2016 8:16 am
by tomron
Hello!

my two cents...

It would be very helpfull to state that the local path to realtimegaugesT.txt should be defined with the relative path from CumulusMX.exe --> "web\realtimegaugesT.txt" :!:

restart the Cumulus application after changes have been done to the stettings

Active Mode (FTP) did prohibit upload to the FTP server

Re: Charts and gauges on my website

Posted: Fri 16 Sep 2016 9:08 am
by steve
tomron wrote:It would be very helpfull to state that the local path to realtimegaugesT.txt should be defined with the relative path from CumulusMX.exe --> "web\realtimegaugesT.txt" :!:
It doesn't have to be a relative path, the full path can be specified. I've updated the instructions to give the two forms of relative path that can be used, depending on the OS. At some point I will get MX to handle it in the same way as realtime.txt, so this additional config will not be be necessary.
restart the Cumulus application after changes have been done to the stettings
You shouldn't need to restart Cumulus to pick up changes to the extra files config, but it's a good idea in general to restart MX after changing settings, as the MX FAQ points out, until I get around to adding all the code to apply the changes dynamically.
Active Mode (FTP) did prohibit upload to the FTP server
For you, quite possibly, but not for everyone. Some people need to use active FTP mode.