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

index c67053f6f77a9368b3f0adae36274a7411e189b5..d5100d553183abf974508236b8d10ce39037d52b 100755 (executable)
@@ -112,7 +112,8 @@ private def initialize() {
     subscribe(location, "sunrise", modeHandler)
     schedule("0 */15 * * * ?", modeHandler)
     subscribe(app,modeHandler)
     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()
 }
     // rather than schedule a cron entry, fire a status update a little bit in the future recursively
     scheduleTurnOn()
 }