1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-21 13:23:57 +01:00
opensensmapR/tools/monitr
2018-09-05 10:27:55 +02:00
..
analyz.R too many es are not healthy 2017-12-01 20:54:16 +01:00
crontab too many es are not healthy 2017-12-01 20:54:16 +01:00
Dockerfile change references to sensebox org 2018-09-05 10:27:55 +02:00
get-boxes.R too many es are not healthy 2017-12-01 20:54:16 +01:00
get-counts.R too many es are not healthy 2017-12-01 20:54:16 +01:00
README.md change references to sensebox org 2018-09-05 10:27:55 +02: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

alias dockr='docker '

# build 
docker build --tag osem-monitr .

# run
docker run -v $(pwd)/data:/script/data osem-monitr

run manually

# install dependencies once
Rscript -e 'install.packages(c("dplyr", "magrittr", "devtools"))'
Rscript -e 'devtools::install_github("sensebox/opensensmapR")'

Rscript --save --restore get-counts.R
Rscript --save --restore get-boxes.R