Open tpemartin opened 2 years ago
airQuality = jsonlite::fromJSON("https://data.epa.gov.tw/api/v2/aqx_p_432?api_key=e8dd42e6-9b8b-43f8-991e-b3dee723a52d&limit=1000&sort=ImportDate%20desc&format=JSON", F)
airQuality[[10]][[16]]$aqi
airQuality = jsonlite::fromJSON("https://data.epa.gov.tw/api/v2/aqx_p_432?api_key=e8dd42e6-9b8b-43f8-991e-b3dee723a52d&limit=1000&sort=ImportDate%20desc&format=JSON", F)
airQuality[[10]][[16]]$aqi
aq = fromJSON("https://data.epa.gov.tw/api/v2/aqx_p_432?api_key=e8dd42e6-9b8b-43f8-991e-b3dee723a52d&limit=1000&sort=ImportDate%20desc&format=JSON", F) aq$records[[16]]$co
airQuality = jsonlite::fromJSON("https://data.epa.gov.tw/api/v2/aqx_p_432?api_key=e8dd42e6-9b8b-43f8-991e-b3dee723a52d&limit=1000&sort=ImportDate%20desc&format=JSON", F) airQuality[["records"]][[16]]$co
Find the latest co level from station '大同' which is the 16the site inside the records.