formating

This commit is contained in:
Hristo Jelev
2020-04-30 01:23:17 +03:00
parent 4c5c2c4a20
commit 50d8c44e19

View File

@@ -26,13 +26,14 @@ Then install this module needed for the script:
$ pip install paho-mqtt
```
Copy rpi-cpu2mqtt.py and config.py.example to a folder of your choise (I am using ```/home/pi/scripts/``` ).
Rename ```config.py.example``` to ```config.py``` and populate the needed variables (MQTT host, user, password and main topic).
Copy ```rpi-cpu2mqtt.py``` and ```config.py.example``` to a folder of your choise (I am using ```/home/pi/scripts/``` ).
Rename ```config.py.example``` to ```config.py```
# Configuration
In config.py you can choose what messages are send and what is the delay between them.
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.
This is the default configuration:
```