Code

oops it is 1.3.0 not 1.4.0 yet
[rrdtool-all.git] / website / gallery / chris-01.wml
1 #include "$(ROOT)/.wml/template.inc" section=gallery subsection=chris-01
3 <H1>Weather Station</H1>
5 <P>by <A HREF="mailto:chris@bikeworld.com">Chris Snell</A></P>
7 <P>I work for Weathertools.com, here in San Antonio, TX USA.  Among other
8 things, we sell weather stations that can be mounted on a roof of a
9 building.  Some of these weather stations are wireless and solar powered
10 and are able to measure temperature, wind speed, wind direction,
11 barometric pressure and rainfall, as well as other things.  We have a
12 demonstation unit up on our roof and I wanted to put some graphs of the
13 readings on the web.  We've been graphing the readings using a
14 Windows-based program but its <A
15 HREF="http://www.bikeworld.com/trend.htm">graphs</a> just don't look all
16 that cool.  I thought I could improve on them, so I scoured the 'Net and
17 found some <A
18 HREF="http://www.rdrop.com/cgi-bin/wiz3web">software</a> written by a guy
19 named Alan Batie from Portland, Oregon USA.  His software (written on a
20 FreeBSD box) pulls the data from the weather station over the station's
21 serial port.  Alan is currently <A
22 HREF="http://www.rdrop.com/mrtg/weather.html">graphing</A> his weather
23 readings with MRTG but I wanted to take it a step further and graph mine
24 with RRDtool.  So, I wrote a quick little Perl hack that reads the data
25 from Alan's utility and then sends the data, via a HTTP request, to our
26 colocated servers downtown.  The HTTP request is made to another Perl hack
27 I wrote which runs under mod_perl.  This script takes the readings and
28 stores them in an RRD file using the shared RRD Perl module, RRDs.  
29 Finally, I needed a way to graph this data.  To do this, I used a program
30 called <A HREF="http://bronc.blueaspen.com">Bronc</A>, which I wrote last
31 year.  Bronc reads its configuration from a template and then generates
32 graphs in real time (on-the-fly) using the RRDs Perl module.</P>
34 <P><A
35 HREF="http://bronc.blueaspen.com/breakdown.html?definition=5&dfile=definitions">
36 <IMG SRC="chris-01temp.png" BORDER=0></A></P>
38 <P><A
39 HREF="http://bronc.blueaspen.com/breakdown.html?definition=6&dfile=definitions">
40 <IMG SRC="chris-01wind.png" WIDTH=595 HEIGHT=286 BORDER=0></A>
41 </P>