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.
29 lines
617 B
Markdown
29 lines
617 B
Markdown
7 years ago
|
# 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
|
||
|
```
|