From 58790d4dacd6a61b3ba118ce654af5e5003e0f40 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Tue, 6 Aug 2019 12:48:25 -0700 Subject: [PATCH] Update sunrise-sunset.groovy --- official/sunrise-sunset.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/official/sunrise-sunset.groovy b/official/sunrise-sunset.groovy index 417cce6..3e4fd1f 100755 --- a/official/sunrise-sunset.groovy +++ b/official/sunrise-sunset.groovy @@ -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 -- 2.34.1