I have noticed for a while that the graph of the last day always is the day before the last day - ie. if you click the graphs for day 4 of April - you see the graph from April 3rd.
I would have to see the code from your AvgExtract.php file because I think the problem is in it.
Probably caused something you changed because my site does not have that problem http://www.carmosaic.com/weather/monthly-stats.php
I’d kind of hold off a lot of script changes until the changes to the new output file is finished.
There are still some issues with the update that I assume Brian is going to address and when he does, the format of the output page may change further.
There still are some very basic HTML tags missing and in the wrong order that could make parsing an issue.
In a way, it would be nice if the output was simply a plain text file (April2008.txt) with no HTML in it at all. It would make parsing it a lot easier and then the user can format the output the way they want to using their own style settings.
here is a possible fix for your file, i also added in the compatibility changes you need for the latest WD.
Kevin is correct, more changes in WD might break something, but for now, try this.
Edit: removed the attachment because it was a special version just for Henrik and he already downloaded it.
One more small fix for Maximum humidity on the daily reports, the problem was the word humidity was showing up on the side where the values are.
I only changed one line
array(‘Maximum humidity’,4), # mchallis 04/06/08 (WD 10.37j-01 fix) changed 3 to 4
#edit, I removed the attachment, see later post for latest AvgExtract.php attachment
mchallis Version 1.03 04/08/08 Added support for rain totals in mm
In AvgExtract.php I replaced
$level2 = array(
array(',ET', 2),
array('Sunshine hours month to date',6),
array('Sunshine hours year to date',6),
array('in. on day',0),
array('in. on day',0), # mchallis added 04/04/08 (WD 10.37j-01 fix)
);
with
$level2 = array(
array(',ET', 2),
array('Sunshine hours month to date',6),
array('Sunshine hours year to date',6),
array('in. on day',0),
array('in. on day',0), # mchallis added 04/04/08 (WD 10.37j-01 fix)
array('mm on day',0), # mchallis added 04/08/08 support for rain in mm
array('mm on day',0), # mchallis added 04/08/08 support for rain in mm (WD 10.37j + fix)
);
It will automatically print the correct rain totals no matter if you use inches or mm for rain.
$level2 = array(
array(",ET", 2),
array("Sunshine hours month to date",6),
array("Sunshine hours year to date",6),
array(" mm ",0),
);
To:
$level2 = array(
array(",ET", 2),
array("Sunshine hours month to date",6),
array("Sunshine hours year to date",6),
array('mm on day',0), # mchallis added 04/08/08 support for rain in mm
array('mm on day',0), # mchallis added 04/08/08 support for rain in mm (WD 10.37j + fix)
);
The array(" mm ",0), must be something you added, it was interfering with the rain total “mm”