DEV Community

Cover image for Get weather information on Terminal
Anurag Rana
Anurag Rana

Posted on

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:

Discussion (1)

Collapse
anuragrana profile image
Anurag Rana Author

Try curl https://www.pythoncircle.com/ascii/logo/