projects
/
smartapps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update circadian-daylight.groovy
[smartapps.git]
/
third-party
/
circadian-daylight.groovy
diff --git
a/third-party/circadian-daylight.groovy
b/third-party/circadian-daylight.groovy
index c67053f6f77a9368b3f0adae36274a7411e189b5..d5100d553183abf974508236b8d10ce39037d52b 100755
(executable)
--- 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, "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()
}