Downloads timeseries data for a specific PurpleAir sensor from the ThingSpeak API and parses the content into a dataframe. This function will always return dataframe with the appropriate columns even if no data are returned from ThingSpeak.

pat_downloadParseRawData(
  id = NULL,
  label = NULL,
  pas = NULL,
  startdate = NULL,
  enddate = NULL,
  timezone = NULL,
  baseURL = "https://api.thingspeak.com/channels/"
)

Arguments

id

PurpleAir sensor 'deviceDeploymentID'.

label

PurpleAir sensor 'label'.

pas

PurpleAir Synoptic pas object.

startdate

Desired start time (ISO 8601).

enddate

Desired end time (ISO 8601).

timezone

Timezone used to interpret start and end dates.

baseURL

Base URL for Thingspeak API.

Value

List of type pa_timeseries containing meta and data elements with timeseries metadata and data, respectively.

References

https://www2.purpleair.com/community/faq