ansiweather
Display weather in the terminal with ANSI colors
TLDR
Get weather for a city
$ ansiweather -l [London,UK]
Show forecast$ ansiweather -l [Paris,FR] -f [5]
Use Celsius$ ansiweather -l [Tokyo,JP] -u metric
Use Fahrenheit$ ansiweather -l [New York,US] -u imperial
Show wind and humidity data$ ansiweather -l [Berlin,DE] -w true -h true
Show five-day forecast$ ansiweather -l [Berlin,DE] -F
Display UV index information$ ansiweather -l [Berlin,DE] -i true
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.
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.
