Created
October 11, 2016 10:16
-
-
Save havvg/13271fcdbdefbdecdfa9cfa4bf1b8225 to your computer and use it in GitHub Desktop.
weather function calling wttr.in API
This file contains 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
weather () { | |
CITY=${1-"Penzberg"} | |
curl "http://wttr.in/${CITY}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment