我已成功从 NOAA API 完全获取历史天气数据,但仅获得最低和最高温度,我如何从 NoAA API 获得湿度
curl -H "token:MY Token" "https://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCND&locationid=ZIP:89119&startdate=2010-05-01&enddate=2010-05-01&units=standard&datatypeid=TMAX&datatypeid=TMIN"
回应:
{
"metadata": {
"resultset": {
"offset": 1,
"count": 2,
"limit": 25
}
},
"results": [
{
"date": "2010-05-01T00:00:00",
"datatype": "TMAX",
"station": "GHCND:USW00023169",
"attributes": ",,0,2400",
"value": 75.0
},
{
"date": "2010-05-01T00:00:00",
"datatype": "TMIN",
"station": "GHCND:USW00023169",
"attributes": ",,0,2400",
"value": 58.0
}
]
}