1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-07-04 06:00:22 +02:00
opensensmapR/tools/monitor
2017-08-24 13:57:46 +02:00
..
analyze.R add aggregated boxes metadata to monitor 2017-08-14 20:02:40 +02:00
crontab add aggregated boxes metadata to monitor 2017-08-14 20:02:40 +02:00
Dockerfile add aggregated boxes metadata to monitor 2017-08-14 20:02:40 +02:00
get-boxes.R add boxes$lastActive distribution to monitor 2017-08-24 13:57:46 +02:00
get-counts.R add aggregated boxes metadata to monitor 2017-08-14 20:02:40 +02:00
README.md add monitor docker container 2017-08-13 16:33:41 +02:00

osem-monitor

Get the state of sensors and measurement counts for later analysis every 10 minutes. The dataframe will reside in ./data/.RData.

Further analysis can be done with the script analyze.R.

docker image

# build 
docker build --tag osem-monitor .

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

run manually

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

Rscript --save --restore osem-monitor.R