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

Cumulus and jpgraphs

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
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

Post by dvandellen »

How do i set up cumulus toolbox to process realtimelog.php and where does it makes the new 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

Post by gemini06720 »

dvandellen wrote:How do i set up cumulus toolbox to process realtimelog.php and where does it makes the new realtime.log?
I have not used the Toolbox in a long time so I cannot remember how to set it up. If you use the setting suggested in the previous message, the 'realtimelog.php' script should produce its 'realtime.log' file in the same directory - on my computer/server, all three files ie: 'realtimelog.php', 'realtime.txt' and 'realtime.log' are in the same directory.
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

Post by dvandellen »

i do have the realtime.txt and realtimelog.php in the same directory. But there is no realtime.log

There is a file thats called realtimelog.txt and this is in it:
04-03-11 19:09:09 1.2 88 -0.6 2.5 5.0 315 0.0 0.0 1028.0 NW 1 km/h C hPa mm 66.1 -0.3 0.0 78.9 0.0 18.9 47 1.2 -0.8 7.5 13:34 -1.6 07:23 11.2 15:38 15.8 02:55 1032.6 01:06 1028.0 17:46 1.9.0 958 8.6 1.2 1.2 0 0 0 357 0.0 2 0 0 N 719 ft
04-03-11 19:09:57 1.2 88 -0.6 2.5 5.0 45 0.0 0.0 1028.2 NE 1 km/h C hPa mm 66.1 -0.3 0.0 78.9 0.0 18.9 47 1.2 -0.8 7.5 13:34 -1.6 07:23 11.2 15:38 15.8 02:55 1032.6 01:06 1028.0 17:46 1.9.0 958 8.6 1.2 1.2 0 0 0 359 0.0 2 0 0 N 719 ft
04-03-11 19:10:45 1.2 88 -0.6 3.6 6.1 360 0.0 0.0 1028.2 N 1 km/h C hPa mm 66.1 -0.2 0.0 78.9 0.0 18.9 47 1.2 -0.8 7.5 13:34 -1.6 07:23 11.2 15:38 15.8 02:55 1032.6 01:06 1028.0 17:46 1.9.0 958 8.6 1.2 1.2 0 0 0 359 0.0 2 0 0 N 719 ft
04-03-11 19:12:21 1.2 88 -0.6 2.5 5.0 360 0.0 0.0 1028.1 N 1 km/h C hPa mm 66.2 -0.2 0.0 78.9 0.0 19.0 47 1.2 -0.8 7.5 13:34 -1.6 07:23 11.2 15:38 15.8 02:55 1032.6 01:06 1028.0 17:46 1.9.0 958 8.6 1.2 1.2 0 0 0 359 0.0 2 0 0 N 719 ft
04-03-11 19:13:09 1.2 88 -0.6 2.5 5.0 360 0.0 0.0 1028.1 N 1 km/h C hPa mm 66.3 -0.2 0.0 78.9 0.0 19.0 46 1.2 -0

this is only a little piece...
It looks like a realtime.log file... Is it possible that cumulus takes it and uploads it as a realtime.log file?

EDIT:
Cumulus now uploads realtimelog.txt to http://www.weerstationniawier.nl/nieuwe ... altime.log .

When i try to open realtimelog.php http://www.weerstationniawier.nl/nieuwe ... imelog.php it gives the error:
Warning: fopen(realtime.log): failed to open stream: Permission denied in D:\www\weerstationniawier.n\www\nieuwegrafieken\realtimelog.php on line 131 Unable to open file

maybe cumulus cant translate realtimelog.txt to realtime.log right?
User avatar
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

Post by beteljuice »

DEBUG MODE ON
Current directory is: d:\www\weerstationniawier.n\www\nieuwegrafieken
Changing directory to: ./
Current directory is: d:\www\weerstationniawier.n\www\nieuwegrafieken
Attempting to load: realtime.txt
We loaded: 1 - Should be 1
Found 54 Fields
Warning: fopen(realtime.log): failed to open stream: Permission denied in D:\www\weerstationniawier.n\www\nieuwegrafieken\realtimelog.php on line 131 UNABLE TO SAVE DATA - CHECK PERMISSIONS
Unable to open file
COMPLETE
Image
......................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

Post by dvandellen »

what permissions do i have to check? or what should be changed? :?:

Dont get it...
User avatar
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

Post by beteljuice »

Warning: fopen(realtime.log):

