Skip to content

Instantly share code, notes, and snippets.

@taylorotwell
Last active August 27, 2019 13:40
Show Gist options
  • Select an option

  • Save taylorotwell/c8d5cccae16d040ee3d6d3e34a26127a to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

This is so cool!

@nsouto

nsouto commented Feb 15, 2017

Copy link
Copy Markdown

Nice... thanks for the tip.

@KodiakSA

KodiakSA commented Feb 15, 2017

Copy link
Copy Markdown

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
Copy Markdown

Cool!

ghost commented Feb 16, 2017

Copy link
Copy Markdown

good!!!

@miclf

miclf commented Feb 21, 2017

Copy link
Copy Markdown

@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
Copy Markdown

Great rsrsrs

@deokon

deokon commented Apr 2, 2017

Copy link
Copy Markdown

No need for sed:

curl -s wttr.in/"?0"

@eberharterm

Copy link
Copy Markdown

This is awesome. 👍

@chalasr

chalasr commented Apr 11, 2017

Copy link
Copy Markdown

Awesome

@keep-active

Copy link
Copy Markdown

cool

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