diff wundersend @ 0:9dab44dcb331

Initial commit of Greg's code from http://www.lemis.com/grog/tmp/wh1080.tar.gz
author Daniel O'Connor <darius@dons.net.au>
date Tue, 09 Feb 2010 13:44:25 +1030
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wundersend	Tue Feb 09 13:44:25 2010 +1030
@@ -0,0 +1,10 @@
+#!/bin/sh
+# $Id: wundersend,v 1.1 2009/11/22 23:33:06 grog Exp $
+# Send a report to Wunderground and log if it fails
+RESULTFILE=/var/tmp/wunderground.$$
+fetch -o $RESULTFILE $1
+RESULT=`cat $RESULTFILE`
+if [ "$RESULT" != "success" ]; then
+  logger "wh1080: Can't send update to Wunderground: $RESULT"
+fi
+rm $RESULTFILE