1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-07-01 01:30:21 +02:00
opensensmapR/tools/monitor
noerw 2b8762d52c rename osem_as_sf to st_as_sf.sensebox
for consistency and better integration with sf
2017-08-25 11:37:03 +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 rename osem_as_sf to st_as_sf.sensebox 2017-08-25 11:37:03 +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