香港天气查询

SKILL生活服务

原名 hk-weather-info

生活服务 未标注权限 许可证不明确
安装这个技能

查询香港当前天气与未来预报,数据来自香港天文台,可了解温度、降雨和天气状况,适合出行前快速查看。

一句话选型结论

按资料字段整理

香港天气查询是生活服务类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类生活服务 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_15292d5a/yjkj-hk-weather-info
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

生活服务
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_15292d5a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量10.5 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

0 项能力
上游给出的能力概览与适用场景
查看香港实时天气查询香港降雨预报出行前了解天气

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
行程与攻略

按目的地和天数排行程。

日常信息查询

查天气、交通、办事信息。

生活事务整理

把琐事整理成清单逐项处理。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在生活服务场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
香港天气查询当前 未标注权限 未标注 未标注 未标注 有
食谱批量下载文件夹 联网访问 GitHub 仓库 28.5 万 Codex、Claude、Cursor 有
食谱创建演示文稿 未标注权限 GitHub 仓库 28.0 万 Codex、Claude、Cursor 有
recipe 备份 sheet AS CSV 联网访问 GitHub 仓库 27.9 万 Codex、Claude、Cursor 有
recipe create Gmail filter 邮件管理 未标注权限 GitHub 仓库 27.8 万 Codex、Claude、Cursor 有
配方观察驱动器变化 联网访问 GitHub 仓库 27.4 万 Codex、Claude、Cursor 有

SKILL.md 全文

10.5 KB
模型实际读到的说明书原文,来自技能仓库

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=<lang>
- Forecast: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=<lang>

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 tc (Traditional Chinese, default), en (English), 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

Default to tc (Traditional Chinese) unless user specifies otherwise. Supported:
- tc — Traditional Chinese (繁體中文) — default
- en — English
- sc — Simplified Chinese (简体中文)

Store as HK_WEATHER_INFO_LANG. Default is tc if not set.

Step 2: Workflow

(a) Current weather report

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 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=<HK_WEATHER_INFO_LANG>

The API returns JSON with:
- generalSituation — general weather situation
- forecastDesc — forecast description
- outlook — outlook
- forecastPeriod — string (wind direction letters, NOT an array). Use forecastDesc for the human-readable forecast text.
- 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.

Step 3: 1-Minute Average Temperature (CSV)

After completing Steps 1 and 2, fetch the latest 1-minute average temperature from HKO CSV.

> Reference: references/1min-temp-csv.md — actual column names, alias mapping, gotchas.

(a) Determine CSV URL

Based on HK_WEATHER_INFO_LANG:

Language CSV URL
en https://data.weather.gov.hk/weatherAPI/hko_data/regional-weather/latest_1min_temperature.csv
tc https://data.weather.gov.hk/weatherAPI/hko_data/regional-weather/latest_1min_temperature_uc.csv
sc https://data.weather.gov.hk/weatherAPI/hko_data/regional-weather/latest_1min_temperature_sc.csv
any other value Do not fetch CSV

(b) Download with retry

  • Attempt to download the CSV via curl (or urllib).
  • Retry at most 2 times if download fails (network error, timeout, empty response).
  • If all retries fail, skip the 1-minute temperature — do not block the rest of the weather output.

(c) Extract temperature

The CSV column names vary by language. Actual column names observed:

Language Place column Temperature column
tc 自動氣象站 氣溫(攝氏)
en Automatic Weather Station Air Temperature(degree Celsius)
sc (similar Chinese names) (similar Chinese names)

The CSV starts with a UTF-8 BOM (\ufeff) — strip it before parsing or the first column key will be malformed.

The CSV contains ~39 automatic weather stations with specific station names (e.g. 荃灣可觀, 赤鱲角, 京士柏), not district names. When matching regions:
- If HK_WEATHER_INFO_REGION is set: try direct partial match first, then try English-to-Chinese alias mapping (e.g. "Tsuen Wan" → 荃灣, "Central" → 中環). Use the first matched station's temperature.
- If HK_WEATHER_INFO_REGION is not set or no match found: compute the average of all stations' temperature values and present it as the 1-minute average temperature of Hong Kong overall.

(d) Append to output

If a 1-minute average temperature was successfully obtained, append it to the reply:

TC output:

🕒 1分鐘平均氣溫:XX°C([地區名稱 / 全港平均])

EN output:

🕒 1-Min Avg Temp: XX°C ([Region Name / HK Average])

SC output:

🕒 1分钟平均气温:XX°C([地区名称 / 全港平均])

Output Format

When lang=tc (default), the HKO API returns all text fields in Traditional Chinese. Use Chinese labels for consistency:

Current Weather (TC)

🇭🇰 香港天氣 [地區]

