STRAITS
Add a new function get_archival_data() to retrieve processed tag archival data. The user can define tag (tag_serial_number) and data aggregation level (summarized or all). The function retrieves relevant data (files) and returns it to the user as a single data frame.
summarized: only return data from whole hours. Drop all other data points. I could easily add support for other steps in aggregation. Are we sure no averaging or similar takes place?
`purrr::list_rbind()` at etn/R/get_archival_data.R:49:3:
! Can't combine `..1$timestamp_utc` <datetime<UTC>> and `..2$timestamp_utc` <character>.
Minimal Viable Product
Postponed/Extend goals
Questions
How to detect if a project has archival data -> Will be useful for get_package(), it'll sometimes need to get achival data, how to know that you need to get it.
Requirements
- Add a new function get_archival_data() to retrieve processed tag archival data.
- The user can define tag (
tag_serial_number) ~~and data aggregation level (summarized or all). ~~ -> users can aggregate themselves for now, if there is demand we can add aggregation functions later on. You'd need to read all the data anyway.
- The function retrieves relevant data (files) and returns it to the user as a single data frame.
STRAITS
summarized: only return data from whole hours. Drop all other data points. I could easily add support for other steps in aggregation. Are we sure no averaging or similar takes place?
duckdb? arrowhttr2::req_progress()to show downloaded bytes.Add aggregation and aggregation argument: via duckdb?need to group by the floor of the datetime, and then aggregate. duckdb is much faster. Let's not take this as extra maintenance for now.limitargument for tests?pathordiranimal_project_codeis case sensitive inetnservice::get_archival_data_uuid()etnservice#154 (comment)Minimal Viable Product
etnservice::get_archival_data_uuid()to OpenCPU productionPostponed/Extend goals
temp_file_paths: not always temporary filesQuestions
How to detect if a project has archival data -> Will be useful for
get_package(), it'll sometimes need to get achival data, how to know that you need to get it.Requirements
tag_serial_number) ~~anddata aggregation level(summarized or all). ~~ -> users can aggregate themselves for now, if there is demand we can add aggregation functions later on. You'd need to read all the data anyway.