Loading...
Loading...
Query HK Observatory for real-time weather. Current conditions, 9-day forecast, warnings, and hourly rainfall.
npx skill4agent add ke11/skills hk-weather$ARGUMENTSentcsclangtcdetailstationsforecastwarningrainfallall$ARGUMENTS$ARGUMENTSentcscrain_query$ARGUMENTS落雨下雨會唔會落會不會落有冇雨有沒有雨幾時落雨幾時下雨落雨機會下雨機會降雨雨勢rainrainingrainfallwill it raingoing to rainchance of rainprecipitationforecast$ARGUMENTS預報天氣預測未來天氣9天九天幾天天氣下星期天氣本週天氣下週天氣天氣展望明天天氣後天天氣預計天氣forecast9-day9 daynine daynext week weatherthis week weathertomorrow weatherweather tomorrowweather outlookcoming daysstations$ARGUMENTS氣溫幾度溫度熱唔熱凍唔凍係唔係熱係唔係凍好熱好凍熱嗎凍嗎天氣熱天氣凍現時溫度temperaturehow hothow coldtempdegreescelsiuswarm todaycold todayis it hotis it coldstations$ARGUMENTS紫外線UV曬防曬紫外UV指數uvultravioletuv indexsun protectionsunburnstations$ARGUMENTS濕度潮濕幾濕濕唔濕濕嗎humidityhumidhow humidmoisturewarning$ARGUMENTS颱風台風風球幾號風球掛幾號打風熱帶氣旋風暴強風警告颶風typhoontropical cyclonesignalwind signalt8t3no.8no. 8typhoon signalstorm signalwarning$ARGUMENTS警告有冇警告有沒有警告黃色紅色黑色暴雨警告雷暴霜凍水浸warningalertred rainblack rainyellow rainthunderstorm warningfrost warninghttps://data.weather.gov.hk/weatherAPI/opendata/&waitcurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang={lang}"generalSituationforecastPeriodforecastDescoutlookupdateTimecurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang={lang}"temperature.data[]humidity.data[]rainfall.data[]uvindexiconwarningMessageupdateTimecurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang={lang}" > /tmp/hko_rhrread.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang={lang}" > /tmp/hko_flw.json &
wait
echo "===RHRREAD===" && cat /tmp/hko_rhrread.json && echo ""
echo "===FLW===" && cat /tmp/hko_flw.json && echo ""
rm -f /tmp/hko_rhrread.json /tmp/hko_flw.jsoncurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang={lang}"weatherForecast[]forecastDateweekforecastWeatherforecastMaxtemp.valueforecastMintemp.valueforecastMaxrh.valueforecastMinrh.valueforecastWindPSRForecastIconcurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warnsum&lang={lang}" > /tmp/hko_warnsum.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warningInfo&lang={lang}" > /tmp/hko_warninfo.json &
wait
echo "===WARNSUM===" && cat /tmp/hko_warnsum.json && echo ""
echo "===WARNINGINFO===" && cat /tmp/hko_warninfo.json && echo ""
rm -f /tmp/hko_warnsum.json /tmp/hko_warninfo.jsonwarningInfodetails[]contents[]warningStatementCodesubtypeupdateTimecurl -s "https://data.weather.gov.hk/weatherAPI/opendata/hourlyRainfall.php?lang={lang}"obsTimehourlyRainfall[]automaticWeatherStationvalueunitcurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang={lang}" > /tmp/hko_rhrread.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warnsum&lang={lang}" > /tmp/hko_warnsum.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang={lang}" > /tmp/hko_flw.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang={lang}" > /tmp/hko_fnd.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warningInfo&lang={lang}" > /tmp/hko_warninfo.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/hourlyRainfall.php?lang={lang}" > /tmp/hko_rainfall.json &
wait
echo "===RHRREAD===" && cat /tmp/hko_rhrread.json && echo ""
echo "===WARNSUM===" && cat /tmp/hko_warnsum.json && echo ""
echo "===FLW===" && cat /tmp/hko_flw.json && echo ""
echo "===FND===" && cat /tmp/hko_fnd.json && echo ""
echo "===WARNINGINFO===" && cat /tmp/hko_warninfo.json && echo ""
echo "===RAINFALL===" && cat /tmp/hko_rainfall.json && echo ""
rm -f /tmp/hko_rhrread.json /tmp/hko_warnsum.json /tmp/hko_flw.json /tmp/hko_fnd.json /tmp/hko_warninfo.json /tmp/hko_rainfall.jsoncurl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang={lang}" > /tmp/hko_rhrread.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang={lang}" > /tmp/hko_flw.json &
curl -s "https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang={lang}" > /tmp/hko_fnd.json &
wait
echo "===RHRREAD===" && cat /tmp/hko_rhrread.json && echo ""
echo "===FLW===" && cat /tmp/hko_flw.json && echo ""
echo "===FND===" && cat /tmp/hko_fnd.json && echo ""
rm -f /tmp/hko_rhrread.json /tmp/hko_flw.json /tmp/hko_fnd.json## 香港天氣概況
**更新時間**: {updateTime}
**概況**: {generalSituation}
**預報** ({forecastPeriod}): {forecastDesc}
**展望**: {outlook}generalSituationrhrread.warningMessage## 降雨情況
{if warningMessage: show as highlighted alert}
**更新時間**: {updateTime from rhrread}
**目前降雨**:
{if any rainfall.data[].max > 0:}
| 地點 | 雨量 (mm) |
|------|----------|
| {place} | {max} |
| ... | ... |
{else:}
各區目前無錄得雨量
**今日降雨概率**: {fnd.weatherForecast[0].PSR}
**預報**: {flw.forecastDesc}
**展望**: {flw.outlook}
_資料來源:香港天文台_## Rain Status
{if warningMessage: show as highlighted alert}
**Updated**: {updateTime from rhrread}
**Current Rainfall**:
{if any rainfall.data[].max > 0:}
| Station | Rainfall (mm) |
|---------|---------------|
| {place} | {max} |
| ... | ... |
{else:}
No rainfall currently recorded across stations
**Today's Rain Probability**: {fnd.weatherForecast[0].PSR}
**Forecast**: {flw.forecastDesc}
**Outlook**: {flw.outlook}
_Source: Hong Kong Observatory_rhrreadflwfnd## 目前天氣
**更新時間**: {updateTime}warningMessagerhrread.warningMessage## 香港天氣概況
**更新時間**: {updateTime from rhrread}### 目前天氣
| 地點 | 氣溫 (°C) |
|------|-----------|
| {place} | {value} |
| ... | ... |
**相對濕度**: {humidity place}: {value}%
**降雨**: {list any places with non-zero rainfall}warningMessage### 天氣預報
**預報時段**: {forecastPeriod}
{forecastDesc}
**展望**: {outlook}generalSituation## 9天天氣預報
**更新時間**: {updateTime}
| 日期 | 星期 | 天氣 | 氣溫 (°C) | 濕度 (%) | 風向 | 降雨概率 |
|------|------|------|-----------|---------|------|---------|
| {MM/DD} | {week} | {forecastWeather} | {min}-{max} | {minrh}-{maxrh} | {forecastWind} | {PSR} |
| ... |## 天氣警告詳情
**更新時間**: {updateTime}目前沒有任何天氣警告。warningInfo.details[]### {warningStatementCode} {subtype if present}
{contents joined by newlines}
_更新: {updateTime}_warnsum| 警告 | 狀態 | 發出時間 |
|------|------|---------|
| {name} | {actionCode} | {issueTime} |## 過去一小時雨量
**觀測時間**: {obsTime}
| 站點 | 雨量 (mm) |
|------|----------|
| {automaticWeatherStation} | {value} |
| ... |value0value"M"_資料來源:香港天文台__Source: Hong Kong Observatory_YYYY-MM-DD HH:MM HKT2026-03-22T02:45:00+08:002026-03-22 02:45 HKTYYYYMMDDMM/DDlangcurl -stcYYYY-MM-DD HH:MM HKT