Jon Ziebell
5f2efbc7ba
Fixed #245 - Sensor data is thrown away if any sensor in the set has missing data
2020-02-17 23:21:52 -05:00
Jon Ziebell
786b958086
Added ability to log all external API calls by setting user.debug = 1
2020-02-13 07:34:53 -05:00
Jon Ziebell
ac121dcb74
Fixed #233 - Sync can sometimes miss data
...
Again.
2020-02-13 07:10:41 -05:00
Jon Ziebell
6b9241d0c7
Fixed #239 Historical runtime fails to sync when it reaches point where ecobee has deleted data
2020-02-11 20:45:27 -05:00
Jon Ziebell
5d78e0e12e
Restored timeout from 10s to 60s.
...
Some API calls to ecobee take a while; need to allow for that.
2020-02-10 21:56:24 -05:00
Jon Ziebell
132eb46404
Fixed #233 - Sync can sometimes miss data
...
Now populating data_begin and data_end. Will use these more in the GUI for form validation.
2020-02-09 21:22:54 -05:00
Jon Ziebell
74f0d09559
Reduced timeout to third party APIs from 60s to 10s
2020-02-08 14:07:34 -05:00
Jon Ziebell
64c12e6da1
Fixed null values in tinyint(1) fields returning false
2020-02-08 14:07:14 -05:00
Jon Ziebell
73139b47a8
Condition Sentry reporting on whether or not the configuration is present.
...
Better for people forking the project.
2020-02-08 14:06:34 -05:00
Jon Ziebell
882dec840e
Don't store sensor data if temperature/occupancy are null
2020-02-08 11:21:31 -05:00
Jon Ziebell
846eb9bb93
Fixed first sync producing errors due to settings overwriting each other.
2020-02-03 22:16:29 -05:00
Jon Ziebell
316e06fe21
Fixed issue where runtime->sync() ran without updating sync status.
...
Happened for users who were connected but had no active thermostats.
2020-02-03 20:17:58 -05:00
Jon Ziebell
131fee9442
Resolved issues with down notification.
2020-01-31 20:00:01 -05:00
Jon Ziebell
a6564305b0
Fixed #229 and #90 .
...
Loading now doesn't break if the sync fails, and as a bonus that made it trivial to display whether or not ecobee is down.
2020-01-29 22:39:05 -05:00
Jon Ziebell
5cb676970c
Significantly improved data downloading.
2020-01-28 18:39:07 -05:00
Jon Ziebell
8054a10329
Only report exceptions on live
2020-01-28 18:38:08 -05:00
Jon Ziebell
225a517907
Fixed #216 - Time is sometimes off by an hour
...
Long story...
2020-01-22 20:40:09 -05:00
Jon Ziebell
c6bc75d0ac
Fixed issue with syncing sensor data.
2020-01-21 22:16:42 -05:00
Jon Ziebell
05b24f858e
Fixed #208 - Can't link Patreon account if you've closed the banner.
...
For good this time.
2020-01-21 21:48:41 -05:00
Jon Ziebell
5e1ee836b7
Fixed API-C - Undefined offset: 0
...
This was happening because I was calling die() in an API call...which preemptively killed the script. The API didn't set some variables and everything broke. Better not to die() anyways so that stuff actually gets logged.
2020-01-20 22:31:52 -05:00
Jon Ziebell
3632c4b8bc
Removed third party API connection errors from Sentry.
2020-01-20 21:45:38 -05:00
Jon Ziebell
5cdff77268
Fixed #224 - Exception: Processing error. Start date is before end date.
...
I never noticed this before because I was syncing very frequently. Now that I'm syncing once per week I started to see this.
2020-01-20 21:40:06 -05:00
Jon Ziebell
dcb15e5ff0
Switched Sentry logging to set api_user_id as a tag for better indexing.
2020-01-20 20:43:09 -05:00
Jon Ziebell
279d97d72f
Fixes API-E. Fixes API-K. Fixes API-J.
...
Cleaned up some logic related to how tokens and refreshing works. Lots of stuff was broken.
2020-01-20 20:36:28 -05:00
Jon Ziebell
5fb835737f
Fixes API-Q - Failing to delete Patreon tokens
2020-01-20 08:07:41 -05:00
Jon Ziebell
c019fddce6
Moved user to it's own section of Sentry logging
2020-01-18 21:54:35 -05:00
Jon Ziebell
c50d64b0d8
Removed hardcoded 'foo' from Sentry API call
2020-01-18 21:38:30 -05:00
Jon Ziebell
64d0a72252
Added logging of API errors to Sentry.
2020-01-18 21:34:32 -05:00
Jon Ziebell
5c64575910
No longer returning unsupported sensors from the API
2020-01-16 18:53:34 -05:00
Jon Ziebell
a7b4c1a55e
Fixed sensor runtime doing way too many queries
2020-01-15 18:17:24 -05:00
Jon Ziebell
a05b2aac60
Fixed #222 - Data download skips a chunk of data every 7 days
2020-01-15 18:16:29 -05:00
Jon Ziebell
1250f63875
Fixing sensors failing to sync if identifiers are in a different format
2020-01-15 08:17:04 -05:00
Jon Ziebell
2e982faba1
Fixed sync failing for users with no sensors.
2020-01-14 21:21:03 -05:00
Jon Ziebell
1288713ad0
Silenced cURL...no more polluted stderr file.
2020-01-13 23:51:54 -05:00
Jon Ziebell
fea2fcd91a
Turning on sensor data syncing
2020-01-12 21:54:23 -05:00
Jon Ziebell
24020e300f
A bunch of changes in preparation for sensor data.
...
The big stuff is done; sending this live to identify any issues early.
2020-01-12 21:27:30 -05:00
Jon Ziebell
e5b1f5538f
Fixed #212 - Server running out of memory when doing global/all comparisons
...
Added chunking to the thermostat group select to reduce memory usage.
2020-01-08 20:43:05 -05:00
Jon Ziebell
08403cedc6
Removing firstConnected as a requirement for unique thermostats.
...
Turns out ecobee is sometimes changing firstConnected (on four thermostats so far, see #203 ). Since this field is no longer reliable, switching to serial number (identifier) only.
2019-12-19 21:15:58 -05:00
Jon Ziebell
65d2de264c
Fixed #199 - Runtime Detail max range error when selecting 30 days
...
Increased the API limit to 31 days and left the GUI limit at 30 days. There are some edge cases where a few extra seconds can get added.
2019-12-17 21:06:58 -05:00
Jon Ziebell
fed0ff43d6
Fixed #197 - Thermostat groups can sometimes get null or invalid data
2019-12-17 07:08:28 -05:00
Jon Ziebell
7adfcb4b34
Fixed #164 - Convert recent activity to chart2
...
Also: Fixed #177 , Fixed #91 , Fixed #86 , Fixed #40 . Big changes.
2019-12-16 21:34:01 -05:00
Jon Ziebell
83122f3daa
Adding schema file for #193 - Database Schema
2019-12-09 09:05:35 -05:00
Jon Ziebell
482d79abe3
Fixed #190 - Daylight savings breaks sync (redux)
2019-11-18 22:03:05 -05:00
Jon Ziebell
48bff35f00
Fixed #186 - Fan and accessory runtime is not populating properly in summary tables
2019-11-14 22:20:46 -05:00
Jon Ziebell
94ae162c6c
Fixed #186 - Fan and accessory runtime is not populating properly in summary tables
...
Forgot the fan.
2019-11-14 21:44:15 -05:00
Jon Ziebell
a8f022cbb8
Fixed #186 - Fan and accessory runtime is not populating properly in summary tables
...
Forgot to update this query to use the new "sum_" prefixed column names.
2019-11-14 21:34:45 -05:00
Jon Ziebell
d0ff64098a
Fixed data download API calls not logging for #180
...
Forgot about the set_headers function in Cora.
2019-11-07 20:28:19 -05:00
Jon Ziebell
f0fe1b1760
Fixed #181 - Connecting to Patreon sits at "Waiting for Patreon..."
...
When I added transactions to everything a while back I neglected to notice that the Patreon initialize echoes some JavaScript and then dies. The die() was rolling back the transaction where the token and stuff got inserted.
2019-11-07 08:38:06 -05:00
Jon Ziebell
f5ff29d45e
New Download Data button for #180
...
Adds a download data button with a somewhat customization date range selector.
2019-11-06 23:04:10 -05:00
Jon Ziebell
a8562b6878
Fixed #178 - Time change and why it sucks: A novel
2019-11-04 20:41:09 -05:00