Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/weather $ cat weather
- #!/bin/sh
- read -p "Enter your zip code : " zip
- echo `curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=2&locCode=$zip" | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p'`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement