projects
/
smartapps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
254e316
)
Update loft.groovy
author
Seyed Amir Hossein Aqajari
<amiraj.95@uci.edu>
Mon, 5 Aug 2019 01:37:50 +0000
(18:37 -0700)
committer
GitHub Enterprise
<noreply@github.uci.edu>
Mon, 5 Aug 2019 01:37:50 +0000
(18:37 -0700)
third-party/loft.groovy
patch
|
blob
|
history
diff --git
a/third-party/loft.groovy
b/third-party/loft.groovy
index 0265af3f087fdbfa74052844bc99308b5df2042f..4e41ab9675523a8ef47d225058338ef4884b2d9b 100755
(executable)
--- 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) {