Page 2 of 4

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 1:34 pm
by dvandellen
How do i set up cumulus toolbox to process realtimelog.php and where does it makes the new realtime.log?

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 1:41 pm
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.

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 1:50 pm
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?

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 2:41 pm
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

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 3:00 pm
by dvandellen
what permissions do i have to check? or what should be changed? :?:

Dont get it...

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 3:07 pm
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.
#

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 3:08 pm
by dvandellen
how?

i dont host my website by myself...

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 3:15 pm
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)

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 3:24 pm
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...

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 3:38 pm
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.

Re: Cumulus and jpgraphs

Posted: Wed 09 Mar 2011 6:20 pm
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?

Re: Cumulus and jpgraphs

Posted: Thu 10 Mar 2011 1:28 am
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.

Re: Cumulus and jpgraphs

Posted: Thu 10 Mar 2011 1:44 am
by gemini06720
Here is a link to the 'Cumulus PHP JpGraph Graphs' after a bit of customizing: [link removed]

Re: Cumulus and jpgraphs

Posted: Thu 10 Mar 2011 12:03 pm
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?

Re: Cumulus and jpgraphs

Posted: Thu 10 Mar 2011 12:22 pm
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.