In this repo you can find all the building blocks for setting up monitoring with environmental sensors and starting an annotation app.
Thanks to https://simonhearne.com/
```sh
wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/os-release
echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt update && sudo apt install -y influxdb
sudo systemctl unmask influxdb.service
sudo systemctl start influxdb
sudo systemctl enable influxdb.service
```
To create a Database in influxDB, default Database name for the application is
$ influx
> CREATE DATABASE <database_name> [WITH [DURATION <duration>] [REPLICATION <n>] [SHARD DURATION <duration>] [NAME <retention-policy-name>]]
sudo apt update
sudo apt install python3
$ sudo apt-get install python3-pip libglib2.0-dev
$ pip3 install -r requirements.txt
hostname -I
<copy the hostname in the .env file>
sudo apt-get install libssl-dev
openssl genrsa 2048 > host.key
chmod 400 host.key
openssl req -new -x509 -nodes -sha256 -days 365 -key host.key -out host.cert
python3 annotation_app.py
python3 ble_central.py
Thanks to https://simonhearne.com/
```sh
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
sudo apt update && sudo apt install -y grafana
sudo systemctl unmask grafana-server.service
sudo systemctl start grafana-server
sudo systemctl enable grafana-server.service
```
```sh
curl -fsSL https://get.docker.com -o get-docker.sh
sudo bash get-docker.sh
touch Dockerfile
touch .dockerignore
docker build .
```