#
# The datafile MUST exist and MUST be chmod 0666 to work as the webserver
# Needs to have permission to write to this file.
#
Image
......................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

Post by dvandellen »

how?

i dont host my website by myself...
User avatar
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

Post by beteljuice »

Whatever ftp program you normally use to transfer files to your webspace will usually have a <right-click> on files / directories where you can view / edit permissions. Or you may be able to do it from a control panel on your providers site.

If you don't have a CHMOD option, but you see tick boxes with read, write, execute - then 'tick' the first two write(s)
Image
......................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

Post by dvandellen »

YES :clap:

Thanks i changed the rights at my providers website... didnt even know it was possible ;)

Now it says http://www.weerstationniawier.nl/nieuwe ... imelog.php, is this ok?

What do i have to change next?, because http://www.weerstationniawier.nl/nieuwe ... n/baro.php still gives some errors...
User avatar
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

Post by beteljuice »

You've left debug ON in realtimelog.php (you could have just used .php?debug=1)

Still something wrong with the paths for baro.php (GraphSettings.php ?) to find realtime.log, although it does exist.
Image
......................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

Post by dvandellen »

yes i got it... baro.php is working :D

But... :lol: there are a few graphs not working... see link> http://www.weerstationniawier.nl/nieuwe ... -graph.php

it looks like some pictures are missing :|
How can i fix this?
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

Post by gemini06720 »

dvandellen wrote:i do have the realtime.txt and realtimelog.php in the same directory. But there is no realtime.log
You must have changed something in the 'realtimelog.php' script - the default setting are:

Code: Select all

$SITE['version']        = "2.0";
$SITE['home']           = "YOU MUST SET THIS";
$SITE['datafile']       = "realtime.log";
$SITE['source']         = "realtime.txt";
With the default settings, 'realtimelog.php' will read the file 'realtime.txt' and produce the file 'realtime.log'.
dvandellen wrote:There is a file thats called realtimelog.txt...
Obviously, you have modified the name of the file to be produced by the 'realtimelog.php' script! By default, the 'GraphSettings.php' configuration file as well as the graphic producing scripts ('baro.php, 'dewpt.php', 'intemp.php', 'rain.php', 'temp.php', 'wind.php' and 'winddir.php') are all expecting the file 'realtime.log' to produce the weather graphics (default settings in 'GraphSettings.php'):

Code: Select all

$SITE['version']        = "3.1";
$SITE['hloc']           = "./";
$SITE['jpgraphloc']     = "./jpgraph/src/";
$SITE['datafile']       = "realtime.log";
$SITE['sitename']       = "YOUR SITE NAME";
So, if your 'realtimelog.txt' file looks like my ''realtime.log' file that is because something somewhere is changing the name...
dvandellen wrote:Is it possible that cumulus takes it and uploads it as a realtime.log file?
Cumulus will not change the name of a file unless you setup Cumulus to rename the file as it is uploaded.
dvandellen wrote:there are a few graphs not working
Indeed, the 'temp.php', 'intemp.php', 'rain.php', and 'winddir.php' are still displaying error messages - I just un-Zip the 'Cumulus PHP JpGraph Graphs' package into the directory where my Cumulus files/scripts/templates reside and after a few minor modifications, I was able to view all the graphs.
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

Post by gemini06720 »

Here is a link to the 'Cumulus PHP JpGraph Graphs' after a bit of customizing: [link removed]
Last edited by gemini06720 on Sat 08 Jun 2013 10:58 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

Post by dvandellen »

I have checked my files and i did not rename them to realtimelog.txt
So i have setup cumulus to to rename it to realtime.log


What do you mean with: ?
I just un-Zip the 'Cumulus PHP JpGraph Graphs' package into the directory where my Cumulus files/scripts/templates reside and after a few minor modifications, I was able to view all the graphs.
What minor modifications? And what files did you placed at your scripts/templates directory?
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

Post by gemini06720 »

dvandellen wrote:What do you mean with...
What minor modifications? And what files did you placed at your scripts/templates directory?
That I unpacked the original 'Cumulus PHP JpGraph Graphs' package (downloaded from TNet site), made the required basic modifications (such as setting the required paths), and then loaded 'samp-graph.php' script into my browser - all the weather graphics displayed properly in my browser...

I placed the files contained within the ZIP into their own sub-directory (and not directly into the directory where the Cumulus-produced files are located) - on my server, that would be into the 'cumulus/graph' directory, 'the 'cumulus' directory being one directory below the root directory.
Post Reply