Get data aggregate
get_data_aggregate( system_id = as.numeric(Sys.getenv("TIGO_ID")), datetime_min = Sys.time() - 7 * 24 * 3600, datetime_max = Sys.time(), level = "min", sensors = TRUE, params = c("Pin", "Vin", "Iin", "RSSI"), header = "key", tz = "" )
system_id | ID of the system (integer), (default: as.numeric(Sys.getenv("TIGO_ID"))) |
---|---|
datetime_min | Start datetime of data (default: Sys.time() - 7243600) |
datetime_max | End datetime of data (default: Sys.time()) |
level | "min" (minute ) or "day" (aggregates), default: "min" |
sensors | Whether to include sensor data TRUE/FALSE (default: TRUE) |
params | Type of data to return (default: c("Pin", "Vin", "Iin", "RSSI")) |
header | either "id" or "key" header (default: "key") |
tz | time zone of system (default: "") |
list with data