Check Weather in Terminal Using curl wttr.in

WTTR.in is a simple way to check the weather from your terminal. You can use the “curl” command to see the current weather and forecast without opening a weather app or website. It shows useful details like temperature, wind, and humidity directly in the terminal.

Features of WTTR.in in the Terminal:

  • Check the current weather.
  • View the weather forecast.
  • Check weather for a specific city.
  • Check weather using a location name.
  • View temperature, wind, humidity, and other information.
  • Get weather information in the terminal.

Installation Commands

First, install curl on your system.

For Termux:

pkg install curl -y

For Debian, Ubuntu, and Kali Linux:

sudo apt install curl -y

Usage Commands

Now you can use WTTR.in with curl to check the weather for any location. You only need to enter the location name with the command.

Check the weather for your current location:

curl wttr.in

Check the weather for a specific city:

curl wttr.in/Chicago

You can replace Chicago with any city you want.

For example:

curl wttr.in/London
curl wttr.in/New-York

You can also use a country or location name:

curl wttr.in/Germany

To get a shorter weather report:

curl wttr.in/London?0

To show only the current weather:

curl wttr.in/London?1

To get a simple three-day forecast:

curl wttr.in/London?2

You can also use the ?T option to remove terminal colors:

curl wttr.in/London?T

You can change the location name in the commands to check the weather of any city or place you want.

Overview

WTTR.in is a simple way to check weather information without opening a weather app or website. Just use curl with a location name, and you can quickly see the weather and forecast directly in your terminal.

SHARE THIS POST: