LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 wind and humidity data
$ ansiweather -l [Berlin,DE] -w true -h true
copy
Show five-day forecast
$ ansiweather -l [Berlin,DE] -F
copy
Display UV index information
$ ansiweather -l [Berlin,DE] -i 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)
-F
Toggle forecast mode for the next five days.
-a bool
Toggle ANSI colors display (true/false).
-s bool
Toggle Unicode symbols display (true/false).
-k key
Specify OpenWeatherMap API key.
-d bool
Toggle daylight data display: sunrise/sunset (true/false).
-w bool
Toggle wind data display (true/false).
-p bool
Toggle pressure data display (true/false).
-h bool
Toggle humidity data display (true/false).
-i bool
Toggle UV index display (true/false).
-v
Display version information.

CONFIGURATION

~/.ansiweatherrc

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

INSTALL

yay -S ansiweather
copy
brew install ansiweather
copy

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)

Copied to clipboard
Kai