Update circadian-daylight.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Sat, 10 Aug 2019 17:28:43 +0000 (10:28 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Sat, 10 Aug 2019 17:28:43 +0000 (10:28 -0700)
third-party/circadian-daylight.groovy

index d5100d5..c67053f 100755 (executable)
@@ -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()
 }