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
Cumulus and jpgraphs
-
dvandellen
- Posts: 35
- Joined: Thu 24 Feb 2011 1:19 pm
- Weather Station: ws4000
- Operating System: windows xp sp3
- Location: The Netherlands
- Contact:
Cumulus and jpgraphs
Hello,
I'm trying to set up jpgraphs.
But when i go to http://www.weerstationniawier.nl/baro.php it gives an error code.
What needs to be changed?
I'm trying to set up jpgraphs.
But when i go to http://www.weerstationniawier.nl/baro.php it gives an error code.
What needs to be changed?
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: Cumulus and jpgraphs
It seems you're running a local server on your computer and jpgraph isn't installed/availble ?
Warning: include(../jpgraph/src/jpgraph.php): failed to open stream: No such file or directory in D:\www\weerstationniawier.n\www\GraphSettings.php on line 16
Warning: include(../jpgraph/src/jpgraph.php): failed to open stream: No such file or directory in D:\www\weerstationniawier.n\www\GraphSettings.php on line 16
-
dvandellen
- Posts: 35
- Joined: Thu 24 Feb 2011 1:19 pm
- Weather Station: ws4000
- Operating System: windows xp sp3
- Location: The Netherlands
- Contact:
Re: Cumulus and jpgraphs
Ik heb al de bestanden geupload naar mijn website zoals staat omgschreven...
(i uploaded all the files to my website...)
(i uploaded all the files to my website...)
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: Cumulus and jpgraphs
Is the ./realtime.log also availble ? Seems it's missing but I don;t use the script of tnetweather maybe some-one else has a clue..
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: Cumulus and jpgraphs
You clearly have some paths hard coded into the php code somewhere, which refer to your local D: drive on your computer. These will need to be changed to relative paths for your webserver.
We can not see the source of the php file so can not help. You will need to upload as a zip for more help
We can not see the source of the php file so can not help. You will need to upload as a zip for more help
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Cumulus and jpgraphs
A few questions Mr. D:
- First and foremost, does your host server make PHP available - can you use PHP scripts on your host server (use this script to test for PHP)?
- Have you installed and is your computer running the 'realtimelog.php' script to produce the 'realtime.log' file (where the script can be downloaded)?
- Have you installed the JpGraph library - either version 3.5.0b1 (2010-10-07) or version 3.0.7 (2010-01-11)?
- Into which directory have you installed the JpGraph library - path from the root.
- Into which directory are the Cumulus files installed (where both the 'realtime.txt' file and the 'realtimelog.php' script are located) - path from the root.
- Into which directory is the file 'realtime.log' produced (located) (if different than the previous location) - path from the root.
- Have you made modification to line 63-70 of the 'GraphSettings.php' template?
- Into which directory have you installed the following scripts - again, path from the root:
- First and foremost, does your host server make PHP available - can you use PHP scripts on your host server (use this script to test for PHP)?
- Have you installed and is your computer running the 'realtimelog.php' script to produce the 'realtime.log' file (where the script can be downloaded)?
- Have you installed the JpGraph library - either version 3.5.0b1 (2010-10-07) or version 3.0.7 (2010-01-11)?
- Into which directory have you installed the JpGraph library - path from the root.
- Into which directory are the Cumulus files installed (where both the 'realtime.txt' file and the 'realtimelog.php' script are located) - path from the root.
- Into which directory is the file 'realtime.log' produced (located) (if different than the previous location) - path from the root.
- Have you made modification to line 63-70 of the 'GraphSettings.php' template?
- Into which directory have you installed the following scripts - again, path from the root:
- 'baro.php', 'dewpt.php', 'GraphSettings.php', 'intemp.php', 'rain.php', 'temp.php', 'wind.php', 'winddir.php', and even 'samp-graph.php' (which will be useful for testing purposes and can be removed later on)
Last edited by gemini06720 on Sat 08 Jun 2013 10:57 am, edited 1 time in total.
-
dvandellen
- Posts: 35
- Joined: Thu 24 Feb 2011 1:19 pm
- Weather Station: ws4000
- Operating System: windows xp sp3
- Location: The Netherlands
- Contact:
Re: Cumulus and jpgraphs
Hi sorry for the late answer...
Question 1 - When i check my checkserver.php it says:
Yes, it does. Your server has PHP Version 5.3.4
Question 2 - yes i have made a new realtimelog.php and cumulus process and upload it to http://www.weerstationniawier.nl/nieuwe ... altime.log
Question 3 - yes i have installed version 3.5.0b1
Question 4 - when i open my website with filezilla, i go to folder> www > nieuwegrafieken > (here are my baro.php/graphsettings.php/realtime.txt/realtime.log etc)
In this folder "nieuwegrafieken" i also have the "jpgraph" folder. In the "jpgraph" folder is the folder "src"
Question 5 - realtime.txt and realtimelog.php are located at C:/program files/cumulus/
Question 6 - cumululs takes realtimelog.php and processes&upload it to realtime.log in /www/nieuwegrafieken/
Question 7 - Yes:
$SITE['version'] = "3.1";
$SITE['hloc'] = "/www/nieuwegrafieken";
$SITE['jpgraphloc'] = "/nieuwegrafieken/jpgraph/src/";
$SITE['datafile'] = "/nieuwegrafieken/realtime.log";
$SITE['sitename'] = "/www/";
$SITE['bgncolor'] = "#EFEFEF";
$SITE['txtcolor'] = "#22464F";
$SITE['tz'] = "US/Arizona"; (i know i have to change this)
Question 8 - as question 4: /www/nieuwegrafieken/
I hope someone can figure out whats wrong.
Thanks in advance...
Question 1 - When i check my checkserver.php it says:
Yes, it does. Your server has PHP Version 5.3.4
Question 2 - yes i have made a new realtimelog.php and cumulus process and upload it to http://www.weerstationniawier.nl/nieuwe ... altime.log
Question 3 - yes i have installed version 3.5.0b1
Question 4 - when i open my website with filezilla, i go to folder> www > nieuwegrafieken > (here are my baro.php/graphsettings.php/realtime.txt/realtime.log etc)
In this folder "nieuwegrafieken" i also have the "jpgraph" folder. In the "jpgraph" folder is the folder "src"
Question 5 - realtime.txt and realtimelog.php are located at C:/program files/cumulus/
Question 6 - cumululs takes realtimelog.php and processes&upload it to realtime.log in /www/nieuwegrafieken/
Question 7 - Yes:
$SITE['version'] = "3.1";
$SITE['hloc'] = "/www/nieuwegrafieken";
$SITE['jpgraphloc'] = "/nieuwegrafieken/jpgraph/src/";
$SITE['datafile'] = "/nieuwegrafieken/realtime.log";
$SITE['sitename'] = "/www/";
$SITE['bgncolor'] = "#EFEFEF";
$SITE['txtcolor'] = "#22464F";
$SITE['tz'] = "US/Arizona"; (i know i have to change this)
Question 8 - as question 4: /www/nieuwegrafieken/
I hope someone can figure out whats wrong.
Thanks in advance...
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Cumulus and jpgraphs
I don't use these scripts myself, but looking at the paths in the error output I suspect there is TOO much information in the location defs.
$SITE['hloc'] = "/www/nieuwegrafieken";
$SITE['jpgraphloc'] = "/nieuwegrafieken/jpgraph/src/";
$SITE['datafile'] = "/nieuwegrafieken/realtime.log";
I think .....
$SITE['hloc'] = "/www/nieuwegrafieken";
$SITE['jpgraphloc'] = "/jpgraph/src/";
$SITE['datafile'] = "/realtime.log";
$SITE['hloc'] = "/www/nieuwegrafieken";
$SITE['jpgraphloc'] = "/nieuwegrafieken/jpgraph/src/";
$SITE['datafile'] = "/nieuwegrafieken/realtime.log";
I think .....
$SITE['hloc'] = "/www/nieuwegrafieken";
$SITE['jpgraphloc'] = "/jpgraph/src/";
$SITE['datafile'] = "/realtime.log";
......................Imagine, what you will KNOW tomorrow !
-
dvandellen
- Posts: 35
- Joined: Thu 24 Feb 2011 1:19 pm
- Weather Station: ws4000
- Operating System: windows xp sp3
- Location: The Netherlands
- Contact:
Re: Cumulus and jpgraphs
I changed the graphsettings.php to what "beteljuice" said...
It looks like some errors are gone but its still not working.
see this link for the errors>
http://www.weerstationniawier.nl/nieuwe ... n/baro.php
It looks like some errors are gone but its still not working.
see this link for the errors>
http://www.weerstationniawier.nl/nieuwe ... n/baro.php
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Cumulus and jpgraphs
I'm REALLY not the one to be advising you on this ....
The only(?) problem now seems to be it cant find realtime.log
In realtime log the paths are defined as:
############################################################################
$SITE['version'] = "3.0";
$SITE['home'] = "/www/";
$SITE['datafile'] = "realtime.log";
$SITE['source'] = "realtime.txt";
#---------------------------------------------------------------------------
which seem to be incomplete, but I can't find your realtimelog.php - so you need to run it with .../realtimelog.php?debug=y
And that should tell you where it's trying to do things. In reltimelog it also makes the point that the file MUST exist and write permissions enabled (but I think you are probably OK with that)
The only(?) problem now seems to be it cant find realtime.log
In realtime log the paths are defined as:
############################################################################
$SITE['version'] = "3.0";
$SITE['home'] = "/www/";
$SITE['datafile'] = "realtime.log";
$SITE['source'] = "realtime.txt";
#---------------------------------------------------------------------------
which seem to be incomplete, but I can't find your realtimelog.php - so you need to run it with .../realtimelog.php?debug=y
And that should tell you where it's trying to do things. In reltimelog it also makes the point that the file MUST exist and write permissions enabled (but I think you are probably OK with that)
......................Imagine, what you will KNOW tomorrow !
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Cumulus and jpgraphs
Sorry for the delay in replying ... I have spent the past days updating and modifying some weather templates...
First, the link you posted to the 'realtime.log' file is not showing the right file - the link point to the 'realtimelog.php' file which must be run (through a server CRON job) at regular intervals to produce the 'realtime.log' file - Cumulus cannot produce the 'realtime.log' file by processing the 'realtimelog.php' script - the 'realtimelog.php' script has to be run by itself (usually through the use of a server CRON job) to produce the 'realtime.log' file - at regular intervals (any time between 1 and 5 minutes) the 'realtimelog.php' script will read the data from 'realtime.txt' and will write that data to the 'realtime.log' file - then the 'realtime.log' file is used by the different PHP scripts to produce the weather graphics. The 'realtime.log' file should look something like this (lines and lines of weather data): Looking at the results produced by the 'baro.php' script, they indicate that the 'realtime.log' file is not available or not in the right location.
You need to setup the 'realtimelog.php' script to produce a 'realtime.log' file at regular intervals (between 1 and 5 minutes)?
Am I to understand that the files 'realtime.txt', 'realtimelog.php', 'realtime.log', 'GraphSettings.php', 'baro.php', etc. and the directory 'jpgraph' are all located into the same directory?
If the files mentioned above are all in the same directory, these are the minimum requirements for the 'GraphSettings.php' script:
First, the link you posted to the 'realtime.log' file is not showing the right file - the link point to the 'realtimelog.php' file which must be run (through a server CRON job) at regular intervals to produce the 'realtime.log' file - Cumulus cannot produce the 'realtime.log' file by processing the 'realtimelog.php' script - the 'realtimelog.php' script has to be run by itself (usually through the use of a server CRON job) to produce the 'realtime.log' file - at regular intervals (any time between 1 and 5 minutes) the 'realtimelog.php' script will read the data from 'realtime.txt' and will write that data to the 'realtime.log' file - then the 'realtime.log' file is used by the different PHP scripts to produce the weather graphics. The 'realtime.log' file should look something like this (lines and lines of weather data):
Code: Select all
2011-03-09 00:02:01 3.9 90 2.4 0.0 0.0 127 0.0 0.0 1017.88 SE 0 km/h C hPa mm 0.0 -0.51 53.6 589.8 10.4 22.2 32 3.9 -0.3 3.9 00:00 3.9 00:00 0.0 00:00 0.0 00:00 1017.88 00:00 1017.85 00:01 1.9.1 982 0.0 3.9 3.9 0.0 -0.08 0 0 0.0 8 0 0 --- 185 m 2.3 0.0 0 0
2011-03-09 00:03:01 3.9 90 2.4 0.0 0.0 127 0.0 0.0 1017.85 SE 0 km/h C hPa mm 0.0 -0.54 53.6 589.8 10.4 22.2 32 3.9 -0.3 3.9 00:00 3.9 00:00 0.0 00:00 0.0 00:00 1017.88 00:00 1017.85 00:01 1.9.1 982 0.0 3.9 3.9 0.0 -0.08 0 0 0.0 8 0 0 --- 185 m 2.3 0.0 0 0
2011-03-09 00:04:01 3.9 90 2.4 0.0 0.0 127 0.0 0.0 1017.82 SE 0 km/h C hPa mm 0.0 -0.54 53.6 589.8 10.4 22.2 32 3.9 -0.3 3.9 00:00 3.9 00:00 0.0 00:00 0.0 00:00 1017.88 00:00 1017.82 00:03 1.9.1 982 0.0 3.9 3.9 0.0 -0.08 0 0 0.0 8 0 0 --- 185 m 2.3 0.0 0 0
2011-03-09 00:05:01 3.9 90 2.4 0.0 0.0 127 0.0 0.0 1017.78 SE 0 km/h C hPa mm 0.0 -0.55 53.6 589.8 10.4 22.2 32 3.9 -0.3 3.9 00:00 3.9 00:00 0.0 00:00 0.0 00:00 1017.88 00:00 1017.75 00:04 1.9.1 982 0.0 3.9 3.9 0.0 -0.08 0 0 0.0 8 0 0 --- 185 m 2.3 0.0 0 0
2011-03-09 00:06:01 3.9 90 2.4 0.0 0.0 127 0.0 0.0 1017.82 SE 0 km/h C hPa mm 0.0 -0.54 53.6 589.8 10.4 22.2 32 3.9 -0.3 3.9 00:00 3.9 00:00 0.0 00:00 0.0 00:00 1017.88 00:00 1017.75 00:04 1.9.1 982 0.0 3.9 3.9 0.0 -0.08 0 0 0.0 8 0 0 --- 185 m 2.3 0.0 0 0
You need to setup the 'realtimelog.php' script to produce a 'realtime.log' file at regular intervals (between 1 and 5 minutes)?
Am I to understand that the files 'realtime.txt', 'realtimelog.php', 'realtime.log', 'GraphSettings.php', 'baro.php', etc. and the directory 'jpgraph' are all located into the same directory?
If the files mentioned above are all in the same directory, these are the minimum requirements for the 'GraphSettings.php' script:
Code: Select all
$SITE['hloc'] = "./";
$SITE['jpgraphloc'] = "./jpgraph/src/";
$SITE['datafile'] = "realtime.log";
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Cumulus and jpgraphs
Ah, sure, you can...beteljuice wrote:I'm REALLY not the one to be advising you on this ....
I do not think the 'realtime.log' file is being created/produced - the 'realtime.log' file cannot be produced by running the 'realtimelog.php' script through Cumulus - the 'realtimelog.php' script has to be run by itself (server CRON job) so it read the Cumulus-produced 'realtime.txt' file and cumulatively save that data into the 'realtime.log' file.beteljuice wrote:The only(?) problem now seems to be it cant find realtime.log
As indicated into my previous reply, the use of relative paths has proven to be the easiest way for me to get the scripts to display the weather graphics.
-
dvandellen
- Posts: 35
- Joined: Thu 24 Feb 2011 1:19 pm
- Weather Station: ws4000
- Operating System: windows xp sp3
- Location: The Netherlands
- Contact:
Re: Cumulus and jpgraphs
it was not uploading realtimelog.php correctly
What needs to be the home directory in the realtimelog.php? what files need it?
What needs to be the home directory in the realtimelog.php? what files need it?
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Cumulus and jpgraphs
Here are the settings I have in my 'realtimelog.php' script:dvandellen wrote: What needs to be the home directory in the realtimelog.php? what files need it?
Code: Select all
$SITE['home'] = "./";
$SITE['source'] = "realtime.txt";
$SITE['datafile'] = "realtime.log";
-
dvandellen
- Posts: 35
- Joined: Thu 24 Feb 2011 1:19 pm
- Weather Station: ws4000
- Operating System: windows xp sp3
- Location: The Netherlands
- Contact:
Re: Cumulus and jpgraphs
hmm i didnt notice your last 2 replys...
im try to set it right...
im try to set it right...