pa_sensor_history | R Documentation |
Get the historical data for a specific PurpleAir sensor over a time period. This requires a PurpleAir API key with access to historical data, which can be requested.
pa_sensor_history(sensor_index, start_date, end_date, key)
sensor_index |
The numeric PurpleAir sensor index for for the sensor to request |
start_date |
Date the first date to request |
end_date |
Date the last date to request |
key |
A PurpleAir API read key with access to historical data |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.