Advertisement
dmcdougald

NerdTool Weather CODE

Feb 1st, 2014
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Weather Code:
  2. curl --silent -o /Users/<YOURUSERNAME>/curweather.txt http://xml.weather.yahoo.com/forecastrss?p=USGA0589&u=f && grep -A 15 -E '(Conditions for Valdosta)' /Users/<YOURUSERNAME>/curweather.txt | egrep -v '(img src|geo|link|yweather|description|pubDate|Current)' | sed -e 's/\<title\>//' | sed -e 's/\<\/title\>//' | sed -e 's/\<b\>//' | sed -e 's/\<\/b\>//' | sed -e 's/\<br \/\>//' | sed -e 's/\<BR \/\>//' | sed -e 's/\<BR \/\>//'
  3.  
  4. **USGA0589 = Valdosta Georgia, you need to find the proper Yahoo code for your city, and change it as well as "Conditions for Valdosta" to "Conditions for YOURCITYNAME" in the code above
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement