How to Check Weather Forecast from Terminal Using wttr.in

wttr.in is a free and open source terminal based weather forecast application. It comes with ANSI-sequences for console HTTP clients support, HTML for web browsers, or PNG for graphical viewers. It is written in python and Go and released under Apache License 2.0.

Check Weather Forecast from Command line

Open the terminal app using ctrl+alt+t keys and run below command. It will automatically detect your location based on your ip and show the current and complete weather forecast.

curl wttr.in

wttr

If you want to get the weather information for a specific location, then add the city name like below the command.

curl wttr.in/Houston

wttr weather app

Examples:

curl wttr.in/Salt+Lake+City
curl wttr.in/New+Delhi
curl wttr.in/Liverpool

You can also get weather forecast of Airport using 3 letter airport code.

Also Read:  How to Make Ubuntu Remember the Last Session

Example: Get weather for Munich International Airport, Germany

curl wttr.in/muc

Also get special location and mountain weather like below. Just add ~ before the name.

{code]curl wttr.in/~Eiffel+Tower

Website

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Leave a Reply