Load PurpleAir sensor history data

request_sensor_history(
  start_ts,
  end_ts,
  sensor_index,
  api_key,
  average = "60",
  fields = "temperature, humidity"
)

Arguments

start_ts

Start timestamp

end_ts

End timestamp

sensor_index

Sensor index

api_key

API key for PurpleAir

average

Average time in minutes

fields

Fields to be included in the data

Value

A data frame with sensor history data