Updated readme file to reflect new config options

This commit is contained in:
Hristo Jelev
2020-04-30 01:14:06 +03:00
parent b2cfe3077c
commit 7cf51942b5

View File

@@ -30,6 +30,22 @@ Copy rpi-cpu2mqtt.py and config.py.example to a folder of your choise (I am usin
Rename ```config.py.example``` to ```config.py``` and populate the needed variables (MQTT host, user, password and main topic). Rename ```config.py.example``` to ```config.py``` and populate the needed variables (MQTT host, user, password and main topic).
# Configuration
In config.py you can choose what messages are send and what is the delay between them.
This is the default configuration:
```
sleep_time = 0.5
cpu_load = True
cpu_temp = True
used_space = True
voltage = True
sys_clock_speed = True
swap = False
memory = False
```
Test the script. Test the script.
```bash ```bash
$ /usr/bin/python /home/pi/scripts/rpi-cpu2mqtt.py $ /usr/bin/python /home/pi/scripts/rpi-cpu2mqtt.py