This commit is contained in:
Hristo Jelev
2020-05-06 21:52:02 +03:00
parent 1ac8f32f9d
commit d6a971a6b4
3 changed files with 15 additions and 4 deletions

View File

@@ -45,11 +45,12 @@ Copy ```/src/rpi-cpu2mqtt.py``` and ```/src/config.py.example``` to a folder of
Populate the variables for MQTT host, user, password and main topic in ```config.py```.
You can also choose what messages are send and what is the delay between them.
You can also choose what messages are send and what is the delay (sleep_time is only used for multiple messages) between them.
If you are sending a grouped message and you want to delay the execution of the script you need to use the ```random_delay``` variable which is set to 30 by default.
This is the default configuration:
```
random_delay = randrange(30)
group_messages = True
sleep_time = 0.5
cpu_load = True