1
0
mirror of https://github.com/beestat/app.git synced 2025-06-03 13:46:54 -04:00

101 Commits

Author SHA1 Message Date
Jon Ziebell
7ffea8ec2d Fixed #273 - Thermostat group temperature profiles overwrite each other
Variable got overwritten with another variable.
2020-05-27 08:27:09 -04:00
Jon Ziebell
4d9e1e660a Made SmartyStreets failures not throw errors for #271
I still need to address the business side of things, though. For now if my subscription runs out or SmartyStreets returns garbage beestat will ignore the error and comparisons just won't work properly. Any issue caused by this will auto-resolve as soon as possible since the API call will retry automatically.
2020-05-19 22:18:04 -04:00
Jon Ziebell
930fbe1c28 Simplified debug_backtrace
This removed arguments (which could contain sensitive data) and also eliminated resources from the trace which failed to json_encode.
2020-03-16 21:15:04 -04:00
Jon Ziebell
b422bd9522 Fixed downloads and patreon connections not working 2020-03-16 20:57:17 -04:00
Jon Ziebell
6ea48160e9 Renamed api_log2 to api_log 2020-03-15 21:09:46 -04:00
Jon Ziebell
e0f901e968 Fixed API log time 2020-03-15 21:06:19 -04:00
Jon Ziebell
997dd6976e Storing seconds instead of milliseconds in new API log 2020-03-15 20:48:18 -04:00
Jon Ziebell
790aaf354e Fixed #265 - Change logging from push to pull
Deceptively simple commit message. This is a massive change that completely reworks the most fundamental part of the API. Not only does it remove the push logging, it also restructures logging to give better insight into what happens during an API call.
2020-03-15 08:12:28 -04:00
Jon Ziebell
c6c4b66083 Added extra info to Sentry API reporting 2020-03-06 20:51:38 -05:00
Jon Ziebell
b740d75760 Stop sending errors to Sentry for anything except for the regular app API user 2020-03-06 07:56:33 -05:00
Jon Ziebell
97acf95180 Fixed off by 10x error on new temperature profile 2020-03-04 20:31:40 -05:00
Jon Ziebell
e2a21f67b0 Temporarily cutting down the chunking on thermostat_group to save memory. 2020-03-04 20:09:13 -05:00
Jon Ziebell
0e495ac134 Temporarily cutting down the chunking on thermostat_group to save memory. 2020-03-04 20:05:34 -05:00
Jon Ziebell
8b57cfc227 Enabled metrics and new profiles for early access 2020-02-28 05:29:24 -05:00
Jon Ziebell
154af5d89f Updated profile generation; added some metrics. 2020-02-27 20:09:11 -05:00
Jon Ziebell
a210487ca6 Fixed metrics using old array if not available 2020-02-27 12:05:16 -05:00
Jon Ziebell
35b80df0a2 Fixed profiles not generating if a group has no thermostats 2020-02-27 09:49:22 -05:00
Jon Ziebell
762cbf2084 Added new thermostat_group profiles to the background sync. 2020-02-27 07:56:35 -05:00
Jon Ziebell
e53a98e456 Fixed #246 - Heat/cool differential alerts show up even if you don't have that system 2020-02-18 20:15:56 -05:00
Jon Ziebell
adfd70c13a Fixed #247 - Primary thermostat missing on Sensor Detail 2020-02-18 18:54:50 -05:00
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