Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 3:20 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 1, 2, 3, 4, 5 ... 17  Next
Author Message
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Oct 11, 2008 8: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
That is good to know. I have a couple remote hosted servers, but I've not checked there. The stuff here is on my own server so I already knew where that was. Using just php without a path works on that too.

Another path that is not so obvious sometimes is the ones for ImageMagick. I use that a lot for other graphic projects, but nothing with Cumulus yet.

_________________
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: Sat Oct 11, 2008 8:18 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 Kevin

FYI
I had to change the labelformat in rain.php to
Code:
$graph->yaxis->SetLabelFormat('%0.1f' . $SITE['rainunit']);

because I had 0.2 mm of rain and the labels where all 0(zero)
nobody could see the amound of rain when looking at the graph

Jozef

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Oct 11, 2008 8:23 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
Updated the package to reflect that. I don't get much rain here... I've considered a sand counting graph though.

_________________
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: Sat Oct 11, 2008 10:13 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
arthurhh wrote:
With all this wonderful stuff that you are producing for Cumulus (and WD) I think I will have to visit your paypal link (and steves too)


Just went looking and you dont have a paypal link on TNETWeather. Have to do something else for you.

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

IT Fixer


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Oct 11, 2008 10:22 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
Its on my Cumulus Project page.... which is in my signature below...

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

_________________
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: 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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 253 posts ]  Go to page 1, 2, 3, 4, 5 ... 17  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