fix a bug in git sensor

This commit is contained in:
Hristo
2024-01-27 21:23:00 +02:00
committed by Masoko
parent 81823aa8b7
commit 77c17693a4

View File

@@ -12,12 +12,19 @@ mqtt_topic_prefix = "rpi-MQTT-monitor"
# Uncomment the line bellow to send just one CSV message containing all values (this method don't support HA discovery_messages) # Uncomment the line bellow to send just one CSV message containing all values (this method don't support HA discovery_messages)
# group_messages = True # group_messages = True
# If this is set, then the script will send MQTT discovery messages meaning a config less setup in HA. Only works # If this is set, then the script will send MQTT discovery messages meaning a config less setup in HA.
# when group_messages is not used # Only works when group_messages is not used
discovery_messages = True discovery_messages = True
# Binary sensor that displays when there are updates
git_update = True git_update = True
# Retain flag for published topics
retain = True
# QOS setting for published topics: 0,1,2 are acceptable values
qos = 0
# Random delay in seconds before measuring the values # Random delay in seconds before measuring the values
# - this is used for de-synchronizing message if you run this script on many hosts. # - this is used for de-synchronizing message if you run this script on many hosts.
# - if you want a fixed delay you can remove the randrange function and just set the needed value. # - if you want a fixed delay you can remove the randrange function and just set the needed value.
@@ -25,6 +32,7 @@ git_update = True
# This is the time between sending the individual messages # This is the time between sending the individual messages
sleep_time = 0.1 sleep_time = 0.1
cpu_load = True cpu_load = True
cpu_temp = True cpu_temp = True
used_space = True used_space = True
@@ -34,13 +42,10 @@ sys_clock_speed = False
swap = False swap = False
memory = True memory = True
uptime = True uptime = True
# Enable wifi_signal for unit of measuring % or wifi_signal_dbm for unit of meaning dBm # Enable wifi_signal for unit of measuring % or wifi_signal_dbm for unit of meaning dBm
wifi_signal = False wifi_signal = False
wifi_signal_dbm = False wifi_signal_dbm = False
# this works only on raspbery pi version 5 with stock fan
rpi5_fan_speed = False
# Retain flag for published topics
retain = True
# QOS setting for published topics: 0,1,2 are acceptable values # this works only on raspbery pi version 5 with stock fan
qos = 0 rpi5_fan_speed = False