This package maintains an internal archive base URL which users
can set using setArchiveBaseUrl()
. Alternatively, if an archive of
pre-generated data files is availalbe locally, users can set the location of
this directory withsetArchiveBaseDir()
.
To avoid internet latency, specification of BASE_DIR will always take precedence over specification of BASE_URL. Known base URLs include:
http://data.mazamascience.com/PurpleAir/v1
Package functions that load pre-generated data files download data from this URL. These functions include:
pas_load()
pat_load()
pat_loadLatest()
pat_loadMonth()
sensor_load()
sensor_loadLatest()
sensor_loadMonth()
URL string.
getArchiveBaseUrl
setArchiveBaseUrl
setArchiveBaseDIR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.