From a25cd5cdc4ca15d8eb233ae7d34b2d345a87010d Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari <amiraj.95@uci.edu> Date: Tue, 6 Aug 2019 13:10:02 -0700 Subject: [PATCH] Update sunrise-sunset.groovy --- official/sunrise-sunset.groovy | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/official/sunrise-sunset.groovy b/official/sunrise-sunset.groovy index 3e4fd1f..f1d88e7 100755 --- a/official/sunrise-sunset.groovy +++ b/official/sunrise-sunset.groovy @@ -71,18 +71,22 @@ def initialize() { subscribe(location, "position", locationPositionChange) subscribe(location, "sunriseTime", sunriseSunsetTimeHandler) subscribe(location, "sunsetTime", sunriseSunsetTimeHandler) - - astroCheck() + + //astroCheck() } def locationPositionChange(evt) { log.trace "locationChange()" - astroCheck() + schedule("someTime", sunriseHandler) + schedule("someTime", sunsetHandler) + //astroCheck() } def sunriseSunsetTimeHandler(evt) { log.trace "sunriseSunsetTimeHandler()" - astroCheck() + schedule("someTime", sunriseHandler) + schedule("someTime", sunsetHandler) + //astroCheck() } def astroCheck() { -- 2.34.1