Skip to content

Instantly share code, notes, and snippets.

@taylorotwell
Last active August 27, 2019 13:40
Show Gist options
  • Save taylorotwell/c8d5cccae16d040ee3d6d3e34a26127a to your computer and use it in GitHub Desktop.
Save taylorotwell/c8d5cccae16d040ee3d6d3e34a26127a to your computer and use it in GitHub Desktop.
Weather CLI
alias weather='curl -s wttr.in | sed -n "1,7p"'
@jackfruh
Copy link

This is so cool!

@nsouto
Copy link

nsouto commented Feb 15, 2017

Nice... thanks for the tip.

@KodiakSA
Copy link

KodiakSA commented Feb 15, 2017

Ha, awesome! Thanks!!
#silly little adjustments
alias wea="curl -s wttr.in | sed -n '1,7p'" #current weather
alias weal="curl -s wttr.in | sed -n '1,38p'" #long weather.. all data
alias weatd="curl -s wttr.in | sed -n '1,17p'" #weather today
alias weatm="curl -s wttr.in | sed -n '1,7p'" #weather tomorrow

@dimitriacosta
Copy link

Cool!

Copy link

ghost commented Feb 16, 2017

good!!!

@miclf
Copy link

miclf commented Feb 21, 2017

@KodiakSA your last line uses wrong numbers. It should be

alias weatm="curl -s wttr.in | sed -n '18,27p'" #weather tomorrow

@RafaPegorari
Copy link

Great rsrsrs

@deokon
Copy link

deokon commented Apr 2, 2017

No need for sed:

curl -s wttr.in/"?0"

@eberharterm
Copy link

This is awesome. 👍

@chalasr
Copy link

chalasr commented Apr 11, 2017

Awesome

@keep-active
Copy link

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment