| name | kmi-cli |
| description | Query Belgian weather via KMI/IRM meteo.be API. Use when user wants forecasts, current weather, radar, warnings, or UV index for Belgian locations. Triggered by mentions of Belgian weather, KMI, IRM, meteo.be, or Belgian forecast.
|
| license | MIT |
| homepage | https://github.com/dedene/kmi-irm-cli |
| metadata | {"author":"dedene","version":"1.0.0","openclaw":{"requires":{"bins":["kmi"]},"install":[{"kind":"brew","tap":"dedene/tap","formula":"kmi","bins":["kmi"]},{"kind":"go","package":"github.com/dedene/kmi-irm-cli/cmd/kmi","bins":["kmi"]},{"kind":"binary","url":"https://github.com/dedene/kmi-irm-cli/releases/latest","bins":["kmi"]}]}} |
kmi-cli
CLI for KMI/IRM - Belgian weather data from the Royal Meteorological Institute.
Quick Start
kmi current Brussels
kmi forecast Leuven
kmi warnings Belgium
kmi uv Antwerp
No Authentication Required
This CLI uses the public meteo.be API. No API key or registration needed.
Core Rules
- Always use
--json when parsing output programmatically
- Location formats: city name (
Brussels), coordinates (50.85,4.35), or favorite (@home)
- Use favorites with @prefix - e.g.,
kmi forecast @home
- Rate limiting is automatic - CLI handles this transparently
Output Formats
| Flag | Format | Use case |
|---|
| (default) | Table | User-facing display |
--json | JSON | Agent parsing, scripting |
--plain | TSV | Pipe to awk/cut |
Workflows
Current Weather
kmi current Brussels
kmi current 50.85,4.35
kmi current @home
kmi current Brussels --json
Forecast
kmi forecast Leuven
kmi daily Leuven
kmi hourly Leuven
kmi forecast Leuven --json
Radar
kmi radar Brussels
kmi radar Brussels --output-dir ~/tmp
Note: Radar downloads image files to the current or specified directory.
Warnings
kmi warnings Belgium
kmi warnings Belgium --json
UV Index
kmi uv Antwerp
kmi uv Antwerp --json
Favorites
kmi favorites add home 50.85,4.35
kmi favorites add work Brussels
kmi favorites list
kmi forecast @home
kmi current @work
kmi favorites remove work
Scripting Examples
kmi current Brussels --json | jq -r '.temperature'
kmi forecast Brussels --json | jq -r '.[0].precipitation'
kmi warnings Belgium --json | jq 'length'
kmi forecast Brussels --json | jq -r '.[] | "\(.day): \(.condition)"'
Environment Variables
| Variable | Description |
|---|
KMI_LANG | Language (en, nl, fr, de) |
NO_COLOR | Disable colored output |
Guidelines
- No API key needed - works out of the box
- Favorites require user setup - do not create favorites without user consent
- Rate limiting is handled automatically - no special handling needed
- Radar command downloads files - inform user about file output
Installation
brew install dedene/tap/kmi