Skip to content

Commit dbc016b

Browse files
authored
Update wattvision-manager.groovy
1 parent 60756e6 commit dbc016b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: smartapps/smartthings/wattvision-manager.src/wattvision-manager.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def wattvisionURL(senorId, startDate, endDate) {
161161
}
162162

163163
def diff = endDate.getTime() - startDate.getTime()
164-
if (diff > 259200000) { // 3 days in milliseconds
164+
if (diff > 10800000) { // 3 hours in milliseconds
165165
// Wattvision only allows pulling 3 hours of data at a time
166166
startDate = new Date(hours: endDate.hours - 3)
167167
}

0 commit comments

Comments
 (0)