1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-22 23:23:57 +01:00
opensensmapR/tools/monitr/README.md

29 lines
620 B
Markdown
Raw Permalink Normal View History

2017-12-01 20:54:16 +01:00
# osem-monitr
Get the state of sensors and measurement counts for later analysis every 15 minutes.
The dataframes will reside in `./data/.RData`.
Further analysis can be done with the script `analyz.R`.
## docker image
```bash
alias dockr='docker '
# build
docker build --tag osem-monitr .
# run
docker run -v $(pwd)/data:/script/data osem-monitr
```
## run manually
```bash
# install dependencies once
Rscript -e 'install.packages(c("dplyr", "magrittr", "devtools"))'
2018-09-05 10:27:55 +02:00
Rscript -e 'devtools::install_github("sensebox/opensensmapR")'
2017-12-01 20:54:16 +01:00
Rscript --save --restore get-counts.R
Rscript --save --restore get-boxes.R
```