Adjusted illuminance value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dreaded_X 2022-11-24 20:49:20 +01:00
parent 00f623ab45
commit 10351018c0
Signed by: Dreaded_X
GPG Key ID: 76BDEC4E165D8AD9

View File

@ -31,9 +31,10 @@ type DarknessPayload struct {
func NewLightSensor(info Info, client paho.Client) *lightSensor {
l := &lightSensor{info: info}
// First tune: 15 000 - 16 000
l.minValue = 15000
l.maxValue = 18000
// 1: 15 000 - 16 000 (Turns on to late)
// 2: 22 000 - 30 000
l.minValue = 22000
l.maxValue = 30000
l.timeout = 5 * time.Minute
l.timer = time.NewTimer(l.timeout)