Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
No graphs with steel series gauges CumulusMX
Moderator: mcrossley
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
No graphs with steel series gauges CumulusMX
I would be grateful for a bit of help please. I have had Cumulus 1 running nicely for a couple of months with the "standard" website plus steel series gauges. I'm running Windows 10 with a WMR200 station. Today I decided to try Cumulus MX and everything works as expected except on the web site there are no graphs with the gauges - just the usual text that comes above the plots. The same is true on the user interface but maybe that is as expected? I have done a simple install of MX into a new directory and copied over the data folder files and Cumulus.ini. I cannot figure out why the graphs don't appear. The FTP log indicates something is not quite right with the realtime.txt and realtimegauges.txt files but I'm not sure what this means exactly. On my PC, MX is installed in a directory "C:/CumulusMX" and on the website, the install is into a directory called "Weather". I have to say the information about how to indicate directories is not quite explicit enough for someone of my abilities but the Cumulus 1 method worked fine so I just used those. I have tried fiddling with them but to no avail. Anyhow, I am attaching a bit of the ftp log and snap shots of (a) the web/ftp settings (2 files); and (b) the extra web files settings. I'd be grateful for a bit of guidance.
Also a minor request - is there anything equivalent to the force web site update in Cumulus 1 for MX?
Also a minor request - is there anything equivalent to the force web site update in Cumulus 1 for MX?
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: No graphs with steel series gauges CumulusMX
There are no graphs on the gauge pop-ups because MX doesn't create its graphs as images. See this 'sticky' thread for a way to get graphs with the gauges - https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13189. Note that this applies to a web site only, not the user interface.
Manual web update will make an appearance at some point.
There's not much documentation specific to MX from me at the moment because I don't have time to write it. Much of the Cumulus 1 documentation also applies to MX, and there is some MX-specific stuff in the wiki. The method of specifying the remote file is exactly the same for MX as in Cumulus 1. Specific information can't be given because the structure of ftp servers varies so much.
Manual web update will make an appearance at some point.
There's not much documentation specific to MX from me at the moment because I don't have time to write it. Much of the Cumulus 1 documentation also applies to MX, and there is some MX-specific stuff in the wiki. The method of specifying the remote file is exactly the same for MX as in Cumulus 1. Specific information can't be given because the structure of ftp servers varies so much.
Steve
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
Hi Steve, thanks for the quick reply - I will have a go. Does this mean the "errors" I perceived in the ftp log are expected message? eg "550 Weather/realtime.txttmp: No such file or directory"
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: No graphs with steel series gauges CumulusMX
It depends - the FTP component seems to like to check the size of existing files before it uploads. Using 'rename' means the file of that name does not exist on the server, so it gets that error, which isn't an indication of a problem.billy wrote: Does this mean the "errors" I perceived in the ftp log are expected message? eg "550 Weather/realtime.txttmp: No such file or directory"
Steve
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
Thanks - pretty bloody obvious on rereading some of the posts so my apologies. I have embarked on the task to get these pop-up graphs on the gauges working (everything else on the web site seems fine) without success. All I get is the pop-up window with space for the plot but alas no plot.
I liked the graphs in Cumulus 1 so I am keen to get this working in MX. Therefore I seek some more help. I am a novice re Cumulus and re websites so helper beware! Although, I too, like Mark, started computing using fortran and punch-cards (on a CDC Cyber 6400 that had been upgraded to 110k of ram - big deal in those days). But my career has been very much statistics focused and no web development to speak of.
Here's where I am at:
(1) My site is hosted (free) by my internet provider (iinet in Australia). It is PHP Version 5.3.2-1ubuntu4.30 with Apache 2 and GD version 2.0. I used the jpgraph php tests and they give the expected output except for the ttf fonts. Could that be the problem? If so, can it be rectified?
I suspect it more likely it is the relationship between the structure of my website and the settings I have chosen, so here they are.
(2) The website is in a top-level folder "/Weather"
(3) jpgraph: is installed into a folder "/Weather/jpgraph". At present only the files and folders that in the download were in the "src" folder are there (the files are directly in /jpgraph/ so I do not have an src folder). (I had tried having the entire download there - with the full folder structure - but that didn't seem necessary to me? I have also tried putting these in other places to no avail.)
I consequently modified:
(a) gd_image.inc.php - add a 'return true;' at line 2266 in the function GetAndStream()
(b) jpg-config.inc.php -
DEFINE("CACHE_DIR","/cache/"); (and I added a directory "cache" directly under the jpgraph folder - but nothing has appeared there!)
DEFINE("USE_CACHE",true);
(4) gauges.js: modified to show gauge pop-up graphs:
showPopupGraphs : true, (I guess this gives me the plot area but not the plot?)
(5) Mark's scripts: In graphSettings.php I left his "locality" settings as they were
$GRAPH[‘jsonloc’] = “/”;
$GRAPH[‘jpgraphloc’] = “/jpgraph/”;
because I thought they were correct for my situation I have at the moment - I copied all the files in the JSON folder into /Weather/images (not the folder "images" as in "lib/steelseries/images"). I don't have the SQL files there now although I did in previous attempts; again they didn't seem necessary). Again, I have tried putting the scripts (all of them) in various places all without success; and changing these settings as I thought appropriate, including using the ./ notation that has been suggested on the forum.
I didn't change the timezone (we are +8 hours here in Western Australia).
There is discussion about the location of ".htaccess" that I don't understand. It is presently in the images folder along with the other JSON scripts but I have tried various places without success.
Is this enough for someone to give me some clues as to what is going on here and what else I might try? I have tried many combinations of the file locations and settings but haven't hit the right one (or there is some other problem). I don't seem to have access to a web server log and have never set up a local web server on my pc (windows 10) for further, more local, testing.
I liked the graphs in Cumulus 1 so I am keen to get this working in MX. Therefore I seek some more help. I am a novice re Cumulus and re websites so helper beware! Although, I too, like Mark, started computing using fortran and punch-cards (on a CDC Cyber 6400 that had been upgraded to 110k of ram - big deal in those days). But my career has been very much statistics focused and no web development to speak of.
Here's where I am at:
(1) My site is hosted (free) by my internet provider (iinet in Australia). It is PHP Version 5.3.2-1ubuntu4.30 with Apache 2 and GD version 2.0. I used the jpgraph php tests and they give the expected output except for the ttf fonts. Could that be the problem? If so, can it be rectified?
I suspect it more likely it is the relationship between the structure of my website and the settings I have chosen, so here they are.
(2) The website is in a top-level folder "/Weather"
(3) jpgraph: is installed into a folder "/Weather/jpgraph". At present only the files and folders that in the download were in the "src" folder are there (the files are directly in /jpgraph/ so I do not have an src folder). (I had tried having the entire download there - with the full folder structure - but that didn't seem necessary to me? I have also tried putting these in other places to no avail.)
I consequently modified:
(a) gd_image.inc.php - add a 'return true;' at line 2266 in the function GetAndStream()
(b) jpg-config.inc.php -
DEFINE("CACHE_DIR","/cache/"); (and I added a directory "cache" directly under the jpgraph folder - but nothing has appeared there!)
DEFINE("USE_CACHE",true);
(4) gauges.js: modified to show gauge pop-up graphs:
showPopupGraphs : true, (I guess this gives me the plot area but not the plot?)
(5) Mark's scripts: In graphSettings.php I left his "locality" settings as they were
$GRAPH[‘jsonloc’] = “/”;
$GRAPH[‘jpgraphloc’] = “/jpgraph/”;
because I thought they were correct for my situation I have at the moment - I copied all the files in the JSON folder into /Weather/images (not the folder "images" as in "lib/steelseries/images"). I don't have the SQL files there now although I did in previous attempts; again they didn't seem necessary). Again, I have tried putting the scripts (all of them) in various places all without success; and changing these settings as I thought appropriate, including using the ./ notation that has been suggested on the forum.
I didn't change the timezone (we are +8 hours here in Western Australia).
There is discussion about the location of ".htaccess" that I don't understand. It is presently in the images folder along with the other JSON scripts but I have tried various places without success.
Is this enough for someone to give me some clues as to what is going on here and what else I might try? I have tried many combinations of the file locations and settings but haven't hit the right one (or there is some other problem). I don't seem to have access to a web server log and have never set up a local web server on my pc (windows 10) for further, more local, testing.
You do not have the required permissions to view the files attached to this post.
-
water01
- Posts: 3670
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10/11 64bit Synology NAS
- Location: Burnham-on-Sea
- Contact:
Re: No graphs with steel series gauges CumulusMX
You do not mention what you have in line 35 of gauges.js where you specify the URL of 'Trend' graph images?
Also a URL of your website would help us help you!!
Also a URL of your website would help us help you!!
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
gauges.js line 35: I had left it as provided, viz "images/". Just tried "/Weather/images/" and a couple of variations but still no pop-up plots. Maybe the original is a clue that the image folder Mark is referring to is the one inside lib/steelseries/?
URL: Sorry, I had not left it out intentionally - but maybe subliminally, as the whole thing started out as a bit of a family joke (and still is) and only intended for them. I just got hooked on it - the next step is probably a Davis station. http://members.iinet.net.au/~lschmitt/Weather
URL: Sorry, I had not left it out intentionally - but maybe subliminally, as the whole thing started out as a bit of a family joke (and still is) and only intended for them. I just got hooked on it - the next step is probably a Davis station. http://members.iinet.net.au/~lschmitt/Weather
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
OK, I have gone back to basics and think I probably have had incorrect settings for all the file/folder declarations. With the folder structure unchanged from my first post, here is what I have now:
src/jpg-config.inc.php:
DEFINE(‘CACHE_DIR’,’/Weather/jpgraph/cache/’);
gauges.js:
imgPathURL : '/Weather/images/',
oldGauges : '/Weather/gauges.htm',
graphSettings.php:
$GRAPH[‘jsonloc’] = “/Weather/”;
$GRAPH[‘jpgraphloc’] = “/Weather/jpgraph/”;
Still the same outcome - a lovely clear plot area - but is this any closer to what it should be?
src/jpg-config.inc.php:
DEFINE(‘CACHE_DIR’,’/Weather/jpgraph/cache/’);
gauges.js:
imgPathURL : '/Weather/images/',
oldGauges : '/Weather/gauges.htm',
graphSettings.php:
$GRAPH[‘jsonloc’] = “/Weather/”;
$GRAPH[‘jpgraphloc’] = “/Weather/jpgraph/”;
Still the same outcome - a lovely clear plot area - but is this any closer to what it should be?
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: No graphs with steel series gauges CumulusMX
OK, so I see you have the graph scripts in /Weather/images/
The jpgraphs package is in /Weather/jpgraph/
But, if I try and load the graphs (e.g. /Weather/images/graphHum.php) they all error with a 500.
Similarly, the jpgraph examples also error with a 500. So you do not have something configured correctly with the jpgraph package.
Your first job is to get the jpgraph package correctly configured and working, then move on to the graphs.
First job, would be to create a file called "phpinfo.php" in the root of web server, and check the output from that script (as per this page)
Also you do not appear to have the .htaccess file uploaded to the /Weather/images/ folder? So you cannot refer to the graphs as their aliased names...
e.g.
http://members.iinet.net.au/~lschmitt/W ... s/temp.png - error 404, file not found
but
http://members.iinet.net.au/~lschmitt/W ... empOut.php - error 500, server problem
So either you do have the .htaccess file uploaded and it isn't working, or it isn't there?
The jpgraphs package is in /Weather/jpgraph/
But, if I try and load the graphs (e.g. /Weather/images/graphHum.php) they all error with a 500.
Similarly, the jpgraph examples also error with a 500. So you do not have something configured correctly with the jpgraph package.
Your first job is to get the jpgraph package correctly configured and working, then move on to the graphs.
First job, would be to create a file called "phpinfo.php" in the root of web server, and check the output from that script (as per this page)
Also you do not appear to have the .htaccess file uploaded to the /Weather/images/ folder? So you cannot refer to the graphs as their aliased names...
e.g.
http://members.iinet.net.au/~lschmitt/W ... s/temp.png - error 404, file not found
but
http://members.iinet.net.au/~lschmitt/W ... empOut.php - error 500, server problem
So either you do have the .htaccess file uploaded and it isn't working, or it isn't there?
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
I have just run phpinfo.php and I get the same result as previously. I've included a couple of screen shots. The subsequent testing all works except TTF as I mentioned in an earlier post.
I see .htaccess is missing - not sure what happened there. I have uploaded it again just now - and now the webpage won't update; my browser is showing the time at thebottom of the page as 10 minutes ago
I see .htaccess is missing - not sure what happened there. I have uploaded it again just now - and now the webpage won't update; my browser is showing the time at thebottom of the page as 10 minutes ago
You do not have the required permissions to view the files attached to this post.
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
the page is now refreshing - not sure what was happening there. same outcome - no trend plots. maybe go back and try jpgraph 1.27.1 (currently 3.5.0b1) which I had done previously but again with no luck, probably because I had errors in some/all settings!
Tried 1.27.1 and no improvement
Tried 1.27.1 and no improvement
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
I have now had an opportunity to do a bit more testing. Clearly there is a problem with jpgraph package (3.5.0b1) as the examples return a server error 500. From what I have read this is most likely a problem with the TTF library. I will explore this further with the web site provider but I'm guessing this might be the cost of a free service!
As an aside, I also installed jpgraph 1.27.1 and those examples do work, but then I can't get Cumulus MX graphs output.
This post is really just to say thanks to those on the forum who have helped - and politely tolerated my bumbling first efforts. I have learned heaps from the comments but clearly have a lot more to learn!
As an aside, I also installed jpgraph 1.27.1 and those examples do work, but then I can't get Cumulus MX graphs output.
This post is really just to say thanks to those on the forum who have helped - and politely tolerated my bumbling first efforts. I have learned heaps from the comments but clearly have a lot more to learn!
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: No graphs with steel series gauges CumulusMX
OK, I see jpgraph now works, but you have the jpgraph scripts one directory lower than I would have expected, normally you would just upload the 'src' folder to the jpgraph folder on your web server.
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: No graphs with steel series gauges CumulusMX
Just realized leading blanks in lines seem to be stripped so the attachment will make more sense!
OK, I have moved the contents of the src folder directly into the jpgraph folder (I had tried that in previous attempts).
One question I have is about the paths in the settings in gauges.js. The instructions are that they be relative - relative to what? It seems like in the download they are relative to the top level of the web site (ie in my case /Weather/). is this correct? I've tried various options - obviously without success. Another is does the following make any sense to you?
First, The structure of my website
/
Weather
images //your scripts are here - just the ones from the JSON folder
jpgraph //this is version 1, not version 3 which doesn't seem to work on my cheap web server provider
cache
js
lib
highstock
jquery
steelseries
css
images
scripts
And here are what I think may be the relevant settings in various files (except for the gauges.js ones that I'm puzzled by):
1. jpgraph files (in /Weather/jpgraph/)
gd_image.inc.php
there is no function GetAndStream in the V1 file so adding the "'return true'" is irrelevant as far as I can see
jpg-config.inc.php
DEFINE("CACHE_DIR","/Weather/jpgraph/cache/");
DEFINE("USE_CACHE",true);
2. gauges.js (in /Weather/lib/steelseries/scripts)
imgPathURL : 'images/', //currently unchanged from the download
oldGauges : 'gauges.htm', //ditto
showPopupGraphs : true,
3. graphSettings.php (in /Weather/images/)
$GRAPH['jsonloc'] = "/Weather/";
$GRAPH['jpgraphloc'] = "/Weather/jpgraph/";
OK, I have moved the contents of the src folder directly into the jpgraph folder (I had tried that in previous attempts).
One question I have is about the paths in the settings in gauges.js. The instructions are that they be relative - relative to what? It seems like in the download they are relative to the top level of the web site (ie in my case /Weather/). is this correct? I've tried various options - obviously without success. Another is does the following make any sense to you?
First, The structure of my website
/
Weather
images //your scripts are here - just the ones from the JSON folder
jpgraph //this is version 1, not version 3 which doesn't seem to work on my cheap web server provider
cache
js
lib
highstock
jquery
steelseries
css
images
scripts
And here are what I think may be the relevant settings in various files (except for the gauges.js ones that I'm puzzled by):
1. jpgraph files (in /Weather/jpgraph/)
gd_image.inc.php
there is no function GetAndStream in the V1 file so adding the "'return true'" is irrelevant as far as I can see
jpg-config.inc.php
DEFINE("CACHE_DIR","/Weather/jpgraph/cache/");
DEFINE("USE_CACHE",true);
2. gauges.js (in /Weather/lib/steelseries/scripts)
imgPathURL : 'images/', //currently unchanged from the download
oldGauges : 'gauges.htm', //ditto
showPopupGraphs : true,
3. graphSettings.php (in /Weather/images/)
$GRAPH['jsonloc'] = "/Weather/";
$GRAPH['jpgraphloc'] = "/Weather/jpgraph/";
You do not have the required permissions to view the files attached to this post.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: No graphs with steel series gauges CumulusMX
Do you have access to the web server error log?
The paths are different for JavaScript and PHP. JavaScript is being run in the clients browser so it's 'root' is the publically visible root "/~lschmitt/Weather/"
PHP is running on the server, its root depends on how PHP has been setup, it could be "/" refers to the root of the server file system (unlikely on a hosted sysetm), or "/~lschmitt" or "/~lschmitt/Weather/". Your phpinfo() command should tell you the document root. You need to define paths from that root, without a the initial slash.
The paths are different for JavaScript and PHP. JavaScript is being run in the clients browser so it's 'root' is the publically visible root "/~lschmitt/Weather/"
PHP is running on the server, its root depends on how PHP has been setup, it could be "/" refers to the root of the server file system (unlikely on a hosted sysetm), or "/~lschmitt" or "/~lschmitt/Weather/". Your phpinfo() command should tell you the document root. You need to define paths from that root, without a the initial slash.