group_message config

This commit is contained in:
Hristo Jelev
2020-05-03 16:39:45 +03:00
parent a2cb0df416
commit da342fa416

View File

@@ -37,6 +37,7 @@ You can also choose what messages are send and what is the delay between them.
This is the default configuration:
```
group_messages = True
sleep_time = 0.5
cpu_load = True
cpu_temp = True
@@ -47,6 +48,8 @@ swap = False
memory = False
```
If the ```group_messages``` is set to true the script will send just one message containing all values (I still haven't made the sensor configuration for this - the one below is for separate messages only)
Test the script.
```bash
$ /usr/bin/python /home/pi/scripts/rpi-cpu2mqtt.py