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