Here is example how to use USB-dongle RODOS-5Z with MP707 sensor to control indoor temperature and visualize it with web-based services like Grafana+InfluxDB.
- Configuration on remote host (aka web-server):
- Copy
service/server
to server - Install
docker
- Configure
env
section indocker-compose.yaml
for both servicesgrafana
anddb
- Create services and start them:
docker-compose up -d grafana db
- Okay, now your server is ready to receive data: there is listening
influxdb
-service on port 8086, which recieve data from client andgrafana
-service which visualize that data
- Configuration on Host with RODOS connected:
-
Put udev-rule
99-rodos.rules
to/etc/udev/rules.d
to set correct rights to access the dongle. -
Compile
bmcontrol
or use compiled version. -
Check that
bmcontrol
works normally:
./bmcontrol scan
sensor 1 = ca031761d4daff28
./bmcontrol temp ca031761d4daff28
27.543
-
Copy
service/host
to your host with rodos connected -
Set you sensor id with
SENSOR_ID
var inservice/engine/engine.py
-
Configure
engine
-service indocker-compose.yaml
to be able to connect to database (db
) on remote host -
Create and start service
engine
:docker-compose up -d engine
-
Okay, now your service gets temperature and writes it to InfluxDB on remote host
-
Go to
http://office_temp.your.site:3000
(or whatever you have server configuration is...) and configure Grafana to visualize data from database: