From: Rahmadi Trimananda Date: Sat, 10 Aug 2019 17:28:43 +0000 (-0700) Subject: Update circadian-daylight.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=843f703f336ffecea06e4993ea9f3bb69cff248c;p=smartapps.git Update circadian-daylight.groovy --- diff --git a/third-party/circadian-daylight.groovy b/third-party/circadian-daylight.groovy index d5100d5..c67053f 100755 --- a/third-party/circadian-daylight.groovy +++ b/third-party/circadian-daylight.groovy @@ -112,8 +112,7 @@ private def initialize() { subscribe(location, "sunrise", modeHandler) schedule("0 */15 * * * ?", modeHandler) subscribe(app,modeHandler) - // There seems to be a bug in the Groovy compiler with the following line - //subscribe(location, "sunsetTime", scheduleTurnOn) + subscribe(location, "sunsetTime", scheduleTurnOn) // rather than schedule a cron entry, fire a status update a little bit in the future recursively scheduleTurnOn() }