You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
opensensmapR/tools/monitor
noerw 2b8762d52c rename osem_as_sf to st_as_sf.sensebox
for consistency and better integration with sf
7 years ago
..
Dockerfile add aggregated boxes metadata to monitor 7 years ago
README.md add monitor docker container 7 years ago
analyze.R add aggregated boxes metadata to monitor 7 years ago
crontab add aggregated boxes metadata to monitor 7 years ago
get-boxes.R rename osem_as_sf to st_as_sf.sensebox 7 years ago
get-counts.R add aggregated boxes metadata to monitor 7 years ago

README.md

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