Page 7 of 17

Re: Cumulus Server Sided JpGraph Graphs

Posted: Wed 29 Oct 2008 4:48 am
by TNETWeather
Very hard to do much of anything without a link to take a look at. If the URL is private, send me a PM or use the Support Email listed in the PDF document that comes with the package...

Re: Cumulus Server Sided JpGraph Graphs

Posted: Wed 29 Oct 2008 7:16 am
by gwheelo

Re: Cumulus Server Sided JpGraph Graphs

Posted: Wed 29 Oct 2008 12:56 pm
by gwheelo
Thanks everyone! Once again bailed out by Steve and this excellent forum.

I will soon incorporate Cumulus JpGraphs to the website.

http://www.wheelocknet.net/graphs/samp-graph.php

http://www.wheelocknet.net/cam

GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 01 Nov 2008 5:39 pm
by gwheelo
I had a bit of rain today. The attached graph did not re-scale when the total month rainfall for November reached 30 mm and the total November rainfall color does not match the total month rainfall of October. Is this due to incomplete data and if I wait out a total month the problems will fix themselves?

GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 01 Nov 2008 7:07 pm
by pinto
gwheelo wrote:I had a bit of rain today. The attached graph did not re-scale when the total month rainfall for November reached 30 mm and the total November rainfall color does not match the total month rainfall of October. Is this due to incomplete data and if I wait out a total month the problems will fix themselves?

GW
maybe try to comment out

Code: Select all

$graph->yscale->SetAutoMax(10);
like

Code: Select all

//$graph->yscale->SetAutoMax(10);
in rain.php

only a guess

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 01 Nov 2008 9:53 pm
by gwheelo
"//$graph->yscale->SetAutoMax(10);" solved the scale problem in rain.php. Thanks for the tip! Still not certain the total monthly rainfall vs current rainfall colors are displaying correctly.

GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 01 Nov 2008 10:02 pm
by TNETWeather
gwheelo wrote:Still not certain the total monthly rainfall vs current rainfall colors are displaying correctly.

GW
Looks right to me. According to your web page you rain totals are:

Your todays rain and month to date would be the same (since this is the 1st of the month) so both show 17mm.

Your rain chart shows both aprox at 17mm

Image

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 01 Nov 2008 10:33 pm
by gwheelo
Yes - I understand the right and left scales - but last month displays a dark blue daily and cyan for monthly total - this month displays in two closely related shades of blue - is this correct? Am I just not seeing the obvious?

GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 02 Nov 2008 8:36 am
by gwheelo
OK - the cyan has now come out of its cloud and the rain graph is performing perfectly -it was all the time of course - but the cyan behind the blue esd distrscting.

Thanks for everyone's help!

GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 02 Nov 2008 3:31 pm
by TNETWeather
Since you have the source code to how the graphs are created, you can change the colors to whatever you want them to be. You can even switch the order around so that Monthly rain is in front of daily rain, change the monthly rain to be just a line with no fill color like it is etc...

Re: Cumulus Server Sided JpGraph Graphs

Posted: Wed 05 Nov 2008 12:11 pm
by Paul C
TNETWeather wrote:Need to adjust where the bottom line is for the Yaxis:

The code that looks like:

Code: Select all

//y-axis
$graph->yaxis->SetColor($SITE['txtcolor']);
$graph->yaxis->SetLabelFormat('%0.0f ' . $SITE['tempunit']);
$graph->yaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->yaxis->scale->SetGrace(5);
$graph->yaxis->HideTicks(true,true); 
Needs to have at least a SetAutoMin to show the minimal line like:

Code: Select all

//y-axis
$graph->yaxis->SetColor($SITE['txtcolor']);
$graph->yaxis->SetLabelFormat('%0.0f ' . $SITE['tempunit']);
$graph->yaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->yaxis->scale->SetGrace(5);
$graph->yaxis->HideTicks(true,true);
$graph->yscale->SetAutoMax(12);
$graph->yscale->SetAutoMin(-10);
This will lower the left Yaxis to below zero.

Note that Humidity can't go below zero so its scale which is shown on the right will remain as it is.
I have done that today, finally got around to doing it, see example below
Image

As you can from that the temp is now OK but the dewpoint side isnt correct. I would have thought that as the temperatures lowered the graph would automatically lower itself. I have set the automin to -10 as suggested, by record low is -6.7, so I could have it around -7 rather than -10. In the summer will I have to come back and change the automax from 12 - 30 ?
Thanks

EDIT, I,m getting myself confused now. The red fill in shading isnt correct ?
EDIT-2 - I see there is now an indoor temp grapah available, do I have to download the whole zip file again, and if so what files will I have to reconfigure ? I did try and just upload the indoor graph PHP but it didnt work.

Re: Cumulus Server Sided JpGraph Graphs

Posted: Wed 05 Nov 2008 5:35 pm
by TNETWeather
I am playing catchup now... was out since Friday with the Flu...

Re: Cumulus Server Sided JpGraph Graphs

Posted: Fri 07 Nov 2008 10:02 am
by Paul C
Hi
Still need some help with the shading in my temp/humidity graph, as above
Tks

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 08 Nov 2008 10:59 am
by pinto
Hi Paul,

A lot of things happened.
As you probably know, Steve added some stuff to the end of the realtime.txt file.
Kevin's first version of the realtimelog.php file does not add these to your log-file.
So: first thing you should do is to download the new version, configure it and upload it(overwrite the old one, give it the same name first i.e. "realtimelog.php" ).(nothing to change to your Cron entries)
from this point on the added stuf is added to your logfile.
Then, to make the new graphs, you have to upload the new version of Kevins "Cumulus jpgraph Graphs" after you did the configuration in "GraphSettings.php".(there are some things changed)
The new indoorgraph will work after that.

For the shading of you temp-graph, we will see what it does when you did the upgrade.

Re: Cumulus Server Sided JpGraph Graphs

Posted: Mon 10 Nov 2008 10:01 am
by Paul C
pinto wrote:Hi Paul,

A lot of things happened.
As you probably know, Steve added some stuff to the end of the realtime.txt file.
Kevin's first version of the realtimelog.php file does not add these to your log-file.
So: first thing you should do is to download the new version, configure it and upload it(overwrite the old one, give it the same name first i.e. "realtimelog.php" ).(nothing to change to your Cron entries)
from this point on the added stuf is added to your logfile.
Then, to make the new graphs, you have to upload the new version of Kevins "Cumulus jpgraph Graphs" after you did the configuration in "GraphSettings.php".(there are some things changed)
The new indoorgraph will work after that.

For the shading of you temp-graph, we will see what it does when you did the upgrade.
OK - I updated the realtimelog.php - that was working OK
I then downloaded the new graph package and updated the settings on on the GraphSettings.php. which looked a bit different to the last one. I coulndt see anywhere to add mm or degree C -anyway I have uploaded that the website but now NON of my charts/graphs work - any ideas on what I have done wrong ?

CANCEL - I missed removing that hloc thing - looks alot better now apart from the rainfall
Image

looks like the rain has reached its ceiling ?