Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 5:31 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  [ 253 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 17  Next
Author Message
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Nov 17, 2008 8:28 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
Image

Above relates to my dewpoints which dipped briefly into the negative. Is the graph correct to the shading ? - would it best if the shading filled everywhere ? or even to have no shading at all

_________________
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: Fri Dec 05, 2008 1:14 am 
Offline

Joined: Sat Nov 29, 2008 1:50 pm
Posts: 10
Location: De Soto Wisconsin USA
Weather Station: Davis Vantage Pro 2
How long does it take for the graphs to show the right numbers on the left? Or did I do something wrong???

link deleted I no longer am doing this no point in it if I have to keep the other program updateing all the time.

_________________
Image


Last edited by Fox_Of_The_Wind on Thu May 07, 2009 1:25 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri Dec 05, 2008 7:30 am 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
viewtopic.php?f=14&t=281

hope this helps

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri Dec 05, 2008 11:36 am 
Offline

Joined: Sat Nov 29, 2008 1:50 pm
Posts: 10
Location: De Soto Wisconsin USA
Weather Station: Davis Vantage Pro 2
That was it!! I changed temp.php and it is showing right now. Later today I will changed the rest. Thanks!!

Changed the rest all working great, thanks!!

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 4:28 pm 
Offline
User avatar

Joined: Tue Nov 04, 2008 8:07 pm
Posts: 168
Location: Skodje
Weather Station: WH 1080
Where to change from AM/PM to 24H?

Image

_________________
    Windows Vista

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 4:50 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
In the graph code, the time is converted to 24 hour using a function called timeto12 in the snippet below:

Code:
debug_out("Xaxis = " . timeto12(substr(ret_value("time"),0,2)));
debug_out("Yaxis = " . ret_value("dew") );
$rx[] = timeto12(substr(ret_value("time"),0,2));
$ry1[] =  ret_value("dew");

By removing that function, you should end up with just the 24 hour values...
Code:
debug_out("Xaxis = " . substr(ret_value("time"),0,2));
debug_out("Yaxis = " . ret_value("dew") );
$rx[] = substr(ret_value("time"),0,2);
$ry1[] =  ret_value("dew");


I will be adding a setting to change that in the configuration when I get back to these which should be shortly after my vacation starts. Been way too busy to touch them lately.

About the only thing I've been able to play with lately has been my new phone (Samsung Omnia SCH-i910)...

_________________
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 Dec 06, 2008 5:28 pm 
Offline
User avatar

Joined: Tue Nov 04, 2008 8:07 pm
Posts: 168
Location: Skodje
Weather Station: WH 1080
Quote:
About the only thing I've been able to play with lately has been my new phone (Samsung Omnia SCH-i910)...


Thanx i was playing with that lines, but no it work when I remove timeto12 :D
Yes go play with your phone.... :lol:

_________________
    Windows Vista

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 8:22 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
I can run your script !! :cry:

My settings:

GraphSettings.php
Code:
############################################################################
# CONFIGURATION INFORMATION
############################################################################
$SITE['version']        = "3.1";
$SITE['hloc']           = "../public_html/liveview/jpgraph/";
$SITE['jpgraphloc']     = "../public_html/liveview/jpgraph/src/";
$SITE['datafile']       = "realtime.log";
$SITE['sitename']       = "MeteoTortosa";
$SITE['bgncolor']       = "#EFEFEF";
$SITE['txtcolor']       = "#22464F";
$SITE['tz']             = "Catalunya";


index.php on /liveview/jpgraph

Code:
<?php
   header("Location: /liveview/jpgraph/index.php") ;
?>


You can see my web here -> http://www.meteotortosa.cat/liveview/
and JpGraph, here -> http://www.meteotortosa.cat/liveview/jpgraph/

Wha's wrong? Can you help me !!

A lot of thanks,
Lluís

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 9:10 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
for a start: where is your realtime.log ?

did you use this: viewtopic.php?f=14&t=130

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 9:15 pm 
Offline
User avatar

Joined: Tue Nov 04, 2008 8:07 pm
Posts: 168
Location: Skodje
Weather Station: WH 1080
Have you run thise? http://www.meteotortosa.cat/liveview/jpgraph/src/Examples/testsuit.php
Is all ok there?
TTF fonts uploded?
Then :
Code:
############################################################################
# CONFIGURATION INFORMATION
############################################################################
$SITE['version']        = "3.1";
$SITE['hloc']           = "../public_html/liveview/jpgraph/";
$SITE['jpgraphloc']     = "../jpgraph/src/";
$SITE['datafile']       = "realtime.log";
$SITE['sitename']       = "MeteoTortosa";
$SITE['bgncolor']       = "#EFEFEF";
$SITE['txtcolor']       = "#22464F";
$SITE['tz']             = "Catalunya";


And is your realtime.log updating evry minute ?

:D

_________________
    Windows Vista

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 10:28 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
aadal wrote:
Thanx i was playing with that lines, but no it work when I remove timeto12 :D
Yes go play with your phone.... :lol:


Replace the timeto12 function in GraphSettings.php to:

Code:
function timeto12($inval) {
    global $SITE;
   
    if ($SITE['pm'] == "yes" ) {
        $ckval = intval($inval);
        $wm = "am";
        if($ckval == 12) {
            $wm = "pm";
        }
        if($ckval > 12 ) {
            $ckval -= 12;
            $wm="pm";
        }
        return($ckval . $wm);
    } else {
        return($inval);
    }
}


And add a new variable to the top of that file's config settings like:

Code:
$SITE['pm']            = 'no';

So that section looks like (Adjusted for your settings of course):
Code:
$SITE['version']        = "3.1";
$SITE['hloc']           = "../";
$SITE['jpgraphloc']     = "../jpgraph/src/";
$SITE['datafile']       = "realtime.log";
$SITE['sitename']       = "Gordon Head, Victoria BC";
$SITE['bgncolor']       = "#EFEFEF";
$SITE['txtcolor']       = "#22464F";
$SITE['tz']             = "US/Pacific";
$SITE['pm']             = 'no';


You should end up with graphs like:

http://vicweather.tnet.com/graphs.php

_________________
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 Dec 06, 2008 11:24 pm 
Offline

Joined: Sat Nov 29, 2008 4:05 pm
Posts: 17
Location: Branford, CT
Weather Station: Davis Vantage Pro 2
Is there a way to get the baro graph to show four digits instead of two for the baro reading?

Thanks,

Jack

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 11:37 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
pinto wrote:
for a start: where is your realtime.log ?

did you use this: viewtopic.php?f=14&t=130


I forgot this !! :oops:

aadal wrote:
Have you run thise? http://www.meteotortosa.cat/liveview/jpgraph/src/Examples/testsuit.php
Is all ok there?
TTF fonts uploded?
Then :
Code:
############################################################################
# CONFIGURATION INFORMATION
############################################################################
$SITE['version']        = "3.1";
$SITE['hloc']           = "../public_html/liveview/jpgraph/";
$SITE['jpgraphloc']     = "../jpgraph/src/";
$SITE['datafile']       = "realtime.log";
$SITE['sitename']       = "MeteoTortosa";
$SITE['bgncolor']       = "#EFEFEF";
$SITE['txtcolor']       = "#22464F";
$SITE['tz']             = "Catalunya";


And is your realtime.log updating evry minute ?

:D


I have all font here -> http://www.meteotortosa.cat/liveview/jpgraph/fonts/

jpg-config.inc.php

Code:
// DEFINE("CACHE_DIR","/tmp/jpgraph_cache/");
// DEFINE("TTF_DIR","/public_html/liveview/jpgraph/fonts/");
// DEFINE("MBTTF_DIR","/usr/share/fonts/ja/TrueType/");


but I can't get all graphs, don't understand

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 11:47 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
realtimelog.php

Code:
$SITE['version']        = "2.0";
$SITE['home']           = "/liveview/";
$SITE['datafile']       = "realtime.log";
$SITE['source']         = "realtime.txt";


is this ok?

I hope I am sorry for so many questions

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sat Dec 06, 2008 11:49 pm 
Offline
User avatar

Joined: Tue Nov 04, 2008 8:07 pm
Posts: 168
Location: Skodje
Weather Station: WH 1080
Thanx all seams to be fine no.
http://www.aadal.biz/~weather/jpgraph/temp.php
Some problems with the temp.
Change from : $SITE['tempunit'] = "&#xb0;" . ret_value("tempunit");
To : $SITE['tempunit'] = " " . ret_value("tempunit");

Tryed thise but only a square visible: :$SITE['tempunit'] = "º" . ret_value("tempunit");

Quote:
Is there a way to get the baro graph to show four digits instead of two for the baro reading?

Mine show four digits http://www.aadal.biz/~weather/jpgraph/baro.php?freq=2

_________________
    Windows Vista

Image

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 253 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 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