wttr: weather from the terminal


Many of us have the habit of checking the weather every now and then. There are excellent weather indicators, Typhoon or cmdline wego and weather-util. Turns out there’s another way to get the same (but static) wego output in the terminal. And that too without installing any utility other than your pre-installed download tools.

We are speaking of the web service wttr. The format is:

$ curl wttr.in/your_location

but wttr is intelligent enough to detect your location from your IP. So the following work too:

$ curl wttr.in

The same commands with wget:

$ wget -qO- wttr.in
$ wget -qO- wttr.in/your_location

Leave a Reply

Your email address will not be published. Required fields are marked *