weathr
A terminal weather app with ASCII animations driven by real-time weather data.
Features real-time weather from Open-Meteo with animated rain, snow, thunderstorms, flying airplanes, day/night cycles, and auto-location detection.
Demo
| Thunderstorm Night | Snow |
|---|---|
Contents
Packaging Status
Installation
Via Cargo
Build from Source
You need Rust installed.
Homebrew (macOS)
MacPorts (macOS)
Arch Linux
Available in AUR:
or
Nix flake (NixOS)
Available as a flake:
inputs = {
weathr.url = "github:Veirt/weathr";
};
Add to packages:
environment.systemPackages = [
inputs.weathr.packages.${system}.default
];
or use home-manager module option:
imports = [
inputs.weathr.homeModules.weathr
];
programs.weathr = {
enable = true;
settings = {
hide_hud = true;
};
};
Windows
Available through Winget:
winget install -i Veirt.weathr
Configuration
The config file location depends on your platform:
- Linux:
~/.config/weathr/config.toml(or$XDG_CONFIG_HOME/weathr/config.toml) - macOS:
~/Library/Application Support/weathr/config.toml - Windows:
~/AppData/Roaming/weathr/config.toml
You can also place a config.toml in the current working directory, which takes priority over the default location.
Setup
# Linux
# macOS
# Windows (PowerShell)
# Windows (Command Prompt)
Edit the config file at the appropriate path for your platform:
# Hide the HUD (Heads Up Display) with weather details
= false
# Run silently without startup messages (errors still shown)
= false
[]
# Location coordinates (overridden if auto = true)
= 52.5200
= 13.4050
# Auto-detect location via IP (defaults to true if config missing)
= false
# Hide the location name in the UI
= false
# How to display the location in the HUD: "coordinates" | "city" | "mixed"
= "mixed"
# Optional: manually override the city name shown in the HUD.
# When set, skips reverse geocoding entirely.
# city = "Berlin"
# Language for the resolved city name. "auto" uses the locale of the coordinates.
# Accepts BCP-47 language tags: "en", "de", "ru", "ja", etc.
# city_name_language = "auto"
[]
# Temperature unit: "celsius" or "fahrenheit"
= "celsius"
# Wind speed unit: "kmh", "ms", "mph", or "kn"
= "kmh"
# Precipitation unit: "mm" or "inch"
= "mm"
Location Display Modes
The display option controls how the location appears in the HUD. City names are resolved
via reverse geocoding (Nominatim/OpenStreetMap). When a city cannot be resolved (e.g. open
sea or no Nominatim match), all modes fall back to showing coordinates.
| Mode | City resolved | City not resolved |
|---|---|---|
coordinates |
Location: 52.52°N, 13.41°E |
Location: 52.52°N, 13.41°E |
city |
Location: Berlin |
Location: 52.52°N, 13.41°E |
mixed |
Location: Berlin (52.52°N, 13.41°E) |
Location: 52.52°N, 13.41°E |
Example Locations
# Tokyo, Japan
= 35.6762
= 139.6503
# Sydney, Australia
= -33.8688
= 151.2093
Usage
Run with real-time weather:
CLI Options
Simulate weather conditions for testing:
# Simulate rain
# Simulate snow at night
# Clear day with falling leaves
Available weather conditions:
- Clear Skies:
clear,partly-cloudy,cloudy,overcast - Precipitation:
fog,drizzle,rain,freezing-rain,rain-showers - Snow:
snow,snow-grains,snow-showers - Storms:
thunderstorm,thunderstorm-hail
Override configuration:
# Use imperial units (°F, mph, inch)
# Use metric units (°C, km/h, mm) - default
# Auto-detect location via IP
# Hide location coordinates
# Hide status HUD
# Run silently (suppress non-error output)
# Combine flags
Keyboard Controls
qorQ- QuitCtrl+C- Exit
Environment Variables
The application respects several environment variables:
NO_COLOR- When set, disables all color output (accessibility feature)COLORTERM- Detects truecolor support (values: "truecolor", "24bit")TERM- Used for terminal capability detection (e.g., "xterm-256color")
Examples:
# Disable colors for accessibility
NO_COLOR=1
Privacy
Location Detection
When using auto = true in config or the --auto-location flag, the application makes a request to ipinfo.io to detect your approximate location based on your IP address.
This is optional. You can disable auto-location and manually specify coordinates in your config file to avoid external API calls.
Roadmap
- Support for OpenWeatherMap, WeatherAPI, etc.
- Installation via AUR.
- Key bindings for manual refresh, speed up animations, pause animations, and toggle HUD.
License
GPL-3.0-or-later
Credits
Weather Data
Weather data provided by Open-Meteo.com under the CC BY 4.0 license.
Geocoding
City name resolution powered by Nominatim (OpenStreetMap). Data © OpenStreetMap contributors, licensed under ODbL.
ASCII Art
- Source: https://www.asciiart.eu/
- House: Joan G. Stark
- Airplane: Joan G. Stark
- Sun: Hayley Jane Wakenshaw (Flump)
- Moon: Joan G. Stark
Note: If any ASCII art is uncredited or misattributed, it belongs to the original owner.