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() {