R/downloadParseTimeseriesData.R
downloadParseTimeseriesData.Rd
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.
downloadParseTimeseriesData( id = NULL, label = NULL, pas = NULL, startdate = NULL, enddate = NULL, timezone = NULL, baseURL = "https://api.thingspeak.com/channels/" )
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. |
List of type pa_timeseries
containing meta
and
data
elements with timeseries metadata and data, respectively.
https://www2.purpleair.com/community/faq