Linux command
weathr 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display current weather
weathr
Use imperial units
weathr --imperial
Simulate a specific weather condition
weathr --simulate [rain|snow|thunderstorm|fog|clear|...]
Simulate nighttime
weathr --simulate [condition] --night
Hide the status HUD
weathr --hide-hud
Add falling leaves
weathr --leaves
说明
weathr is a terminal weather application that displays real-time weather data with animated ASCII art. It fetches current conditions from the Open-Meteo API and renders them as colorful terminal animations including rain, snow, thunderstorms, flying airplanes, drifting clouds, and birds. The display adapts to time of day: daytime shows the sun, gliding clouds, V-shaped birds, and bright colors, while nighttime features the moon, twinkling stars, gliding clouds, fireflies, and shooting stars. A status HUD shows the weather category, temperature, wind speed, and precipitation. weathr supports cross-platform use on Linux, macOS, Windows, and NixOS. It respects the NO_COLOR environment variable for accessibility.
参数
- --simulate _condition_
- Simulate a weather condition instead of using real data. Conditions: clear, partly-cloudy, cloudy, overcast, fog, drizzle, rain, freezing-rain, rain-showers, snow, snow-grains, snow-showers, thunderstorm, thunderstorm-hail
- --night
- Simulate nighttime visuals (moon, stars, fireflies)
- --leaves
- Add falling leaves animation (autumn effect)
- --imperial
- Use imperial units: Fahrenheit, mph, inches
- --metric
- Use metric units: Celsius, km/h, mm (default)
- --auto-location
- Auto-detect location via IP geolocation (ipinfo.io)
- --hide-location
- Hide location coordinates from the display
- --hide-hud
- Hide the status HUD and show only the ASCII animation
- --silent
- Suppress non-error messages
- -h, --help
- Print help information
- -V, --version
- Print version information
FAQ
What is the weathr command used for?
weathr is a terminal weather application that displays real-time weather data with animated ASCII art. It fetches current conditions from the Open-Meteo API and renders them as colorful terminal animations including rain, snow, thunderstorms, flying airplanes, drifting clouds, and birds. The display adapts to time of day: daytime shows the sun, gliding clouds, V-shaped birds, and bright colors, while nighttime features the moon, twinkling stars, gliding clouds, fireflies, and shooting stars. A status HUD shows the weather category, temperature, wind speed, and precipitation. weathr supports cross-platform use on Linux, macOS, Windows, and NixOS. It respects the NO_COLOR environment variable for accessibility.
How do I run a basic weathr example?
Run `weathr` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --simulate _condition_ do in weathr?
Simulate a weather condition instead of using real data. Conditions: clear, partly-cloudy, cloudy, overcast, fog, drizzle, rain, freezing-rain, rain-showers, snow, snow-grains, snow-showers, thunderstorm, thunderstorm-hail