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

index ac71ccb..c184084 100644 (file)
@@ -31,7 +31,7 @@ preferences {
         input "sunsetOffsetValue", "text", title: "HH:MM", required: false
     }
     section("Zip code") {
-        input "zipCode", "text", required: false
+        input "zipCode1", "text", required: false
     }
 }
 
@@ -49,7 +49,7 @@ def initialize() {
 }
 
 def scheduleNextSunset(date = null) {
-    def s = getSunriseAndSunset(zipCode: zipCode, 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"