LinuxCommandLibrary

ansiweather

Display weather in the terminal with ANSI colors

TLDR

Get weather for a city

$ ansiweather -l [London,UK]
copy
Show forecast
$ ansiweather -l [Paris,FR] -f [5]
copy
Use Celsius
$ ansiweather -l [Tokyo,JP] -u metric
copy
Use Fahrenheit
$ ansiweather -l [New York,US] -u imperial
copy
Show detailed weather
$ ansiweather -l [Berlin,DE] -a true
copy

SYNOPSIS

ansiweather [-l location] [-u units] [-f days] [options]

DESCRIPTION

ansiweather is a shell script that displays current weather conditions in your terminal using ANSI colors and Unicode symbols. It fetches data from OpenWeatherMap API and formats it for terminal display.
The tool provides a quick, colorful weather overview without leaving the command line.

PARAMETERS

-l location

Location (City,CountryCode format)
-u units
Units: metric (Celsius) or imperial (Fahrenheit)
-f days
Forecast days (1-5)
-a bool
Show all details (true/false)
-s bool
Enable/disable symbols
-k key
OpenWeatherMap API key
-d bool
Show daylight info (sunrise/sunset)
-w bool
Show wind info
-p bool
Show pressure info
-h bool
Show humidity info

CONFIGURATION

~/.ansiweatherrc

User configuration file for default location, units, API key, and display options.

CAVEATS

Requires OpenWeatherMap API key for some features. Free API has rate limits. Location matching can be imprecise; use country codes for accuracy.

HISTORY

ansiweather was created as a simple, colorful terminal weather tool, leveraging OpenWeatherMap's free API tier for weather data.

SEE ALSO

curl(1), wttr.in(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community