From: Seyed Amir Hossein Aqajari Date: Sat, 10 Aug 2019 21:16:22 +0000 (-0700) Subject: Update turn-on-by-zip-code.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=10c3d396110fe193e61f6efc0a85be5b431702bf;p=smartapps.git Update turn-on-by-zip-code.groovy --- 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() {