From c4bf81474ad318f70d14df9934d242c281df139b Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sun, 4 Aug 2019 18:37:50 -0700 Subject: [PATCH] Update loft.groovy --- third-party/loft.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/third-party/loft.groovy b/third-party/loft.groovy index 0265af3..4e41ab9 100755 --- a/third-party/loft.groovy +++ b/third-party/loft.groovy @@ -243,7 +243,8 @@ def webhook(map) { private is_daytime() { - def data = getWeatherFeature("astronomy") + return true + /*def data = getWeatherFeature("astronomy") def sunset = "${data.moon_phase.sunset.hour}${data.moon_phase.sunset.minute}" def sunrise = "${data.moon_phase.sunrise.hour}${data.moon_phase.sunrise.minute}" def current = "${data.moon_phase.current_time.hour}${data.moon_phase.current_time.minute}" @@ -252,7 +253,7 @@ private is_daytime() { } else { return false - } + }*/ } private presense_is_after(people, presence, minutes) { -- 2.34.1