From 185f668ca8a56ba346404e93a06eec24ad01b028 Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Fri, 1 Dec 2017 20:54:16 +0100 Subject: [PATCH] too many `e`s are not healthy --- tools/monitor/README.md | 25 ----------------- tools/{monitor => monitr}/Dockerfile | 0 tools/monitr/README.md | 28 ++++++++++++++++++++ tools/{monitor/analyze.R => monitr/analyz.R} | 0 tools/{monitor => monitr}/crontab | 0 tools/{monitor => monitr}/get-boxes.R | 0 tools/{monitor => monitr}/get-counts.R | 0 7 files changed, 28 insertions(+), 25 deletions(-) delete mode 100644 tools/monitor/README.md rename tools/{monitor => monitr}/Dockerfile (100%) create mode 100644 tools/monitr/README.md rename tools/{monitor/analyze.R => monitr/analyz.R} (100%) rename tools/{monitor => monitr}/crontab (100%) rename tools/{monitor => monitr}/get-boxes.R (100%) rename tools/{monitor => monitr}/get-counts.R (100%) diff --git a/tools/monitor/README.md b/tools/monitor/README.md deleted file mode 100644 index f8f3303..0000000 --- a/tools/monitor/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# 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 -```bash -# build -docker build --tag osem-monitor . - -# run -docker run -v $(pwd)/data:/script/data osem-monitor -``` - -## run manually - -```bash -# install dependencies once -Rscript -e 'install.packages(c("dplyr", "magrittr", "devtools"))' -Rscript -e 'devtools::install_github("noerw/opensensmapR")' - -Rscript --save --restore osem-monitor.R -``` diff --git a/tools/monitor/Dockerfile b/tools/monitr/Dockerfile similarity index 100% rename from tools/monitor/Dockerfile rename to tools/monitr/Dockerfile diff --git a/tools/monitr/README.md b/tools/monitr/README.md new file mode 100644 index 0000000..278650e --- /dev/null +++ b/tools/monitr/README.md @@ -0,0 +1,28 @@ +# 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"))' +Rscript -e 'devtools::install_github("noerw/opensensmapR")' + +Rscript --save --restore get-counts.R +Rscript --save --restore get-boxes.R +``` diff --git a/tools/monitor/analyze.R b/tools/monitr/analyz.R similarity index 100% rename from tools/monitor/analyze.R rename to tools/monitr/analyz.R diff --git a/tools/monitor/crontab b/tools/monitr/crontab similarity index 100% rename from tools/monitor/crontab rename to tools/monitr/crontab diff --git a/tools/monitor/get-boxes.R b/tools/monitr/get-boxes.R similarity index 100% rename from tools/monitor/get-boxes.R rename to tools/monitr/get-boxes.R diff --git a/tools/monitor/get-counts.R b/tools/monitr/get-counts.R similarity index 100% rename from tools/monitor/get-counts.R rename to tools/monitr/get-counts.R