Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 1:31 am
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 Previous  1, 2, 3, 4  Next
Author Message
 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 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
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: 1852
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: 1852
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: 1852
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: 1852
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  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Wed Mar 09, 2011 6:20 pm 
Offline

Joined: Thu Feb 24, 2011 1:19 pm
Posts: 35
Location: The Netherlands
Weather Station: ws4000
Operating System: windows xp sp3
yes i got it... baro.php is working :D

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

it looks like some pictures are missing :|
How can i fix this?

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Thu Mar 10, 2011 1:28 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Thu Mar 10, 2011 1:44 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
Here is a link to the 'Cumulus PHP JpGraph Graphs' after a bit of customizing: Tzouhalem-Maple Bay - Cumulus Weather PHP


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Thu Mar 10, 2011 12:03 pm 
Offline

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

Quote:
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?

_________________
http://www.weerstationniawier.nl


Top
 Profile  
 
 Post subject: Re: Cumulus and jpgraphs
PostPosted: Thu Mar 10, 2011 12:22 pm 
Offline

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


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

All times are UTC


Who is online

Users browsing this forum: BCJKiwi and 2 guests


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