Display short term rain forecast and weather alerts on the command line.
- Rust 97.9%
- zsh 2.1%
| src | ||
| .gitattributes | ||
| .gitignore | ||
| _forecast | ||
| Cargo.lock | ||
| Cargo.toml | ||
| readme.md | ||
forecast
Displays 24 hour rain forecast and weather alerts on the command line. Works only for locations in Germany.
Data sources
- Weather and rain forecast: DWD ICON-D2 via OpenMeteo.com.
- Weather alerts: DWD via BrightSky.dev.
Installation
cargo build --release
Usage
Usage: forecast [OPTION] [LOCATION]...
When no LOCATION is given, print out forecasts for all configured locations not
marked as hidden.
Options:
-h, --help Show this help.
--locations List all configured locations.
-v, --verbose Display more information about weather warnings.
--version Show version.
Configuration
Locations are configured in forecast.conf in $XDG_CONFIG_DIR (likely
~/.conf/). Example config file:
[Cologne]
latitude=50.56
longitude=6.57
timezone="Europe/Berlin"
hidden=false
[Berlin]
latitude=52.31
longitude=13.24
timezone="Europe/Berlin"
hidden=true
License
forecast is released under GPLv3.