Update sunrise-sunset.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Tue, 6 Aug 2019 19:48:25 +0000 (12:48 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 19:48:25 +0000 (12:48 -0700)
official/sunrise-sunset.groovy

index 417cce6..3e4fd1f 100755 (executable)
@@ -46,7 +46,7 @@ preferences {
                input "sunsetOffsetDir", "enum", title: "Before or After", required: false, options: ["Before","After"]
        }
        section ("Zip code (optional, defaults to location coordinates)...") {
-               input "zipCode", "text", required: false
+               input "zipCode1", "text", required: false
        }
        section( "Notifications" ) {
         input("recipients", "contact", title: "Send notifications to") {
@@ -86,7 +86,7 @@ def sunriseSunsetTimeHandler(evt) {
 }
 
 def astroCheck() {
-       def s = getSunriseAndSunset(zipCode: zipCode, sunriseOffset: sunriseOffset, sunsetOffset: sunsetOffset)
+       def s = getSunriseAndSunset(zipCode: zipCode1, sunriseOffset: sunriseOffset, sunsetOffset: sunsetOffset)
 
        def now = new Date()
        def riseTime = s.sunrise