From: Seyed Amir Hossein Aqajari Date: Mon, 5 Aug 2019 01:37:50 +0000 (-0700) Subject: Update loft.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c4bf81474ad318f70d14df9934d242c281df139b;p=smartapps.git Update loft.groovy --- 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) {