Update loft.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 5 Aug 2019 01:37:50 +0000 (18:37 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 5 Aug 2019 01:37:50 +0000 (18:37 -0700)
third-party/loft.groovy

index 0265af3..4e41ab9 100755 (executable)
@@ -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) {