View source: R/things-properties-timeseries.R
things_properties_timeseries | R Documentation |
Get numerical property's historic data binned on a specified time interval (note: the total number of data points should NOT be greater than 1000 otherwise the result will be truncated)
Official documentation: propertiesV2Timeseries
things_properties_timeseries( thing_id, property_id, from = NULL, to = NULL, interval = NULL, desc = NULL, store_token = "option", token = NULL, silent = FALSE )
thing_id |
The id of the thing |
property_id |
The id of the property |
from |
A |
to |
A |
interval |
(numeric) Binning interval in seconds (default: the smallest possible value compatibly with the limit of 1000 data points in the response) |
desc |
(logic) Whether data ordering (by time) should be descending. Default TO |
store_token |
Where your token is stored. If |
token |
A valid token created with |
silent |
Whether to hide or show API method success messages (default |
A tibble showing of time and value for property of given device
## Not run: # Sys.setenv(ARDUINO_API_CLIENT_ID = 'INSERT CLIENT_ID HERE') # Sys.setenv(ARDUINO_API_CLIENT_SECRET = 'INSERT CLIENT_SECRET HERE') create_auth_token() thing_id = "b6822400-2f35-4d93-b3e7-be919bdc5eba" property_id = "d1134fe1-6519-49f1-afd8-7fe9e891e778" things_properties_timeseries(thing_id = thing_id, property_id = property_id, desc = FALSE, interval = 60, from = "2022-08-20") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.