Public
Edited
Jan 31, 2024
Insert cell
Insert cell
viewof apiKeyInput = Inputs.text({label:"api key"})
Insert cell
Insert cell
Insert cell
gaithersburg_aq = airnow.currentObservationByZipCode("20878")
Insert cell
`\nValues on Date: \n${gaithersburg_aq[0].DateObserved} ${gaithersburg_aq[0].ParameterName}: ${gaithersburg_aq[0].AQI}\n${gaithersburg_aq[1].DateObserved} ${gaithersburg_aq[1].ParameterName}: ${gaithersburg_aq[1].AQI}\n`
Insert cell
Insert cell
t1=airnow.currentObservationByLatLong("39.0974","-77.2387")
Insert cell
`\nValues on Date: \n${t1[0].DateObserved} ${t1[0].ParameterName}: ${t1[0].AQI}\n${t1[1].DateObserved} ${t1[1].ParameterName}: ${t1[1].AQI}\n`
Insert cell
Insert cell
t2 = airnow.historicObservationByLatLong("39.0974","-77.2387","2020-04-08")
Insert cell
`\nValues on Date: \n${t2[0].DateObserved} ${t2[0].ParameterName}: ${t2[0].AQI}\n${t2[1].DateObserved} ${t2[1].ParameterName}: ${t2[1].AQI}\n`
Insert cell
Insert cell
t3 = airnow.historicObservationByZipCode("20878","2020-04-08")
Insert cell
`\nValues on Date: \n${t3[0].DateObserved} ${t3[0].ParameterName}: ${t3[0].AQI}\n${t3[1].DateObserved} ${t3[1].ParameterName}: ${t3[1].AQI}\n`
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more