Add script to dump METAR observations
authorDan White <dan@whiteaudio.com>
Thu, 15 Sep 2011 20:43:56 +0000 (15:43 -0500)
committerDan White <dan@whiteaudio.com>
Thu, 15 Sep 2011 20:43:56 +0000 (15:43 -0500)
metar.sh [new file with mode: 0755]

diff --git a/metar.sh b/metar.sh
new file mode 100755 (executable)
index 0000000..f027381
--- /dev/null
+++ b/metar.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+STATION=$1
+
+wget -q -O - http://weather.noaa.gov/mgetmetar.php?cccc=$STATION \
+    | grep -i $STATION \
+    | tail -1