Description Usage Arguments Examples
retrieve settings of a device
retrieve statuses of a device
retrieve readings of a device
1 2 3 4 5 | zc_settings(token = NULL, sn = NULL, start_time = NULL, end_time = NULL)
zc_statuses(token = NULL, sn = NULL, start_time = NULL, end_time = NULL)
zc_readings(token = NULL, sn = NULL, start_time = NULL, start_mrid = NULL)
|
token |
(required) authorization token as returned by zc_token |
sn |
(required) the serial number for the device |
start_time |
Return data with timestamps greater or equal start_time. Specify start_time in UTC seconds, e.g. 1579474800)' |
end_time |
Return data with timestamps smaller or equal end_time. Specify end_time in UTC seconds, , e.g. 1579474800))' |
start_mrid |
Return data with mrids greater or equal start_mrid. This can be user to query data that has not been received yet, see guidelines. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
zc_settings(token = "yourtoken",
sn = "z6-00033",
start_time = as.numeric(as.POSIXct(Sys.Date(), origin = "1970-01-01")))
## End(Not run)
## Not run:
zc_statuses("yourtoken", sn = "z6-00033",
start_time = as.numeric(as.POSIXct(Sys.Date(), origin = "1970-01-01")))
## End(Not run)
## Not run:
zc_readings("yourtoken", sn = "z6-00033",
start_time = as.numeric(as.POSIXct(Sys.Date(), origin = "1970-01-01")))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.