Install
openclaw skills install hk-weather-infoHong Kong weather information — current conditions, forecasts from HKO (Hong Kong Observatory). Use when user asks about HK weather, temperature, rainfall, or weather forecast.
openclaw skills install hk-weather-infoHong 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).
HKO OpenData API — free, no API key required.
https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=<lang>https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=<lang>| 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) |
Ask user for target region/district. If user refuses or says "general/whole HK", set HK_WEATHER_INFO_REGION = None.
Ask user for language preference. One of:
en — Englishtc — Traditional Chinese (繁體中文)sc — Simplified Chinese (简体中文)Store as HK_WEATHER_INFO_LANG.
Call:
GET https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=<HK_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):
temperature array for entry where place matches the region (case-insensitive partial match)rainfall array for entry where place matches the regionIf no match found or HK_WEATHER_INFO_REGION is None:
Call:
GET https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=<HK_WEATHER_INFO_LANG>
The API returns JSON with:
generalSituation — general weather situationforecastDesc — forecast descriptionoutlook — outlookforecastPeriod — array of forecast periods with forecast, weather, tempRange, rhRange, windupdateTime — timestampRegional filtering: If HK_WEATHER_INFO_REGION is set:
Display today's and tomorrow's forecast by default.
🌤️ 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: <updateTime>
📅 Local Weather Forecast
General Situation: <generalSituation>
Today: <forecast> | <weather> | Temp: <tempRange>°C | Humidity: <rhRange>% | Wind: <wind>
Tomorrow: <forecast> | <weather> | Temp: <tempRange>°C | Humidity: <rhRange>% | Wind: <wind>
Outlook: <outlook>
Last Updated: <updateTime>
lang parameter affects all text fields