zentra: retrieve settings of a device

Description Usage Arguments Examples

Description

retrieve settings of a device

retrieve statuses of a device

retrieve readings of a device

Usage

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)

Arguments

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.

Examples

 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)

rzentra documentation built on Dec. 21, 2020, 5:07 p.m.