Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed Jun 19, 2013 4:08 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: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Oct 11, 2008 10:32 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
TNETWeather wrote:
Its on my Cumulus Project page.... which is in my signature below...

I also accept Gold, Gasoline, Soup and Bread now days...


Dam and I was going to send a dusky maiden :P

Obliviously I didn't look hard enough. Well mid month is usually cash rich day so I will contribute then and encourage others to do so as well

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

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sat Oct 11, 2008 11:49 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 assume the error below is due to not having a full set of data available yet?

Warning: array_reverse() [function.array-reverse]: The argument should be an array in C:\wamp\www\CHHP\graphs\baro.php on line 117

Warning: array_reverse() [function.array-reverse]: The argument should be an array in C:\wamp\www\CHHP\graphs\baro.php on line 118
JpGraph Error Empty input data array specified for plot. Must have at least one data point.

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

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 12:01 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
Yes.

JpGraph will error out if it doesn't have at least 1 data point.

Depending on what frequency you using, the only data that is looked at is

Code:
freq=0 (default) once an hour - 00 minute
freq=1 twice an hour - 00 and 33 minutes
freq=2 4 times an hour - 00, 15, 30, 45 minutes

_________________
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 12:54 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
Got past that error but now strike this one

Fatal error: Call to undefined method Text::Pos() in C:\wamp\www\CHHP\graphs\baro.php on line 139

realtime.log has 100 sets of data in it.

It seems to me to be a position error in the baro.php code

Off course I forgot to put the ttf fonts in the jpgraph ttf dir duh, found that but still having an issue

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

IT Fixer


Top
 Profile  
 
 Post subject: Re: PHP Script - RealTimeLog PHP Script
PostPosted: Sun Oct 12, 2008 1:03 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
This is more of the graph file issue than the realtimelog file issue.

What version of JpGraph are you using?

_________________
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: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  
 
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: No registered users and 0 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