tianqi
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese天气预报
Weather Forecast
查询中国地区的天气预报,支持15天及逐小时预报、各种生活指数
Query weather forecasts for China regions, supporting 15-day and hourly forecasts, as well as various living indices
查询命令
Query Commands
shell
undefinedshell
undefined搜索城市编号
Search for city ID
bash scripts/curl.sh 'https://toy1.DOMAIN/search' -G --data-urlencode 'cityname=黄埔'
bash scripts/curl.sh 'https://toy1.DOMAIN/search' -G --data-urlencode 'cityname=黄埔'
获取天气概况 101020100需替换为真实的城市编号
Get weather overview, replace 101020100 with real city ID
bash scripts/curl.sh 'https://d1.DOMAIN/weather_index/101020100.html?_=TIME'
bash scripts/curl.sh 'https://d1.DOMAIN/weather_index/101020100.html?_=TIME'
获取站点位置信息 method=stationinfo&areaid=101020100
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"}'
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'
bash scripts/curl.sh 'https://mpf.DOMAIN/mpf_v3/webgis/minute?lat=<latitude>&lon=<longitude>&_=TIME'
返回字段 values:降水量
Return field values: precipitation
每日天气预报
Daily weather forecast
bash scripts/curl.sh 'https://d1.DOMAIN/weixinfc/101020100.html?_=TIME'
bash scripts/curl.sh 'https://d1.DOMAIN/weixinfc/101020100.html?_=TIME'
返回字段 fa/fb:天气状况代码 fc:最高温度 fd:最低温度 fn:湿度
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'
bash scripts/curl.sh 'https://d1.DOMAIN/wap_180h/101020100.html?_=TIME'
返回字段 ja:天气状况代码 jb:温度 je:湿度 jg:风速 jj:气压
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'
undefinedbash scripts/curl.sh 'https://d1.DOMAIN/dingzhi/101020100.html?_=TIME'
undefined天气状况代码
Weather Condition Codes
yaml
'00': 晴
'01': 多云
'02': 阴
'03': 阵雨
'04': 雷阵雨
'05': 雷阵雨伴有冰雹
'06': 雨夹雪
'07': 小雨
'08': 中雨
'09': 大雨
'10': 暴雨
'11': 大暴雨
'12': 特大暴雨
'13': 阵雪
'14': 小雪
'15': 中雪
'16': 大雪
'17': 暴雪
'18': 雾
'19': 冻雨
'20': 沙尘暴
'21': 小到中雨
'22': 中到大雨
'23': 大到暴雨
'24': 暴雨到大暴雨
'25': 大暴雨到特大暴雨
'26': 小到中雪
'27': 中到大雪
'28': 大到暴雪
'29': 浮尘
'30': 扬沙
'31': 强沙尘暴
'32': 浓雾
'49': 强浓雾
'53': 霾
'54': 中度霾
'55': 重度霾
'56': 严重霾
'57': 大雾
'58': 特强浓雾
'301': 雨
'302': 雪yaml
'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