powered by
Get the datalog for multiple elements in a project from Consibio APIs.
get_datalog( element_ids_to_fetch = NULL, from_time = NULL, to_time = NULL, interval = NULL, raw = FALSE )
A data frame with the datalog information.
The element ids to fetch (list, Max 25).
list
The from date (POSIXct or numeric).
POSIXct
The to date (POSIXct or numeric).
The interval (optional, in seconds).
If TRUE, return the raw JSON response.
See details in https://api.v2.consibio.com/api-docs/#/default/get_projects__project_id__datalog
if (FALSE) { get_datalog( element_ids_to_fetch = c("{element_id}"), from_time = as.POSIXct("2021-01-01"), to_time = as.POSIXct("2021-01-02") ) }
Run the code above in your browser using DataLab