- #!/bin/sh
- #AccuWeather (r) RSS weather tool for conky
- #
- #USAGE: weather.sh <locationcode>
- #
- METRIC=1 #Should be 0 or 1; 0 for F, 1 for C
- if [ -z $1 ]; then
- echo
- echo "USAGE: weather.sh <locationcode>"
- echo
- exit 0;
- fi
- curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'
Posted by PrimoTurbo on Thu 26 Jun 16:37
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.