Tobias Lindberg
2ff591e1fa
Merge pull request #40 from alecdoconnor/patch-3
...
Update v1_TeslaMateAPICarsCharges.go
2021-05-03 22:16:25 +02:00
Tobias Lindberg
b3b731b0eb
Merge branch 'main' into bug-8
2021-05-03 21:40:39 +02:00
Alec O'Connor
bdbe229a5b
Update v1_TeslaMateAPICarsCharges.go
...
It's possible to have incomplete charges with missing EndDate. These aren't always valid objects either, but they shouldn't prevent the Charges endpoint from providing data.
I believe this can happen when TeslaMate is offline when the charging cycle ends. I am not sure if it's also possible if the vehicle is actively charging.
Feel free to edit this PR, not sure that an empty string is the best option.
2021-05-03 13:34:11 -04:00
Tobias Lindberg
381bcb9164
bumping new version v1.5.0
...
updating CHANGELOG
2021-05-03 19:08:41 +02:00
Alec O'Connor
7693581864
Convert SpeedMax and SpeedAvg in Drive (km->mi)
...
Already implemented in DriveDetails, logic was duplicated exactly in this pull request
2021-05-03 11:43:20 -04:00
Tobias Lindberg
38c0eb74da
bumping new version v1.4.9
...
updating CHANGELOG
2021-05-03 13:49:04 +02:00
Tobias Lindberg
04f617c6ed
bumping new version v1.4.8
...
updating CHANGELOG
2021-04-22 14:57:45 +02:00
Tobias Lindberg
6f60bdc132
bumping new version v1.4.7
...
updating CHANGELOG
2021-04-13 12:53:14 +02:00
Tobias Lindberg
daff4f80ba
Rename V1_TeslaMateAPICarsChargesDetails.go to v1_TeslaMateAPICarsChargesDetails.go
2021-04-12 14:32:28 +02:00
Tobias Lindberg
bfa7b97e5b
bumping new version v1.4.6
...
updating CHANGELOG
2021-04-09 15:03:14 +02:00
Tobias Lindberg
27d09fdd7a
bumping new version v1.4.5
...
updating CHANGELOG
2021-04-06 10:31:05 +02:00
Tobias Lindberg
b700288f85
bumping new version v1.4.4
...
updating CHANGELOG
2021-04-05 19:45:26 +02:00
Tobias Lindberg
66ea4bff89
bumping new version v1.4.3
...
updating CHANGELOG
2021-04-01 11:18:40 +02:00
Tobias Lindberg
65ad3b3b34
removing NullTime from NullSupport.go
...
removing github.com/go-sql-driver/mysql mod
go mod tidy
2021-04-01 10:21:04 +02:00
Tobias Lindberg
050b405d14
bumping new version v1.4.2
...
updating CHANGELOG
2021-03-31 09:57:49 +02:00
Tobias Lindberg
15e96f7dac
bumping new version v1.4.1
...
updating CHANGELOG
2021-03-30 15:18:46 +02:00
Tobias Lindberg
e525958d96
Merge branch 'main' into bug-8
2021-03-25 10:38:40 +01:00
Tobias Lindberg
4f9d533b6a
bumping new version v1.4.0
...
updating CHANGELOG
2021-03-25 09:27:32 +01:00
Tobias Lindberg
b5fff58bcc
in case someone accesses GET command with commands
2021-03-24 14:16:52 +01:00
Tobias Lindberg
b9b1bcdfc1
typo
2021-03-24 14:16:28 +01:00
Tobias Lindberg
cde4a0f3ac
updating version number in code (to 1.3.1)
2021-03-24 13:52:54 +01:00
Tobias Lindberg
7fb964a67f
adjusting user-agent for post action
2021-03-24 13:52:35 +01:00
Leland Sindt
8479e0e36f
defer commandAllowList close.
2021-03-24 13:42:26 +01:00
Leland Sindt
4d4f97ee01
enable COMMANDS_ALLOWLIST
2021-03-24 13:42:26 +01:00
Tobias Lindberg
a060a19f6f
adding documentation to README about commands and authentication
...
fixing typo in errormessage
2021-03-24 13:42:26 +01:00
Tobias Lindberg
17d4cd8ca1
adding the Authorization Bearer support to AuthSupport
2021-03-24 13:42:26 +01:00
Tobias Lindberg
ff442486d6
using http.Method instead of strings
...
changing http.NewRequest error field to _
adding User-Agent header to http request
2021-03-24 13:42:26 +01:00
Tobias Lindberg
1ef9f88088
adding var with API version
2021-03-24 13:42:25 +01:00
Tobias Lindberg
ec69386292
changing command collection to Params instead of c.Request.RequestURI
2021-03-24 13:42:25 +01:00
Tobias Lindberg
b6f502ddd6
merging sql queries
...
enhancing logging
2021-03-24 13:42:25 +01:00
Tobias Lindberg
6340c45d14
adding CommandSupport file
...
related changes in files
2021-03-24 13:42:25 +01:00
Tobias Lindberg
9f7265e210
adding AuthSupport file
...
related changes in files
2021-03-24 13:42:25 +01:00
Tobias Lindberg
97ae4f6cbb
changing from commands path to command
...
moving function checkArrayContainsString
2021-03-24 13:42:25 +01:00
Tobias Lindberg
77a63a5ac7
adding comments
...
enhancement of logging
2021-03-24 13:42:25 +01:00
Tobias Lindberg
c88e0fa6f8
fixing typo and some small things
...
adding README info of commands with documentation
2021-03-24 13:42:25 +01:00
Leland Sindt
876e06d68b
proxy commands to Tesla API
2021-03-24 13:42:24 +01:00
Tobias Lindberg
31031b1618
adding import of github.com/thanhpk/randstr to top..
2021-03-23 09:57:38 +01:00
Tobias Lindberg
cf644cf3ce
Merge branch 'bug-8' of https://github.com/tobiasehlert/teslamateapi into bug-8
2021-03-23 09:50:43 +01:00
Tobias Lindberg
ffb66a714c
Merge branch 'pr/21' into bug-8
2021-03-23 09:48:13 +01:00
Tobias Lindberg
c857ef6e8f
Merge branch 'pr/21' into bug-8
...
adding a little log enhancement
2021-03-23 09:43:16 +01:00
Tobias Lindberg
27c3e62e7b
Merge branch 'main' into bug-8
2021-03-23 09:28:26 +01:00
Leland Sindt
8e68b96d54
handle Null -> Bool
...
https://golang.org/pkg/database/sql/#NullBool
2021-03-21 09:41:24 -05:00
Matt Brittan
18c8464769
make the map!
2021-03-19 07:21:36 +13:00
Matt Brittan
3535cdc404
Refactor MQTT so it connects once to broker and caches messages
2021-03-18 16:31:32 +13:00
Tobias Lindberg
a5bda76a93
adding mqtt sleep time before doing disconnect
2021-03-16 15:19:23 +01:00
Leland Sindt
992fd6070c
defer disconnection to prevent un-managed disconnects
2021-03-16 07:16:21 -05:00
Leland Sindt
55d30a197e
add random string to mqtt clientID to prevent concurrent connections
2021-03-15 21:14:59 -05:00
Tobias Lindberg
2d2df18013
using c.Request.RequestURI in logstring
2021-03-11 23:15:25 +01:00
Tobias Lindberg
4f5c32fa0f
updating traefik configuration example
...
updating README
2021-03-02 19:54:06 +01:00
Tobias Lindberg
91e0fae7a0
rel aed5503e7b regaring path issues
2021-03-02 19:40:09 +01:00