Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

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

Server Generated Graphs for MX

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
User avatar
steve
Cumulus Author
Posts: 26423
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Server Generated Graphs for MX

Postby steve » Mon Jun 26, 2017 1:52 pm

Herbaldew wrote:Can one make the popup graphs work on the CMX interface (running on rPi)?

Not with the Cumulus UI because the built-in MX 'web server' is lightweight and doesn't do PHP. You would need to run a proper web server on the Pi and run the standard web site (or part of it) on that, for viewing locally.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

dazza1223
Posts: 227
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Server Generated Graphs for MX

Postby dazza1223 » Fri Dec 29, 2017 1:00 am

got it working

http://www.davisworthing.co.uk/images/graphPress.php

but still know pop ups gauges ?

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

Re: Server Generated Graphs for MX

Postby mcrossley » Fri Dec 29, 2017 1:54 pm

dazza1223 wrote:but still know pop ups gauges ?

You have a space in the image path variable in gauges.js...

Code: Select all

imgPathURL         : './images/ ',

dazza1223
Posts: 227
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Server Generated Graphs for MX

Postby dazza1223 » Fri Dec 29, 2017 4:20 pm

ok i did that put still the same


do i need to do somthink to is part of code



// Cumulus
realtimeVer = 12; // minimum version of the realtime JSON file required
config.realTimeURL = config.longPoll ? config.realTimeUrlLongPoll : config.realTimeUrlCumulus;
// the trend images to be used for the pop-up data, used in conjunction with config.imgPathURL
// by default this is configured for the Cumulus 'standard' web site
// ** If you specify one image in a sub-array, then you MUST provide images for all the other sub-elements
config.tipImgs = [ // config.tipImgs for Cumulus users using the 'default' weather site
['temp.png', 'intemp.png'], // Temperature: outdoor, indoor
// Temperature: dewpoint, apparent, windChill, heatIndex, humidex
['temp.png', 'temp.png', 'temp.png', 'temp.png', 'temp.png'],
'raint.png', // Rainfall
'rain.png', // Rainfall rate
['hum.png', 'hum.png'], // Humidity: outdoor, indoor
'graphPress.png', // Pressure
'wind.png', // Wind speed
'windd.png', // Wind direction
(config.showUvGauge ? 'uv.png' : null), // UV graph if UV sensor is present | =null if no UV sensor
(config.showSolarGauge ? 'solar.png' : null), // Solar rad graph if Solar sensor is present | Solar =null if no Solar sensor
(config.showRoseGauge ? 'windd.png' : null), // Wind direction if Rose is enabled | =null if Rose is disabled
(config.showCloudGauge ? 'press.png' : null) // Pressure for cloud height | =null if Cloud Height is disabled

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

Re: Server Generated Graphs for MX

Postby mcrossley » Fri Dec 29, 2017 7:48 pm

It doesn't look like you have loaded the .htaccess file on your web server?
You can only access the files via their full filenames eg "graphPress.php", whereas the gauges script is looking the aliases eg "press.png"

dazza1223
Posts: 227
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Server Generated Graphs for MX

Postby dazza1223 » Fri Dec 29, 2017 8:13 pm

I've put it in the images folder as I saw that where ppl been saying to put it or am I doing some thing rong or missing somthink

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

Re: Server Generated Graphs for MX

Postby mcrossley » Fri Dec 29, 2017 8:35 pm

Is your web server running on Apache?

dazza1223
Posts: 227
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Server Generated Graphs for MX

Postby dazza1223 » Fri Dec 29, 2017 8:48 pm

Yh it is mate on rasberry pi

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

Re: Server Generated Graphs for MX

Postby mcrossley » Fri Dec 29, 2017 9:49 pm

Take a look at this...
https://httpd.apache.org/docs/current/h ... ccess.html
You could move the contents of the file into your main Apache config file as that article indicates that is more efficient anyway.

dazza1223
Posts: 227
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Server Generated Graphs for MX

Postby dazza1223 » Fri Dec 29, 2017 9:55 pm

Ok I was thinking off do I g that but as it a raspberry pi and it nice having it all a ssd drive so there way ur saying I need to edit the config file to Pont it to the file


Return to “Cumulus MX”

Who is online

Users browsing this forum: grannie and 6 guests