Commit 0a43ba4c authored by schneider's avatar schneider
Browse files

grafana: more details

parent 1f3965e7
Pipeline #5422 passed with stage
in 4 minutes and 28 seconds
......@@ -2,10 +2,13 @@
title: IAQ with Grafana
---
- Prepare raspberry pi
- Prepare card10
- Turn on Bluetooth
- Turn on BSEC in BME680 app
- Prepare Raspberry Pi
- Login
- `passwd`
- Configure any network interfaces as needed
- Change the password via `passwd`
- Configure any network interfaces as needed using `rpi-config`
- `sudo apt update`
- `sudo apt upgrade`
- `sudo reboot`
......@@ -16,25 +19,33 @@ title: IAQ with Grafana
- `./menu.sh`
- Let it install dependencies
- Restart when asked
- Edit `/etc/group` and add `pi` to the `docker` group
- Edit `/etc/group` and add `pi` to the `docker` group: `docker:x:995:root,pi`
- Logout
- Login again, run `menu.sh` again
- Ignore error message because of docker version
- Select "Build Stack"
- Select grafana, influxdb, nodered using space
- Enter nodered menu to build addons list
- Add generic ble to list
- Hit enter
- Go to docker commands
- Select start stack
- Enter nodered menu to build addons list with right arrow key
- Press enter
- Add `node-red-contrib-generic-ble` using space
- Hit enter to build `addons_list.yml`
- Hit escape to go back
- Hit enter to start the build
- Go to "Docker Commands"
- Select "Start stack"
- Wait for containers being built
- Press enter
- Press escape
- Pair card10 to system
- Run `bluetoothctl`
- `scan on`
- Enter Bluetooth menu on card10
- `pair CA:4D:10:01:FF:64` (replace with MAC that is shown in bluetooth memnu)
- Wait until something like `[NEW] Device CA:4D:10:XX:XX:XX card10-xxxxxx` appears
- `pair CA:4D:10:XX:XX:XX` (replace with MAC that is shown in bluetooth memnu)
- Type `yes`, hit yes on card10
- `disconnect CA:4D:10:01:FF:64`
- Try again if the pairing fails
- `disconnect`
- `exit`
- Create influx database
......@@ -45,6 +56,7 @@ title: IAQ with Grafana
- `create user "grafana" with password 'supersecure'`
- `grant all on card10 to nodered`
- `grant all on card10 to grafana`
- `exit`
- Configure grafana
- Go to `<IP of your Raspberry Pi>:3000`
......@@ -56,16 +68,19 @@ title: IAQ with Grafana
- User: `grafana`
- Password: `supersecure`
- Method: GET
- Press "Save & test"
- Import [Air-1640540229032.json](Air-1640540229032.json)
- Select the InfluxDB data source you created before
- Press Import
- Add card10 in nodered
- Go to `<IP of your Raspberry Pi>:1880`
- Import [card10-iaq-flow.json](card10-iaq-flow.json)
- Change mac of device to `CA:4D:10:01:FF:64` (same as above)
- Change mac of device to `CA:4D:10:XX:XX:XX` (same as above)
- Set user of influxdb to `nodered`
- Set password of influxdb to `supersecure`
- Deploy flow
- Reboot
- Reboot (takes some time)
- Check that card10 BLE connection goes to "Active"
You should now see data coming in in the grafana dashboard that you created before under `http://<IP of your Raspberry Pi>:3000`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment