Created
August 3, 2016 17:14
-
-
Save meagtan/f1b868542c9008859d0c783e519614a6 to your computer and use it in GitHub Desktop.
Geektool script to print current weather
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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