Get weather information on Terminal

anuragrana

Anurag Rana

Posted on July 10, 2019

Get weather information on Terminal

You can get weather information of your area in your terminal.

You need to send a curl request on URL wttr.in/$1?m1

curl -s "wttr.in/$1?m1"

You can add this to your .bashrc file as a command.

weather(){ curl -s "wttr.in/$1?m1"}

To get the information of 3 days: curl -s "wttr.in"

More from Author:

💖 💪 🙅 🚩
anuragrana
Anurag Rana

Posted on July 10, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related