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 |
|
Tobias Lindberg
|
1afdf2ee71
|
changing logformat
|
2021-03-02 14:41:44 +01:00 |
|
Tobias Lindberg
|
ffffb22974
|
changing logformat
|
2021-03-02 13:58:52 +01:00 |
|
Tobias Lindberg
|
aed5503e7b
|
implementation of versioning in uri
updating README with version info
|
2021-03-02 13:58:06 +01:00 |
|
Tobias Lindberg
|
880d055753
|
adding mqtt cleansession flag
changing to multi-subscribe with list
|
2021-02-18 15:19:47 +01:00 |
|
Tobias Lindberg
|
8326141d27
|
fixing issue with filtering with CarID in SQL and validation
|
2021-02-18 11:56:09 +01:00 |
|
Tobias Lindberg
|
c010fc2a84
|
better logg readability
|
2021-02-18 11:55:21 +01:00 |
|
Tobias Lindberg
|
e8ada9c61f
|
alphabetical ordering of getEnv* functions addition of getEnvAsFloat
renaming of TeslaMateAPIGlobalSettings to TeslaMateAPIGlobalsettings
|
2021-02-18 10:09:36 +01:00 |
|
Tobias Lindberg
|
7e7abc0f0a
|
improving logging with ginMode
renaming init function
|
2021-02-18 09:59:57 +01:00 |
|
Tobias Lindberg
|
893f1f9b4b
|
using DEBUG_MODE to choose display of JSON response in log or not
|
2021-02-18 09:51:58 +01:00 |
|
Tobias Lindberg
|
fb3e35533b
|
improving calling of functions by calling gin inside functions instead
changing mqtt var from c to m
merge of TeslaMateAPICarsID into TeslaMateAPICars
code cleanup
|
2021-02-18 09:50:58 +01:00 |
|
Tobias Lindberg
|
cf15504acf
|
changing logging slightly
|
2021-02-18 09:45:56 +01:00 |
|
Tobias Lindberg
|
5135acd4a2
|
changing TrimBadging from string to NullString
|
2021-02-15 19:11:09 +01:00 |
|
Tobias Lindberg
|
9e063e3d7a
|
fix minor SQL query error
|
2021-02-15 19:10:48 +01:00 |
|
Tobias Lindberg
|
7cc16f6355
|
cleanup of fmt
specifying port to run
|
2021-02-15 14:27:36 +01:00 |
|
Tobias Lindberg
|
c75b6dd319
|
adding env DEBUG_MODE vars for Gin
|
2021-02-15 14:27:02 +01:00 |
|
Tobias Lindberg
|
72fcb1a158
|
adding root endpoint telling API is running
|
2021-02-15 14:25:58 +01:00 |
|
Tobias Lindberg
|
15025c333d
|
changing port to match golang binary port
|
2021-02-14 17:04:02 +01:00 |
|
Tobias Lindberg
|
d7d2ff3fef
|
adding support for more env-vars
updating a little in README
|
2021-02-13 17:24:13 +01:00 |
|
Tobias Lindberg
|
40f27cd902
|
adding endpoints for charges and drives
|
2021-02-13 10:50:09 +01:00 |
|
Tobias Lindberg
|
e0a52fb6d5
|
adding calculation functions with support for null/nil
|
2021-02-12 17:31:02 +01:00 |
|
Tobias Lindberg
|
25a94320ec
|
adding support for null/nil
|
2021-02-12 17:29:05 +01:00 |
|
Tobias Lindberg
|
93f09f0ed7
|
enhancing readability of IDs in json-response
|
2021-02-11 11:11:12 +01:00 |
|