Commit Graph

79 Commits

Author SHA1 Message Date
Adrian Kumpf
535be718fc Tweak user agent randomization 2021-03-17 18:29:18 +01:00
Adrian Kumpf
0a2364656d Set another user agent for auth requests 2021-03-16 17:45:37 +01:00
Adrian Kumpf
6d31adba00 Use Mix.Project.config/0 to get version at compile time 2021-03-13 21:06:12 +01:00
Adrian Kumpf
4c9fc7e392 Update user agent used for API requests 2021-03-13 13:14:02 +01:00
Adrian Kumpf
9fee2b5afe Change default auth headers 2021-03-10 19:47:54 +01:00
Adrian Kumpf
1384023bf5 Change default headers to make Tesla WAF happy
Addresses #1369
2021-02-21 10:45:49 +01:00
Adrian Kumpf
2b4d774b06 Change log level for streaming timeouts to debug 2021-02-06 17:32:00 +01:00
Adrian Kumpf
b1991f541e Add support for v3 API tokens in China (#1300)
* Add support for v3 API tokens in China

* Add support for refreshing tokens in China

* Log auth requests without debug output

* Log failed requests to the Owner API
2021-02-06 17:28:29 +01:00
Adrian Kumpf
9ca3830f04 Refresh access tokens with new auth endpoint 2021-01-30 19:20:49 +01:00
Adrian Kumpf
3bb2d3086f Remove support for legacy auth 2021-01-30 18:06:13 +01:00
Adrian Kumpf
b27276b7db Handle unexpected MFA errors 2021-01-03 21:41:32 +01:00
Adrian Kumpf
d825fc1723 Allow to use the legacy authentication API 2020-12-29 15:05:38 +01:00
Adrian Kumpf
bb7df800a5 Allow to enter MFA codes 2020-12-20 22:18:52 +01:00
Adrian Kumpf
bf37134995 Small refactoring 2020-12-19 21:54:36 +01:00
Adrian Kumpf
42ac182b97 Use Tesla client with custom auth middleware 2020-12-19 21:08:10 +01:00
Adrian Kumpf
df6b96b1c8 Implement MFA flow 2020-12-19 21:07:55 +01:00
Ahrr Jay
c104f9975e Fix typo in connection (#1009) 2020-10-14 12:30:43 +02:00
Adrian Kumpf
4b23c8604e Upgrade to Elixir v1.11 2020-10-08 22:17:56 +02:00
Adrian Kumpf
9311cb4171 Create new connection after too many disconnects 2020-07-08 20:01:28 +02:00
Adrian Kumpf
9c74846432 Tweak streaming timeouts 2020-06-29 17:45:27 +02:00
Adrian Kumpf
60631907ef Replace mojito with finch 2020-05-14 14:11:20 +02:00
Adrian Kumpf
9cbc12ab51 Differentiate between vehicle and unknown errors 2020-04-08 11:13:43 +02:00
Adrian Kumpf
71f02dab66 Do not warn if terminating with :normal 2020-04-02 16:32:30 +02:00
Adrian Kumpf
68c32ff2af Use exponential backoff 2020-04-01 19:34:57 +02:00
Adrian Kumpf
cd702765e4 Reconnect in case of a connection error 2020-04-01 13:23:27 +02:00
Adrian Kumpf
38893db700 Prevent that more than one request is made at the same time 2020-03-28 15:52:35 +01:00
Adrian Kumpf
a691784926 Use the Streaming API
Closes #417
2020-03-28 15:52:35 +01:00
Adrian Kumpf
f61315cb10 Implement TeslaFi import
Closes #316
2020-02-07 13:21:05 +01:00
Adrian Kumpf
d301ac86f6 Include customized :tesla_api package 2019-12-15 15:36:26 +01:00