Graphing from the monthly logs and dayfile.txt
Posted: Sat 01 Jan 2011 10:17 am
This is something I've been working on for a while now: creating historic graphs using monthly logs and dayfile.txt.
First I wrote up a script to create new log files with data every 10 minutes as opposed to 1 minute, which takes up a huge space on the server.
I just threw together a page (not part of the main site) "show-casing" the graphs I managed to output:
http://howick.localweatherview.com/hist ... owcase.php
Some of the data is averaged, still it is rather spiky though.
Overall a great php practice exercise (very time consuming, but there was a lot of time to spare recently!), and I learnt a few new things also.
Motivation behind the whole thing was that every browser can see the graphs as they are PNG's, and not javascript generated, and also because I prefer writing my own scripts - so much more satisfying
My site visitors (who number few!) have barely used the current historic page to my disappointment, so gotta show someone...
Comments/suggestions welcome!

First I wrote up a script to create new log files with data every 10 minutes as opposed to 1 minute, which takes up a huge space on the server.
I just threw together a page (not part of the main site) "show-casing" the graphs I managed to output:
http://howick.localweatherview.com/hist ... owcase.php
Some of the data is averaged, still it is rather spiky though.
Overall a great php practice exercise (very time consuming, but there was a lot of time to spare recently!), and I learnt a few new things also.
Motivation behind the whole thing was that every browser can see the graphs as they are PNG's, and not javascript generated, and also because I prefer writing my own scripts - so much more satisfying
My site visitors (who number few!) have barely used the current historic page to my disappointment, so gotta show someone...
Comments/suggestions welcome!