Mercurial > ~darius > hgwebdir.cgi > wh1080
view db/getremote-today @ 1:01496de9f722
Ignore build cruft.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 09 Feb 2010 13:48:22 +1030 |
parents | 9dab44dcb331 |
children |
line wrap: on
line source
#!/bin/sh # $Id: getremote-today,v 1.4 2010/01/02 03:01:02 grog Exp $ # Get today's readings # Wunderground WEATHERDIR=/home/`whoami`/household/weather STATIONS="IVICTORI86 IVICTORI94 IVICTORI102 IVICTORI115 IVICMTHE3 IVICREDA2" PATH=$PATH:/home/grog/src/weather/WH-1080:/home/grog/src/weather/WH-1080/db:/usr/local/bin DAY=`date +%d` MONTH=`date +%m` YEAR=`date +%Y` for STATION in $STATIONS; do DESTDIR=$WEATHERDIR/wunderground/$STATION mkdir -p $DESTDIR getwunderday $DAY $MONTH $YEAR $STATION $DESTDIR/$YEAR-$MONTH-$DAY done # BoM # Ballarat airport fetch -o - http://www.bom.gov.au/fwo/IDV60801/IDV60801.94852.axf | insertBoM | mysql weather # Melbourne airport fetch -o - http://www.bom.gov.au/fwo/IDV60801/IDV60801.94866.axf | insertBoM | mysql weather # Sheoaks fetch -o - http://www.bom.gov.au/fwo/IDV60901/IDV60901.94863.axf | insertBoM | mysql weather mysql < /home/grog/src/weather/WH-1080/db/tidy-observations /home/grog/src/weather/WH-1080/plots/doplots