powered by
Retrieve and parse timeseries data from the Thingspeak API for specific PurpleAir sensors.
Dates can be anything that is understood by MazamaCoreUtils::parseDatetime() including any of the following recommended formats:
MazamaCoreUtils::parseDatetime()
"YYYYmmdd"
"YYYY-mm-dd"
"YYYY-mm-dd HH:MM:SS"
pat_createNew( id = NULL, label = NULL, pas = NULL, startdate = NULL, enddate = NULL, timezone = NULL, baseUrl = "https://api.thingspeak.com/channels/", verbose = FALSE )
PurpleAir sensor 'deviceDeploymentID'.
PurpleAir sensor 'label'.
PurpleAir Synoptic pas object.
Desired UTC start time (ISO 8601) or POSIXct.
POSIXct
Desired UTC end time (ISO 8601) or POSIXct.
Timezone used to interpret start and end dates.
Base URL for Thingspeak API.
Logical controlling the generation of warning and error messages.
A PurpleAir Timeseries pat object.
pat_downloadParseRawData
# NOT RUN { library(AirSensor) pat <- pat_createNew( label = "Seattle", pas = example_pas, startdate = 20180701, enddate = 20180901 ) pat_multiPlot(pat) # }
Run the code above in your browser using DataLab