Skills
在 Duaer 里查香港天气
在 Duaer 里:香港天文台:香港各区当前气温与天气警告,或未来 9 天预报。一次成功查询用 1 额度。
能拿到什么
每条结果含 place、temperatureC、updated、humidityPct、uvIndex、warnings、date、weekday 等字段,并附来源链接。
密钥
调用前先获取 Duaer 密钥.
调用技能
下面这段是给智能体复制的英文技能,和数据市场里的复制内容相同。
---
name: duaer-hk-weather
description: >-
Duaer Hong Kong weather. Hong Kong Observatory: current temperatures and warnings across Hong Kong, or the 9-day forecast.
One successful search uses 1 Duaer credit.
---
# Duaer Hong Kong weather
Duaer Hong Kong weather reads Hong Kong Observatory open data in English, Simplified Chinese, or Traditional Chinese.
## When to use
- Show current Hong Kong temperatures and warnings.
- Plan an outdoor event with the 9-day forecast.
## When not to use
- Weather anywhere else. Use https://skills.duaer.com/weather.md.
- Past weather. Use https://skills.duaer.com/weather-history.md.
## Call
`GET https://api.duaer.com/v1/data/hk-weather?view=current`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `view`.
- `view` — `current` or `forecast`. Default current.
- `language` — Optional. `en`, `zh-Hans`, or `zh-Hant`. Default en.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/hk-weather?view=current` — temperatures now, the Observatory first.
- `GET https://api.duaer.com/v1/data/hk-weather?view=forecast&language=zh-Hans` — the 9-day forecast in Simplified Chinese.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `place`, `temperatureC`, `updated` — station, temperature, and observation time.
- `humidityPct`, `uvIndex`, `warnings` — on the Observatory row.
- `date`, `weekday`, `minTempC`, `maxTempC`, `weather`, `wind`, `rainChance` — on forecast rows.
- `outlook` — the general situation, on the first forecast row.
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/weather.md — Duaer Weather forecast
- https://skills.duaer.com/marine.md — Duaer Marine forecast