WTTR.in in Termux – Check Weather Details from the Terminal

WTTR.in is a simple command-line weather service that lets you check weather information from the terminal. It provides the current weather, weather forecasts, moon phase, and other weather details for cities around the world. You only need an internet connection to use WTTR.in, and no installation is required because it works through curl.

Here’s what you can do with WTTR.in in Termux:

  • Check the current weather.
  • View weather forecasts.
  • Check weather for any city.
  • Display weather in different formats.
  • View the moon phase.
  • Get weather information using curl.

WTTR.in in Termux

WTTR.in does not require installation, just to make sure curl is installed before using the commands below.

Update Termux packages.

pkg update && pkg upgrade -y

Install curl.

pkg install curl -y

Curl is now installed and ready to use with WTTR.in.

WTTR.in Usage Commands

After installing curl, you can use the following commands to check weather information from the terminal.

Check the weather for your current location.

curl wttr.in

Check the weather for a specific city.

curl wttr.in/London

Check the weather for another city.

curl wttr.in/Tokyo

View the weather in a short format.

curl wttr.in/?format=3

Display only the current temperature.

curl 'wttr.in/?format=%t'

Display the current weather condition.

curl 'wttr.in/?format=%C'

Display humidity.

curl 'wttr.in/?format=%h'

Display wind speed.

curl 'wttr.in/?format=%w'

View the moon phase.

curl wttr.in/Moon

Show the help page.

curl wttr.in/:help

You can use these commands to quickly check weather information, forecasts, and other weather details.

End Note

WTTR.in is a simple and useful weather service for checking weather information from the terminal. It is easy to use and provides quick access to current weather, forecasts, and other weather details with simple curl commands in Termux.

SHARE THIS POST: