Page 6 of 17

Re: Cumulus Server Sided JpGraph Graphs

Posted: Fri 24 Oct 2008 9:15 pm
by pinto
I did find a quick fix for number one, an as for number two, we can wait :)

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 25 Oct 2008 7:04 pm
by TNETWeather
I'm having some problems doing the monthly rain part since I have no data to play with. It doesn't rain around here much this time of year.

The only person that I know for sure that is collecting the new format is Jozef, and his logs have inconsistencies in them.

His monthly rain drops from 47.0mm for the month/year down to 32.0mm out of the blue.. (date time daily monthly yearly):

Code: Select all

2008-10-22 15:57:53 0.0 47.0 47.0 
2008-10-22 15:58:53 0.0 47.0 47.0 
2008-10-22 15:59:53 0.0 47.0 47.0 
2008-10-22 16:00:53 0.0 47.0 47.0 
2008-10-22 16:01:51 0.0 32.0 32.0 <=====
2008-10-22 16:02:51 0.0 32.0 32.0
And new daily rain doesn't seem to adjust the monthly/yearly rain totals at the time it happens...

I'm guessing that Cumulus is not increasing the monthly rain until the rain reset time. (date stamp, daily rain, monthly rain, yearly rain):

Code: Select all

2008-10-24 19:13:52 0.0 32.0 32.0
2008-10-24 19:14:52 0.2 32.2 32.2 <==== Rain but monthly and yearly didn't change
2008-10-24 19:15:52 0.2 32.2 32.2
And it apparently didn't increment the monthly/yearly after the midnight reset either:

Code: Select all

2008-10-24 23:58:03 0.2 32.2 32.2
2008-10-24 23:59:03 0.2 32.2 32.2
2008-10-25 00:00:03 0.0 32.2 32.2 <==== Reset took place but monthly & Yearly still didn't change
2008-10-25 00:01:03 0.0 32.2 32.2
I'm guessing that Jozef did an adjustment in the first changes.. but I don't know why the data is not properly following what is happening in the others.

The result is that the graph looks wierd with the monthly rain totals not following the daily rain totals. They should both increase at the same time.

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sat 25 Oct 2008 7:30 pm
by pinto
TNETWeather wrote: I'm guessing that Jozef did an adjustment in the first changes.
Hi Kevin,
I didn't make any adjustements, only deleted the logfile when the realtime.txt changed
and using since then version 2 of your realtimelog.php script
I update cumulus when new versions are available

BTW stopped recycling the log

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 26 Oct 2008 1:41 pm
by steve
At startup, Cumulus calculates the rain so far this year and this month, not including today, by adding up the daily totals in dayfile.txt. Then, every time today's total is calculated (from the current counter in the station compared to the value of the counter as it was at start of day) it calculates the up-to-date monthly and annual totals by adding today's total to those two values it calculated at startup.

It looks like that drop at 2008-10-22 16:01:51 coincided with a restart (because the seconds value changes), so something has probably gone wrong with the startup calculation.

As for the increase in daily total without a corresponding monthly and yearly increase at 2008-10-24 19:14:52, I just can't account for that, given what i said about how it calculates them.

The Oct08log.txt and dayfile.txt files may throw some light on it.

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 26 Oct 2008 2:40 pm
by pinto
steve wrote:It looks like that drop at 2008-10-22 16:01:51 coincided with a restart (because the seconds value changes), so something has probably gone wrong with the startup calculation.
upgrade to 1.8.3 #472
As for the increase in daily total without a corresponding monthly and yearly increase at 2008-10-24 19:14:52, I just can't account for that, given what i said about how it calculates them.

The Oct08log.txt and dayfile.txt files may throw some light on it.
you have the zipped files

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 26 Oct 2008 3:17 pm
by steve
Thanks. The correct total does appear to be 32, so I don't know where the 47 came from, unless you deleted some lines from dayfile.txt?

And now I've looked at this again:

Code: Select all

2008-10-24 19:13:52 0.0 32.0 32.0
2008-10-24 19:14:52 0.2 32.2 32.2 <==== Rain but monthly and yearly didn't change
2008-10-24 19:15:52 0.2 32.2 32.2
The monthly and yearly totals do increase by 0.2 in line with the daily total, so where's the problem?

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 26 Oct 2008 3:45 pm
by pinto
steve wrote:
The monthly and yearly totals do increase by 0.2 in line with the daily total, so where's the problem?
Yes, I know, did not see it :oops:

as for the 47 drop to 32: forget it, I even can't remember if I deleted some of them

EDIT:I think I have, read somewhere on the forum there should only be one line a day :oops:
I have a lot of :oops: the last day's

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 26 Oct 2008 3:53 pm
by steve
pinto wrote:Yes, I know, did not see it :oops:
I saw it. Kevin must have been using some sort of hypnosis.
as for the 47 drop to 32: forget it, I even can't remember if I deleted some of them
At least it appears to be correct now.
EDIT:I think I have, read somewhere on the forum there should only be one line a day :oops:
I have a lot of :oops: the last day's
You only have one line per day in the file you sent me - in dayfile.txt, that is. The other file can have lots of entries per day.

Re: Cumulus Server Sided JpGraph Graphs

Posted: Sun 26 Oct 2008 4:29 pm
by TNETWeather
It was a result of water dehydration...

Re: Cumulus Server Sided JpGraph Graphs

Posted: Tue 28 Oct 2008 12:43 pm
by Paul C
May be a slight problem with the graphs once temps fall below zero ?

Image
As you can see the graphs dont look right now, the colour needs to fill in below the zero line.

Any thoughts

Re: Cumulus Server Sided JpGraph Graphs

Posted: Tue 28 Oct 2008 2:24 pm
by TNETWeather
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.

Re: Cumulus Server Sided JpGraph Graphs

Posted: Tue 28 Oct 2008 3:24 pm
by gwheelo
Something wrong with my graph - it says it is raining and it says no rain today. Looking out the window says rain - but who can you believe?
NoRain.JPG
GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Tue 28 Oct 2008 3:34 pm
by pinto
Kevin made an update of the package
I guess he forgot to post here

Re: Cumulus Server Sided JpGraph Graphs

Posted: Tue 28 Oct 2008 3:39 pm
by gwheelo
Thanks for the info - I will fix it tonight. The page is not public yet - still testing - so no one will ever know.

GW

Re: Cumulus Server Sided JpGraph Graphs

Posted: Tue 28 Oct 2008 9:49 pm
by gwheelo
I downloaded the JPGraph file curently available and uploaded the rain.php and GraphSettins.php to my website which now still reads 'Np Rain Today" while graphing our current showers. Out the window it is still raining. What to do, what to do?

Obviously, I have missed something important.

GW