Update turn-on-by-zip-code.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Wed, 7 Aug 2019 01:37:28 +0000 (18:37 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Wed, 7 Aug 2019 01:37:28 +0000 (18:37 -0700)
official/turn-on-by-zip-code.groovy

index c184084..5747876 100644 (file)
@@ -49,7 +49,7 @@ def initialize() {
 }
 
 def scheduleNextSunset(date = null) {
-    def s = getSunriseAndSunset(zipCode: zipCode1, sunsetOffset: getSunsetOffset(), date: date)
+    /*def s = getSunriseAndSunset(zipCode: zipCode1, sunsetOffset: getSunsetOffset(), date: date)
     def now = new Date()
     def setTime = s.sunset
     log.debug "setTime: $setTime"
@@ -67,7 +67,8 @@ def scheduleNextSunset(date = null) {
 
         log.info "scheduling sunset handler for $setTime"
         schedule(setTime, sunsetHandler)
-    }
+    }*/
+    // schedule("someTime", sunsetHandler)
 }
 
 def sunsetHandler() {