From 10c3d396110fe193e61f6efc0a85be5b431702bf Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sat, 10 Aug 2019 14:16:22 -0700 Subject: [PATCH] Update turn-on-by-zip-code.groovy --- official/turn-on-by-zip-code.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/official/turn-on-by-zip-code.groovy b/official/turn-on-by-zip-code.groovy index 5747876..99bc6ac 100644 --- a/official/turn-on-by-zip-code.groovy +++ b/official/turn-on-by-zip-code.groovy @@ -68,7 +68,7 @@ def scheduleNextSunset(date = null) { log.info "scheduling sunset handler for $setTime" schedule(setTime, sunsetHandler) }*/ - // schedule("someTime", sunsetHandler) + schedule("someTime", sunsetHandler) } def sunsetHandler() { @@ -76,7 +76,7 @@ def sunsetHandler() { switches.on() // schedule for tomorrow - scheduleNextSunset(new Date() + 1) + //scheduleNextSunset(new Date() + 1) } private getSunsetOffset() { -- 2.34.1