October 21, 2003

Therm-o-script

I've been doing a lot of PHP coding lately, and one thing I've been wanting to do for some time now is to have some slight better stats on the weather in this bitterly cold country. My previous stats consisted of a simple RRD graph of the temperature, read from a nice little temperature sensor device attached to a serial port.

My little script reads the raw RRD data (from rrdtool dump) and processes the info, creating a statistics page in real time. The entire page (except for 1x1 pixel GIFs) is pure HTML and CSS. Even the bar graphs consist of HTML table. This makes it very lean, and is much simpler than using an image library.

Not the most useful of scripts, but certainly gives me useful information and lots of PHP practise.

Posted by Ben at October 21, 2003 01:46 AM
Comments
Post a comment









Remember personal info?






Recent Entries
- Linux on an HP Compaq NC6400
- Sodium in water? Bah..try Caesium!
- I'm off to Lugradio
- Food for thought...
- Replacing ugly Helvetica fonts in Xorg
Support me...

Contact
Email me: bb@bb.cactii.net
Current...
NL time:21:15
Book: Assassini (Thomas Gifford)
Amazon wish list
Search the web
Google