Welcome to the new home of the Cumulus Support forum.

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

Website Graph pages

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
Post Reply
Hatkit
Posts: 3
Joined: Mon 22 Oct 2012 7:11 am
Weather Station: Davis VP
Operating System: Windows 10
Location: Cornwall
Contact:

Website Graph pages

Post by Hatkit » Sun 12 Feb 2017 4:31 pm

I have updated from Cumulus 1 to Cumulus MX with no problem at all.....except, on my station website at
http://www.treviskeyweather.co.uk the graph files refuse to display. Every other aspect of the site works fine including the gauges, but having scoured the forum and the Wiki I'm at a loss to work out how to get them displayed. I've attached a copy of my cumulus.ini file and a screenshot of my ftp files if it helps solve the problem.
You do not have the required permissions to view the files attached to this post.
Last edited by water01 on Mon 13 Feb 2017 8:11 am, edited 1 time in total.
Reason: REmove .ini file contains passwords

jlmr731
Posts: 118
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Youngstown, Ohio
Contact:

Re: Website Graph pages

Post by jlmr731 » Sun 12 Feb 2017 6:05 pm

did you transfer all the files from webfiles directory to your server

My guess is your missing the highcharts files that are included within the webfiles and some other script files to make it work

Hatkit
Posts: 3
Joined: Mon 22 Oct 2012 7:11 am
Weather Station: Davis VP
Operating System: Windows 10
Location: Cornwall
Contact:

Re: Website Graph pages

Post by Hatkit » Sun 12 Feb 2017 6:55 pm

Thanks Jeff, but oh were it that simple....The contents of the MX webfiles folder were faithfully transferred to my site, so I think the problem lies a little deeper. I even checked with my isp to make sure that json files were supported (they are)

User avatar
ConligWX
Posts: 728
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: Website Graph pages

Post by ConligWX » Sun 12 Feb 2017 7:24 pm

Hatkit wrote:Thanks Jeff, but oh were it that simple....The contents of the MX webfiles folder were faithfully transferred to my site, so I think the problem lies a little deeper. I even checked with my isp to make sure that json files were supported (they are)
CumulusMX does not by default create graphs. but does create charts.

http://sandaysoft.com/forum/viewtopic.php?f=27&t=13189

if your talking about the Highchart Trends link, make sure the JSON files are processed to your webserver
Last edited by ConligWX on Sun 12 Feb 2017 7:30 pm, edited 1 time in total.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS Templates

User avatar
ConligWX
Posts: 728
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: Website Graph pages

Post by ConligWX » Sun 12 Feb 2017 7:27 pm

make sure you have enabled:

Include graph data files - Select this to have the graph data files uploaded

in the webgui, Settings, Internet Settings, Web/FTP Settings

you might also need to restart CumulusMX.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS Templates

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

Re: Website Graph pages

Post by steve » Sun 12 Feb 2017 7:38 pm

Your web server is returning '404 not found' for the graph data json files, even though they are apparently being uploaded, according to your screen shot. The most likely cause is that your web server is not configured to handle json files, and if so, this will need to be corrected.
Steve

Hatkit
Posts: 3
Joined: Mon 22 Oct 2012 7:11 am
Weather Station: Davis VP
Operating System: Windows 10
Location: Cornwall
Contact:

Re: Website Graph pages

Post by Hatkit » Thu 23 Feb 2017 8:29 am

Resolved by a quick call to my website hosting company. They uploaded a config file to my site which allowed the json files to be processed. What was slightly off putting was that they claim to supported json already, but this is not by default and needs to be requested from them. :) :clap:

richard_newberry
Posts: 283
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: Website Graph pages

Post by richard_newberry » Thu 23 Feb 2017 8:49 am

Host your own website. Then you wouldn't have json problems. there's pros and cons to everything.
Desford Weather
http://www.desford-weather.co.uk
http://desford-weather.co.uk
Also on Desford weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

Phil23
Posts: 111
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: Website Graph pages

Post by Phil23 » Sun 12 Mar 2017 9:42 pm

Hi Mark,

Just browsed this entire thread & can't see an answer to my question.

I'm using just the standard files, trends.htm & cumuluscharts.js.

Is it possible some how to pass a button press to the js from the trends.htm?

Ie weather.inverellit.com/trends.htm?pressure

Thoughts being that if the above could be done it would allow posting of links that go directly to a page other than the default Temperature one.

Thanks

Phil

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

Re: Website Graph pages

Post by steve » Sun 12 Mar 2017 10:44 pm

I'm not Mark, but I'll attempt to answer your question (although I'm not sure why you might have expected it to be answered in this particular thread). If you use window.location.href in the JavaScript for the page, you get the full URL, so you can extract the final part of the URL and open the requested chart. I don't actually know whether you would get the URL including the part after the question mark, though, you would have to try it. URLs of that type are normally used by PHP pages.
Steve

Phil23
Posts: 111
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: Website Graph pages

Post by Phil23 » Mon 13 Mar 2017 4:27 am

My Mistake,

This was the thread I was browsing, http://sandaysoft.com/forum/viewtopic.p ... ts#p122891.

Too many tabs open & distractions, hence I replied to the wrong thread.

I don't quite understand the usage of "window.location.href"; a bit out of my present depth.

trends.htm? etc was my poor example, what I meant was a full URL that could take me to a given graph.

Phil.

User avatar
mcrossley
Posts: 5209
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Website Graph pages

Post by mcrossley » Mon 13 Mar 2017 11:02 am

As Steve said you should be able to use the value of window.location.href to do this, but please repost on the correct thread (or Mod please move this to the other thread) and we'll handle it there...

Post Reply