projects
/
smartapps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update turn-on-before-sunset.groovy
[smartapps.git]
/
official
/
turn-on-before-sunset.groovy
diff --git
a/official/turn-on-before-sunset.groovy
b/official/turn-on-before-sunset.groovy
index 1c8a5db1bf1e1cc0933be44715659aa7b1437e58..74bed7d0be6a2dff8d3a5d893e8db51fd459c423 100644
(file)
--- a/
official/turn-on-before-sunset.groovy
+++ b/
official/turn-on-before-sunset.groovy
@@
-56,12
+56,12
@@
def scheduleTurnOn(sunsetString) {
//def sunsetTime = Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", sunsetString)
//calculate the offset
//def sunsetTime = Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", sunsetString)
//calculate the offset
-
//
def timeBeforeSunset = new Date()
+ def timeBeforeSunset = new Date()
-
//
log.debug "Scheduling for: $timeBeforeSunset"
+ log.debug "Scheduling for: $timeBeforeSunset"
//schedule this to run one time
//schedule this to run one time
- runOnce(
"someTime"
, turnOn)
+ runOnce(
timeBeforeSunset
, turnOn)
}
def turnOn() {
}
def turnOn() {