Load PurpleAir sensors history data
request_sensors_history(
nwlat,
selat,
nwlng,
selng,
location_type = 0,
start_ts,
end_ts,
api_key,
average = "60",
fields = "temperature, humidity"
)
A data frame with sensors history data
Code adapted from Callahan J, Martin H, Wilson K, Brasel T, Miller H (2023). AirSensor: Process and Display Data from Air Quality Sensors. R package version 1.1.1, https://CRAN.R-project.org/package=AirSensor.