From 7cf51942b52df8d1e741be22288b13a8ea9eef91 Mon Sep 17 00:00:00 2001 From: Hristo Jelev Date: Thu, 30 Apr 2020 01:14:06 +0300 Subject: [PATCH] Updated readme file to reflect new config options --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 01b51e0..cf2c388 100644 --- a/README.md +++ b/README.md @@ -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). +# 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. ```bash $ /usr/bin/python /home/pi/scripts/rpi-cpu2mqtt.py