Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 8:42 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 48 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 12:37 pm 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
Sorry for the delay in replying ... I have spent the past days updating and modifying some weather templates... :ugeek:

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:
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
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:
Code:
$SITE['hloc']           = "./";
$SITE['jpgraphloc']     = "./jpgraph/src/";
$SITE['datafile']       = "realtime.log";


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 12:45 pm 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
beteljuice wrote:
I'm REALLY not the one to be advising you on this ....
Ah, sure, you can... ;)

beteljuice wrote:
The only(?) problem now seems to be it cant find realtime.log
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.

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.


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 1:04 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
it was not uploading realtimelog.php correctly :oops:

What needs to be the home directory in the realtimelog.php? what files need it?

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 1:18 pm 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
dvandellen wrote:
What needs to be the home directory in the realtimelog.php? what files need it?
Here are the settings I have in my 'realtimelog.php' script:
Code:
$SITE['home']     = "./";
$SITE['source']   = "realtime.txt";
$SITE['datafile'] = "realtime.log";
The Cumulus-produced 'realtime.txt' file and the 'realtimelog.php' script are in the same directory - the resulting 'realtime.log' file is also in the same directory.


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 1:22 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
hmm i didnt notice your last 2 replys...

im try to set it right...

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 1:34 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
How do i set up cumulus toolbox to process realtimelog.php and where does it makes the new realtime.log?

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 1:41 pm 
Online

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1785
Location: World...
Weather Station: No weather station
Operating System: No operating system
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.


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 1:50 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
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:

Quote:
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/nieuwegrafieken/realtime.log .

When i try to open realtimelog.php http://www.weerstationniawier.nl/nieuwegrafieken/realtimelog.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?

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 2:41 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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 !


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 3:00 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
what permissions do i have to check? or what should be changed? :?:

Dont get it...

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 3:07 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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 !


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 3:08 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
how?

i dont host my website by myself...

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 3:15 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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 !


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 3:24 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
YES :clap:

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

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

What do i have to change next?, because http://www.weerstationniawier.nl/nieuwegrafieken/baro.php still gives some errors...

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 3:38 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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 !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group