/install hk-weather-info
HK Weather Info
Overview
Hong Kong weather skill using HKO (Hong Kong Observatory) OpenData API. Provides current weather reports and local weather forecasts. Supports regional filtering and multilingual output (English, Traditional Chinese, Simplified Chinese).
Data Source
HKO OpenData API — free, no API key required.
- Current weather:
https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=\x3Clang> - Forecast:
https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=\x3Clang>
Variables
| Variable | Description | Values |
|---|---|---|
HK_WEATHER_INFO_REGION |
Target region/district. If None, returns general HK weather. | e.g. "Tsuen Wan", "Central", None |
HK_WEATHER_INFO_LANG |
Language preference | en (English), tc (Traditional Chinese), sc (Simplified Chinese) |
Step 1: Get User Input
(a) Target region
Ask user for target region/district. If user refuses or says "general/whole HK", set HK_WEATHER_INFO_REGION = None.
(b) Language preference
Ask user for language preference. One of:
en— Englishtc— Traditional Chinese (繁體中文)sc— Simplified Chinese (简体中文)
Store as HK_WEATHER_INFO_LANG.
Step 2: Workflow
(a) Current weather report
Call:
GET https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=\x3CHK_WEATHER_INFO_LANG>
The API returns JSON with:
temperature— array of{place, value, unit}humidity—{value, unit}rainfall— array of{place, value, unit}icon— weather icon codeuvindex— UV index (if available)updateTime— timestampwarningMessage— active warnings (string)rainstormReminder— rainstorm reminder (string)
Regional filtering: If HK_WEATHER_INFO_REGION is set (not None):
- Search
temperaturearray for entry whereplacematches the region (case-insensitive partial match) - Search
rainfallarray for entry whereplacematches the region - Display matched regional data
If no match found or HK_WEATHER_INFO_REGION is None:
- Display general HK weather (all temperature stations, all rainfall stations)
(b) Local weather forecast
Call:
GET https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=\x3CHK_WEATHER_INFO_LANG>
The API returns JSON with:
generalSituation— general weather situationforecastDesc— forecast descriptionoutlook— outlookforecastPeriod— array of forecast periods withforecast,weather,tempRange,rhRange,windupdateTime— timestamp
Regional filtering: If HK_WEATHER_INFO_REGION is set:
- The forecast is territory-wide. Note the regional context when presenting.
Display today's and tomorrow's forecast by default.
Output Format
Current Weather
🌤️ Hong Kong Weather [Region if set]
Temperature: XX°C (Station Name)
Humidity: XX%
Rainfall: XXmm (Station Name)
[Weather Icon: XX]
UV Index: XX (if available)
Active Warnings: [warningMessage or "None"]
Rainstorm Reminder: [rainstormReminder or "None"]
Last Updated: \x3CupdateTime>
Forecast
📅 Local Weather Forecast
General Situation: \x3CgeneralSituation>
Today: \x3Cforecast> | \x3Cweather> | Temp: \x3CtempRange>°C | Humidity: \x3CrhRange>% | Wind: \x3Cwind>
Tomorrow: \x3Cforecast> | \x3Cweather> | Temp: \x3CtempRange>°C | Humidity: \x3CrhRange>% | Wind: \x3Cwind>
Outlook: \x3Coutlook>
Last Updated: \x3CupdateTime>
Common Pitfalls
- No API key needed — HKO OpenData is free and open
- Rate limiting — respectful polling, cache results for 10-15 minutes
- Regional name matching — use partial case-insensitive match. Some station names differ from district names
- UV index — may be null at night or on cloudy days
- Warning message — may be empty string if no warnings active
- Forecast language — the
langparameter affects all text fields
Verification Checklist
- HKO OpenData API used (no API key)
- Regional filtering implemented
- Language preference supported (en/tc/sc)
- Current weather and forecast both fetched
- Output format defined
- No external dependencies (Python stdlib only)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hk-weather-info - 安装完成后,直接呼叫该 Skill 的名称或使用
/hk-weather-info触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Hong Kong Weather Information 是什么?
Hong Kong weather information — current conditions, forecasts from HKO (Hong Kong Observatory). Use when user asks about HK weather, temperature, rainfall, o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 33 次。
如何安装 Hong Kong Weather Information?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hk-weather-info」即可一键安装,无需额外配置。
Hong Kong Weather Information 是免费的吗?
是的,Hong Kong Weather Information 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Hong Kong Weather Information 支持哪些平台?
Hong Kong Weather Information 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hong Kong Weather Information?
由 Steven Ho(@stevenho1394)开发并维护,当前版本 v1.0.0。