🌡️ 氣溫:XX°C(測站名稱)
💧 濕度:XX%
🌧️ 雨量:XXmm(測站名稱)
☀️ 紫外線指數:XX(如有)

⚠️ 生效警告:[警告內容 / 無]
🕐 更新時間:<updateTime>

Forecast (TC)

📅 天氣預測

📋 概況:<generalSituation>

📅 今日:<forecast> | 溫度:<tempRange>°C | 濕度:<rhRange>%
📅 明日:<forecast> | 溫度:<tempRange>°C | 濕度:<rhRange>%

🔮 展望:<outlook>

🕐 更新時間:<updateTime>

When lang=en, use English labels:

🌤️ Hong Kong Weather [Region if set]
Temperature: XX°C (Station Name)
Humidity: XX%
...
Forecast: <forecastDesc>

Timezone & Date Handling

Always check system time first. Run date '+%Y-%m-%d %H:%M:%S %Z' and convert to HKT (UTC+8) before responding. Never assume the date from conversation context or system prompt timestamps. The conversation may span multiple days.

No API key required. HKO OpenData is free and open.

Dependencies

  • Python 3.10+ stdlib only (urllib, json, datetime)

Script

scripts/hk_weather.py — CLI client with 10-min file cache. Default language is tc (Traditional Chinese).

python3 scripts/hk_weather.py                          # General HK, Traditional Chinese (default)
python3 scripts/hk_weather.py --region "Tsuen Wan"     # Regional, TC
python3 scripts/hk_weather.py --lang en                 # English output
python3 scripts/hk_weather.py --action current          # Current only
python3 scripts/hk_weather.py --action forecast         # Forecast only

Common Pitfalls

  1. Default language is TC — The script defaults to --lang tc. All output (including labels) should be in Traditional Chinese unless user specifies --lang en or --lang sc. The HKO API returns Chinese text fields when lang=tc, so output labels must also be in Chinese for consistency.
  2. No API key needed — HKO OpenData is free and open
  3. Rate limiting — respectful polling, cache results for 10-15 minutes
  4. Regional name matching — use partial case-insensitive match. Some station names differ from district names
  5. UV index — may be null at night or on cloudy days
  6. Warning message — may be empty string if no warnings active
  7. Forecast language — the lang parameter affects all text fields
  8. Rainfall entries may lack value key — always check "value" in matched before accessing. Some stations report empty/missing rainfall data differently.
  9. forecastPeriod is a string, not an array — the flw API returns forecastPeriod as a string (wind direction letters), NOT an array of forecast period objects. Use forecastDesc for the human-readable forecast text.
  10. 1-min CSV has UTF-8 BOM — the HKO CSV files start with \ufeff. Strip before parsing or the first column key will be corrupted. The CSV also uses language-specific Chinese column names (e.g. 自動氣象站, 氣溫(攝氏)), not the generic 地區/溫度 names.
  11. CSV regional matching requires alias mapping — station names in the CSV are specific automatic weather station names (e.g. 荃灣可觀, 赤鱲角), not district names. English region names like "Tsuen Wan" won't directly match Chinese station names — use alias mapping (e.g. "Tsuen Wan" → 荃灣).

Verification Checklist

  • [x] HKO OpenData API used (no API key)
  • [x] Regional filtering implemented
  • [x] Language preference supported (en/tc/sc)
  • [x] Current weather and forecast both fetched
  • [x] Output format defined
  • [x] No external dependencies (Python stdlib only)

Changelog

v1.1.0 — Bug fixes and 1-minute average temperature CSV

  • Fixed warningMessage formatting: HKO API can return a list of warning strings, not just a single string. Now iterates and prints each warning on its own line.
  • Fixed forecastPeriod description in SKILL.md: it's a string (wind direction), not an array. Removed contradictory description.
  • Added Step 3: fetch latest 1-minute average temperature from HKO regional-weather CSV.
  • Supports all 3 languages (en/tc/sc) with separate CSV URLs per language.
  • Retry up to 2 times on download failure.
  • Regional match: extracts temperature for the requested region; otherwise computes HK-wide average.
  • Appended to the end of the weather reply.
  • Fixed match_region to support English→Chinese alias mapping for current weather regional filtering.
  • Fixed humidity unit display: HKO API returns "percent" instead of `"%".

v1.0.0 — Initial release

  • HKO OpenData API (rhrread + flw), regional filtering, multilingual (en/tc/sc), Traditional Chinese default.

常见问题

5 问
答案由本站依据条目字段整理
香港天气查询怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_15292d5a/yjkj-hk-weather-info。安装方式为未标注。装完刷新技能列表或重开客户端。

香港天气查询支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

香港天气查询权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

香港天气查询收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

香港天气查询用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。