This directory contains some scripts that process weather data logged
by w1retap. 

The wplot.rb script is run by the author as a 'cron' job every 5
minutes. It produces the <http://www.daria.co.uk/wx/> web page (and
local pages at home), as well as a Wunderground feed, files for an RRS
feed and the wx_static.dat file used by the w1temp GNOME applet.

wplot.rb is responsbile for normalisation of the data recorded by
w1retap, e.g. pressure to mean sea level, calculating rain fall from raw
data etc. In order to do this, the 'station' database table is used.

wplot.rb uses ploticus to draw graphs.

wxfeeds.rb creates the RSS feed from data produced by wplot.rb, and
updates data to an ISP.

wug.rb is a standalone Wunderground.com uploader (wplot.rb can also do
this).

All these scripts require that the stations table is populated:

CREATE TABLE station
(
        name text,
        stnlat real,
        stnlong real,
        altitude real,
        location text,
        software text,
        url text,
        rfact real
);

name:	  The name of the station (free text).

stnlat:	  The latitude of the station, decimal degress.

stnlong:  The longitude of the station, decimal degress (nb uSians, W
	  is negative).

altitude: Altitude of station, for pressure normalisation in METRES
	  (nb USians, 1 metre = 3.281 feet).

location: The location of your station (free text).

software: The name of the weather station software ('w1retap').

url:	  The URL of a site providing information about your site.

rfact:	  The factor that converts one tip of the rain sensor bucket
	  to inches. For the standard LaCrosse guage with a TAI8540,
	  the value is 0.0204" per tip. The author placed a funnel of
	  diameter 13cm over his guage, giving a factor of 0.0105" per
	  tip.

e.g.:

 INSERT INTO station VALUES ('Jonathan & Daria''s Weather Station',
   50.91532, -1.53036, 19, 'Netley Marsh', 'w1retap',
   'http://www.daria.co.uk/wx/', 0.0105);


These scripts are licenced under the MIT Licence. They may be
incomplete. Ask if you think there's something else you need.

The Ruby scripts require some modules that are not part of a standard
Ruby installation; if not provided by your OS distribution: 

ruby-svg-1.0.3 <http://raa.ruby-lang.org/project/ruby-svg/>
html-template-0.16 <http://raa.ruby-lang.org/project/html-template/>


