Skip to content

Instantly share code, notes, and snippets.

@artbikes
Created May 7, 2015 15:21
Show Gist options
  • Save artbikes/b236431999821d16e688 to your computer and use it in GitHub Desktop.
Save artbikes/b236431999821d16e688 to your computer and use it in GitHub Desktop.
weather "city name"
function weather(){
curl -s "http://api.openweathermap.org/data/2.5/weather?q=$1&units=metric" | \
jq .main.temp | \
awk '{$1 = (9/5*$1+32)} 1'| \
figlet -kcf big
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment