← Back to Skills Marketplace
stevenho1394

Hong Kong Weather Information

by Steven Ho · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
33
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hk-weather-info
Description
Hong Kong weather information — current conditions, forecasts from HKO (Hong Kong Observatory). Use when user asks about HK weather, temperature, rainfall, o...
README (SKILL.md)

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 — English
  • tc — 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 code
  • uvindex — UV index (if available)
  • updateTime — timestamp
  • warningMessage — active warnings (string)
  • rainstormReminder — rainstorm reminder (string)

Regional filtering: If HK_WEATHER_INFO_REGION is set (not None):

  1. Search temperature array for entry where place matches the region (case-insensitive partial match)
  2. Search rainfall array for entry where place matches the region
  3. 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 situation
  • forecastDesc — forecast description
  • outlook — outlook
  • forecastPeriod — array of forecast periods with forecast, weather, tempRange, rhRange, wind
  • updateTime — 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

  1. No API key needed — HKO OpenData is free and open
  2. Rate limiting — respectful polling, cache results for 10-15 minutes
  3. Regional name matching — use partial case-insensitive match. Some station names differ from district names
  4. UV index — may be null at night or on cloudy days
  5. Warning message — may be empty string if no warnings active
  6. Forecast language — the lang parameter 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)
Usage Guidance
Before installing, expect the skill to contact the Hong Kong Observatory public API and cache public weather responses locally for short-term reuse. No credentials, private data access, or high-impact actions were found in the artifacts.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose is Hong Kong weather information, and the artifacts implement current weather and forecast retrieval from HKO OpenData with region and language options.
Instruction Scope
Runtime instructions are limited to asking for region/language preferences, calling documented HKO endpoints, filtering results, and formatting weather output.
Install Mechanism
The package contains a manifest, markdown instructions, metadata, and one Python helper script; there are no install hooks, dependency installers, or automatic execution paths.
Credentials
The script uses outbound network access to data.weather.gov.hk and a small local cache, which is proportionate for a weather skill. The metadata tag 'requires-sensitive-credentials' appears inconsistent with the artifacts, which state no API key is required and contain no credential handling.
Persistence & Privilege
The helper script creates ~/.hk_weather_cache and stores fetched public weather JSON for about 10 minutes; it does not request elevated privileges, run in the background, or modify unrelated files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hk-weather-info
  3. After installation, invoke the skill by name or use /hk-weather-info
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of HK Weather Info skill. - Provides current weather and local forecasts for Hong Kong using HKO OpenData API. - Supports regional filtering; users can request weather for specific districts. - Multilingual output: English, Traditional Chinese, and Simplified Chinese. - No API key required; free and open data. - Outputs temperature, humidity, rainfall, weather warnings, UV index, and rainstorm reminders. - Presents both current conditions and forecasts in a clear, structured format.
Metadata
Slug hk-weather-info
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 33 downloads so far.

How do I install Hong Kong Weather Information?

Run "/install hk-weather-info" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Hong Kong Weather Information free?

Yes, Hong Kong Weather Information is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Hong Kong Weather Information support?

Hong Kong Weather Information is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Hong Kong Weather Information?

It is built and maintained by Steven Ho (@stevenho1394); the current version is v1.0.0.

💬 Comments