First tune to on off value for light sensor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dreaded_X 2022-11-23 22:20:49 +01:00
parent f13ee65ead
commit ca976b1143
Signed by: Dreaded_X
GPG Key ID: 76BDEC4E165D8AD9

View File

@ -31,9 +31,9 @@ type DarknessPayload struct {
func NewLightSensor(info Info, client paho.Client) *lightSensor {
l := &lightSensor{info: info}
// @TODO Two completely random values for now
l.minValue = 8000
l.maxValue = 16000
// First tune: 15 000 - 16 000
l.minValue = 15000
l.maxValue = 18000
l.timeout = time.Minute
l.timer = time.NewTimer(l.timeout)