DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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:

Top comments (1)

Collapse
 
anuragrana profile image
Anurag Rana Author

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

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.