Add new features to config file.

This commit is contained in:
shane-powell
2020-11-09 09:57:04 +00:00
parent a82c2055c9
commit 309b098c7c
2 changed files with 4 additions and 2 deletions

View File

@@ -1066,14 +1066,14 @@ Alarm Interval: {:.2f}s
if channel.alarm:
alarm.trigger()
light_level_low = light.get_lux() < 1.0
light_level_low = light.get_lux() < config.get_general().get("light_level_low")
alarm.update(light_level_low)
viewcontroller.update()
viewcontroller.render()
if light_level_low:
if light_level_low and config.get_general().get("black_screen_when_light_low"):
display.display(image_blank.convert("RGB"))
else:

View File

@@ -16,3 +16,5 @@ channel3:
general:
alarm_enable: true
alarm_interval: 2
light_level_low: 4.0
black_screen_when_light_low: false