Improve error handling (#195)
* added optional expiry time * optionally use availability messages * exclude git_update from expiry/availability it's running at a different update rate
This commit is contained in:
@@ -28,6 +28,9 @@ language = "en"
|
||||
# Interval in seconds between probes when running the script as a service (--service option)
|
||||
service_sleep_time = 120
|
||||
|
||||
# Let homeassistant mark sensors as unavailable after a given time without updates
|
||||
expire_after_time = 3*service_sleep_time
|
||||
|
||||
# Interval for checking git_update and apt_updates
|
||||
update_check_interval = 3600 # 1 hour
|
||||
|
||||
@@ -103,6 +106,9 @@ cpu_thermal_zone = 'cpu'
|
||||
ext_sensors = False
|
||||
#ext_sensors = [["Housing", "ds18b20", "0014531448ff", -300], ["ext2", "sht21", 0, [-300, 0]]]
|
||||
|
||||
# use availability, i.e. switch sensors to "unavailable" if there are issues reading them
|
||||
use_availability = True
|
||||
|
||||
# output file
|
||||
output_filename = False
|
||||
#output_filename = "/dev/shm/mjpeg/user_annotate.txt"
|
||||
|
||||
Reference in New Issue
Block a user