/install hk-weather
Hong Kong Weather (v1.0.0)
Get real-time weather, warnings, and forecasts from the Hong Kong Observatory (HKO) official open data API. Zero dependencies, zero API keys.
Output Policy (Safe & ClawHub-friendly)
- Prefer script output as reply basis.
- Allow minimal formatting cleanup for readability.
- Never fabricate weather data. If API fails, show exact error.
- Keep output concise. No lengthy explanations.
Safety & Scope (for Security Scan)
- Allowed commands only:
python3 scripts/hk_weather.py current [tc|en]python3 scripts/hk_weather.py warning [tc|en]python3 scripts/hk_weather.py forecast [tc|en]python3 scripts/hk_weather.py all [tc|en]
- Network scope (allowlist):
https://data.weather.gov.hk/*
- Write scope (skill-local only):
scripts/__pycache__/
- No secrets. No credentials. No config files.
Language Handling
- Chinese query →
tc: When user asks in Chinese/Cantonese, usepython3 scripts/hk_weather.py current tc - English/non-Chinese query →
en: When user asks in English, usepython3 scripts/hk_weather.py current en - Default to
tcif language is unclear (Hong Kong primary language)
Usage
Current Weather
Real-time temperature, humidity, rainfall, UV index, and conditions.
# Chinese output (default for HK)
python3 scripts/hk_weather.py current tc
# English output
python3 scripts/hk_weather.py current en
Weather Warnings
Check active warnings (typhoon, rainstorm, thunderstorm, etc.).
python3 scripts/hk_weather.py warning tc
python3 scripts/hk_weather.py warning en
9-Day Forecast
Extended forecast with temperature range, humidity, and rain probability.
python3 scripts/hk_weather.py forecast tc
python3 scripts/hk_weather.py forecast en
All-in-One
Combined current + warnings + forecast (first 3 days).
python3 scripts/hk_weather.py all tc
python3 scripts/hk_weather.py all en
Examples
"今天香港天氣點?"
python3 scripts/hk_weather.py current tc
"What's the weather in Hong Kong?"
python3 scripts/hk_weather.py current en
"有冇暴雨警告?"
python3 scripts/hk_weather.py warning tc
"Forecast for the week"
python3 scripts/hk_weather.py forecast en
"香港天氣點?有冇警告?未來幾日預報?"
python3 scripts/hk_weather.py all tc
Notes
- Data source: Hong Kong Observatory Open Data API (data.weather.gov.hk)
- No API key required
- Response time: typically 2-5 seconds
- When no warnings are active, the warning command returns "No active weather warnings" / "現時無生效天氣警告"
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hk-weather - 安装完成后,直接呼叫该 Skill 的名称或使用
/hk-weather触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Hong Kong Weather 是什么?
Hong Kong weather information from the Hong Kong Observatory (HKO) official open data API. Use when: user asks about Hong Kong weather, temperature, rainfall... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。
如何安装 Hong Kong Weather?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hk-weather」即可一键安装,无需额外配置。
Hong Kong Weather 是免费的吗?
是的,Hong Kong Weather 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Hong Kong Weather 支持哪些平台?
Hong Kong Weather 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hong Kong Weather?
由 MIC007P(@mic007p)开发并维护,当前版本 v1.0.0。