← 返回
未分类 中文

Kmi

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...
通过 KMI/IRM meteo.be API 查询比利时天气。适用于用户需要比利时地区的天气预报、实时天气、雷达、警报或紫外线指数。触发...
dedene
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 283
下载
💾 0
安装
1
版本
#latest

概述

kmi-cli

CLI for KMI/IRM - Belgian weather data from the Royal Meteorological Institute.

Quick Start

# Current weather
kmi current Brussels

# 7-day forecast
kmi forecast Leuven

# Weather warnings
kmi warnings Belgium

# UV index
kmi uv Antwerp

No Authentication Required

This CLI uses the public meteo.be API. No API key or registration needed.

Core Rules

  1. Always use --json when parsing output programmatically
  2. Location formats: city name (Brussels), coordinates (50.85,4.35), or favorite (@home)
  3. Use favorites with @prefix - e.g., kmi forecast @home
  4. Rate limiting is automatic - CLI handles this transparently

Output Formats

FlagFormatUse case
------------------------
(default)TableUser-facing display
--jsonJSONAgent parsing, scripting
--plainTSVPipe to awk/cut

Workflows

Current Weather

# By city name
kmi current Brussels

# By coordinates
kmi current 50.85,4.35

# By saved favorite
kmi current @home

# JSON output for parsing
kmi current Brussels --json

Forecast

# 7-day forecast
kmi forecast Leuven

# Daily breakdown
kmi daily Leuven

# Hourly for next 12 hours
kmi hourly Leuven

# JSON output
kmi forecast Leuven --json

Radar

# Download radar animation frames
kmi radar Brussels

# Specify output directory
kmi radar Brussels --output-dir ~/tmp

Note: Radar downloads image files to the current or specified directory.

Warnings

# Get active weather warnings
kmi warnings Belgium

# JSON for scripting
kmi warnings Belgium --json

UV Index

# UV index for location
kmi uv Antwerp

# JSON output
kmi uv Antwerp --json

Favorites

# Save a favorite location
kmi favorites add home 50.85,4.35
kmi favorites add work Brussels

# List all favorites
kmi favorites list

# Use favorites with @ prefix
kmi forecast @home
kmi current @work

# Remove a favorite
kmi favorites remove work

Scripting Examples

# Get current temperature
kmi current Brussels --json | jq -r '.temperature'

# Check if rain is expected today
kmi forecast Brussels --json | jq -r '.[0].precipitation'

# Get warning count
kmi warnings Belgium --json | jq 'length'

# List all forecasted conditions
kmi forecast Brussels --json | jq -r '.[] | "\(.day): \(.condition)"'

Environment Variables

VariableDescription
-----------------------
KMI_LANGLanguage (en, nl, fr, de)
NO_COLORDisable 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

# macOS/Linux
brew install dedene/tap/kmi

# Windows - download from GitHub Releases
# https://github.com/dedene/kmi-irm-cli/releases

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 05:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Lametric Cli

dedene
通过命令行控制 LaMetric TIME/SKY 智能显示屏。用于发送通知、调节亮度/音量、管理定时器或断开...
★ 0 📥 961

Memelink

dedene
使用 Memegen.link API 在终端生成表情包、图片宏和表情包 URL。用于创建表情包、选择表情包模板、生成有趣的...
★ 0 📥 297
developer-tools

Irail

dedene
通过 irail CLI 查询比利时铁路 (NMBS/SNCB) 时刻表。在用户需要查询列车出发、站点之间的连接、列车编组或其他信息时使用。
★ 0 📥 970