Sandaysoft

Support forum for Cumulus weather station software
It is currently Thu Jun 20, 2013 2:09 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  [ 253 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 17  Next
Author Message
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:10 am 
Offline

Joined: Thu Sep 18, 2008 8:40 pm
Posts: 61
Location: Tokoroa South Waikato New Zealand
Weather Station: Davis VP pro 2
Operating System: Win7
2.3.3

Same as I use for the JPGRAPH stuff on my WD site

Possible it is not getting the array populated???

_________________
http://tokoroa.dyndns.org/ Main Site

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:24 am 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Is it only the baro.php script??

I almost put debug code in the scripts... perhaps I should...

In the baro.php script after the section that looks like:

Code:
$x = array_reverse($rx);
$y1 = array_reverse($ry1);


add the following code and run the script.

Code:
echo "<pre>";
print_r($x);
print_r($y1);
exit;


It should run and output the two arrays of information.

Other info:

What is the URL to your realtime.log file. If you prefer, PM me the info.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:34 am 
Offline

Joined: Thu Sep 18, 2008 8:40 pm
Posts: 61
Location: Tokoroa South Waikato New Zealand
Weather Station: Davis VP pro 2
Operating System: Win7
yep as I suspected, now to examine my paths. The result is two empty arrays

Array
(
)
Array
(
)

My realtime log file is http://chh-p.dyndns.org/realtime.log

_________________
http://tokoroa.dyndns.org/ Main Site

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:49 am 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
When I get a chance I will put some debug stuff in there. I half had some in there when I was working on the temp.php script but I ripped it out when I cleaned up the code mess to get it ready.

It does have the ability to view the code... http://yourserverpath/baro.php?view=sce but that doesn't show what data it sees.

I did just add a PDF document for the package... but again, that is for the JpGraph stuff not RealTimeLog.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:52 am 
Offline

Joined: Thu Sep 18, 2008 8:40 pm
Posts: 61
Location: Tokoroa South Waikato New Zealand
Weather Station: Davis VP pro 2
Operating System: Win7
The realtime log appears to be working as expected, it generates realtime.log entries as required.
The issue is with the graph php not reading this, now I am strictly a mod with cut and paste type with PHP so I get stuck real easy.

_________________
http://tokoroa.dyndns.org/ Main Site

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:56 am 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Is this with just one graph or all of them?

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 2:11 am 
Offline

Joined: Thu Sep 18, 2008 8:40 pm
Posts: 61
Location: Tokoroa South Waikato New Zealand
Weather Station: Davis VP pro 2
Operating System: Win7
All of them, but I have just twigged that I need to call them in a page with the freq specified so i tried your samp-graph.php and while it generates no errors it doesnt generate any graphs.

I have the real time stuff in the root of the site and the graph files in a sub called graphs. pathing to jpgraph is correct

_________________
http://tokoroa.dyndns.org/ Main Site

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 2:37 am 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Contents removed.

The new version will have a debug mode in all the graphs.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sun Oct 12, 2008 9:53 pm 
Offline

Joined: Thu Sep 18, 2008 8:40 pm
Posts: 61
Location: Tokoroa South Waikato New Zealand
Weather Station: Davis VP pro 2
Operating System: Win7
I have to go shake my fist at the staff for a couple of days, will look at testing this later in the week.

_________________
http://tokoroa.dyndns.org/ Main Site

IT Fixer


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Oct 13, 2008 4:57 am 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
.
Version 1.2

The newest release of these scripts include CLI support (Command Line Interface) so that the scripts can be called using a scheduler (like crontab) passing options to get the results you are looking for, they have new debugging code in them to assist in determining problems that people might have trying to use them, a new info display which shows on the graphs the number of hours that are represented and the frequency sample and better documentation.

You can download the scripts from my project page....

TNET Cumulus Project Page

The package includes PDF documentation and a copy of the ServerCheck script for those just starting out to use to make sure they have the proper web server configuration to use the scripts.

You can download the PDF file separately from the download page as well.

Enjoy...

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Oct 13, 2008 3:47 pm 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
Kevin

I am slowly going through the pdf help files for the installation of these graphs. I have downloaded your files and uploaded these to my cumulus directory on the website. I have altered the graphsettings.php and uploaded that aswell

1. On the rainfall section you have a blank entry "\"" - I assume I replace the slash with mm for Millimeters ? or do I keep the "\" in place

$SITE['rainunit'] = "\mm"";

2. The major point - can you give me further instruction on where and what I should be doing with the downloaded " JpGraph PHP Libraries" - I have downloaded the free version but not sure where this should go and do I need to do anything.

I am gratefull for your time and the way you have gone to the trouble of a comprehensive pdf file but I am not as computer literate as I would like to be, it does need to be made a little simplier ( well for me anyway). I would also like to know what the end web address will be of the various graphs etc it will produce.

http://www.bramptonweather.co.uk/cumulus - this is where everything is at the moment, where everything has been uploaded to, nothing visible asyet apart from the old stuff.

many thanks

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Oct 13, 2008 6:16 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
Hi Paul,
I think the best way to start this is to install jpgraph first and test it before you try to make Kevin's graphs.
1.create a folder in bramptonweather.co.uk called jpgraph
2.upload the src-folder you find inside your downloaded jpgraph-package into the folder you created
3.if all was ok you can go now to http://YOURWEBSITE/jpgraph/src/Examples/testsuit.php

and you should see all kind of different graphs

This is the first step, after this is working OK, you can go on with Kevin's package

Hope this helps

Jozef

this is ok for you $SITE['rainunit'] = "mm";

EDIT: if you have jpgraph working you can delete the Examples folder or you can look at the examples to learn more

_________________
Jozef


Last edited by pinto on Tue Oct 14, 2008 6:59 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Oct 13, 2008 6:30 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
TNETWeather wrote:
Version 1.2

Running now and generating with cron :D here

Jozef

_________________
Jozef


Last edited by pinto on Tue Oct 21, 2008 3:36 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Oct 13, 2008 7:14 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
I am adding a section of installing the JpGraph PHP libraries... I've not actually loaded them in a long time, I just copy them from another website. I use the Pro version, so I have downloaded the free version and am doing an install to see what the actual steps might been It's been a long time.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Oct 13, 2008 7:45 pm 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
Jozef

I have just done as you said. I now have hundreds of graphs, some dont appear to work. So where do I go from there.

cheers
PAul

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 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