Loading...
Loading...
Query weather forecasts for China regions, supporting 15-day and hourly forecasts, as well as various living indices
npx skill4agent add aahl/skills tianqi# Search for city ID
bash scripts/curl.sh 'https://toy1._DOMAIN_/search' -G --data-urlencode 'cityname=黄埔'
# Get weather overview, replace 101020100 with real city ID
bash scripts/curl.sh 'https://d1._DOMAIN_/weather_index/101020100.html?_=_TIME_'
# Get station location information method=stationinfo&areaid=101020100
bash scripts/curl.sh 'https://d7._DOMAIN_/geong/v1/api' -G --data-urlencode 'params={"method":"stationinfo","areaid":"101020100"}'
# Minute-level weather forecast, need to get latitude and longitude from station information first
bash scripts/curl.sh 'https://mpf._DOMAIN_/mpf_v3/webgis/minute?lat=<latitude>&lon=<longitude>&_=_TIME_'
# Return field values: precipitation
# Daily weather forecast
bash scripts/curl.sh 'https://d1._DOMAIN_/weixinfc/101020100.html?_=_TIME_'
# Return fields fa/fb: weather condition code, fc: maximum temperature, fd: minimum temperature, fn: humidity
# Hourly weather forecast
bash scripts/curl.sh 'https://d1._DOMAIN_/wap_180h/101020100.html?_=_TIME_'
# Return fields ja: weather condition code, jb: temperature, je: humidity, jg: wind speed, jj: air pressure
# Weather warning
bash scripts/curl.sh 'https://d1._DOMAIN_/dingzhi/101020100.html?_=_TIME_''00': Sunny
'01': Partly Cloudy
'02': Overcast
'03': Shower
'04': Thunderstorm
'05': Thunderstorm with Hail
'06': Sleet
'07': Light Rain
'08': Moderate Rain
'09': Heavy Rain
'10': Torrential Rain
'11': Heavy Torrential Rain
'12': Extreme Torrential Rain
'13': Snow Shower
'14': Light Snow
'15': Moderate Snow
'16': Heavy Snow
'17': Blizzard
'18': Fog
'19': Freezing Rain
'20': Sandstorm
'21': Light to Moderate Rain
'22': Moderate to Heavy Rain
'23': Heavy to Torrential Rain
'24': Torrential to Heavy Torrential Rain
'25': Heavy Torrential to Extreme Torrential Rain
'26': Light to Moderate Snow
'27': Moderate to Heavy Snow
'28': Heavy to Blizzard
'29': Floating Dust
'30': Blowing Sand
'31': Severe Sandstorm
'32': Dense Fog
'49': Heavy Dense Fog
'53': Haze
'54': Moderate Haze
'55': Heavy Haze
'56': Severe Haze
'57': Thick Fog
'58': Extreme Thick Fog
'301': Rain
'302': Snow