Skip to content

Instantly share code, notes, and snippets.

@meagtan
Created August 3, 2016 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meagtan/f1b868542c9008859d0c783e519614a6 to your computer and use it in GitHub Desktop.
Save meagtan/f1b868542c9008859d0c783e519614a6 to your computer and use it in GitHub Desktop.
Geektool script to print current weather
curl --silent "http://wxdata.weather.com/wxdata/weather/local/TUXX0002?cc=*&unit=m&dayf=1" | \
grep -A2 '<tmp>' | tr '\n' ' ' | sed -E 's|.*<tmp>(.*)</tmp>.*<t>(.*)</t>.*|\2, \1°|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment