If you use Cumulus, please donate Image

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

Website Graph pages

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

Website Graph pages

Postby Hatkit » Sun Feb 12, 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 Feb 13, 2017 8:11 am, edited 1 time in total.
Reason: REmove .ini file contains passwords

jlmr731
Posts: 84
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Linux Ubuntu / windows 10
Location: Youngstown, Ohio
Contact:

Re: Website Graph pages

Postby jlmr731 » Sun Feb 12, 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 Oct 22, 2012 7:11 am
Weather Station: Davis VP
Operating System: Windows 10
Location: Cornwall
Contact:

Re: Website Graph pages

Postby Hatkit » Sun Feb 12, 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
Toxic17
Posts: 364
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 8.6
Location: Bangor, NI
Contact:

Re: Website Graph pages

Postby Toxic17 » Sun Feb 12, 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.

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 Toxic17 on Sun Feb 12, 2017 7:30 pm, edited 1 time in total.
Regards Simon
https://www.conligwx.org
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Toxic17
Posts: 364
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 8.6
Location: Bangor, NI
Contact:

Re: Website Graph pages

Postby Toxic17 » Sun Feb 12, 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://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
steve
Cumulus Author
Posts: 25820
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Website Graph pages

Postby steve » Sun Feb 12, 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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

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

Re: Website Graph pages

Postby Hatkit » Thu Feb 23, 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: 208
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Jessie (VMWARE Esxi 6.0)
Location: Leicester
Contact:

Re: Website Graph pages

Postby richard_newberry » Thu Feb 23, 2017 8:49 am

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

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

Re: Website Graph pages

Postby Phil23 » Sun Mar 12, 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: 25820
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Website Graph pages

Postby steve » Sun Mar 12, 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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

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

Re: Website Graph pages

Postby Phil23 » Mon Mar 13, 2017 4:27 am

My Mistake,

This was the thread I was browsing, http://sandaysoft.com/forum/viewtopic.php?f=18&t=8672&p=122891&hilit=highcharts#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: 4843
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Website Graph pages

Postby mcrossley » Mon Mar 13, 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...


Return to “Cumulus MX”

Who is online

Users browsing this forum: vuong and 3 guests