Commit Graph
91 Commits
Author SHA1 Message Date
Tobias Lindberg 78cf8850b5 adjusting allow_list.json example.. /command/wake_up to /wake_up 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
Tobias Lindberg 92fdfc45fe bumping new version v1.3.1
updating CHANGELOG
2021-03-23 11:09:00 +01:00
Tobias Lindberg 6702797da7 Merge pull request #19 from gaussmeter/bug-18
handle Null -> Bool
2021-03-21 15:55:07 +01:00
Tobias Lindberg 3fa6d9bc55 adding url to badges
adding license badge
2021-03-18 10:54:05 +01:00
Tobias Lindberg 8c4bbda43b bumping new version v1.3.0
updating CHANGELOG
2021-03-17 08:27:43 +01:00
Tobias Lindberg a2f3d46062 Merge pull request #17 from tobiasehlert/bug-14
adding mqtt sleep time before doing disconnect
resolves #14
2021-03-17 08:23:40 +01:00
Tobias Lindberg 48ef001406 bumping new version v1.2.3
updating CHANGELOG
2021-03-16 15:36:38 +01:00
Tobias Lindberg e13f5cf0a7 bump go mod version from 1.15 to 1.16 2021-03-16 15:36:20 +01:00
Tobias Lindberg a5bda76a93 adding mqtt sleep time before doing disconnect 2021-03-16 15:19:23 +01:00
Tobias Lindberg 683c29c6f1 adding probot for stale and no-response 2021-03-16 15:05:39 +01:00
Tobias Lindberg 9cbb2fa244 Merge pull request #12 from tobiasehlert/dependabot/docker/golang-1.16.2
Bump golang from 1.16.0 to 1.16.2
2021-03-16 09:42:47 +01:00
Tobias Lindberg 5273955b15 bumping new version v1.2.2
updating CHANGELOG
2021-03-11 23:48:58 +01:00
Tobias Lindberg 2d2df18013 using c.Request.RequestURI in logstring 2021-03-11 23:15:25 +01:00
Tobias Lindberg 274ce3902b updating CHANGELOG with unreleased entry 2021-03-09 13:18:17 +01:00
Tobias Lindberg f96dcfa4b1 Merge pull request #7 from tobiasehlert/dependabot/go_modules/github.com/lib/pq-1.10.0
Bump github.com/lib/pq from 1.9.0 to 1.10.0
2021-03-09 13:01:16 +01:00
Tobias Lindberg 7d2f2e962b bumping new version v1.2.1
updating CHANGELOG
2021-03-02 19:55:31 +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 0676323487 bumping new version v1.2.0
updating CHANGELOG
2021-03-02 14:43:44 +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 22f200f391 Updating README
adding yaml formatting for readability
adding table of contents
2021-03-01 11:42:37 +01:00
Tobias Lindberg 6af7392c65 fixing typo in README 2021-02-27 21:03:25 +01:00
Tobias Lindberg e3d18fce6b Merge pull request #3 from ckanoab/fix-docker-compose
Update README.md to fix docker-compose file example
2021-02-20 09:17:29 +01:00
Tobias Lindberg 8878f73e87 Update README.md
adding badges to README
2021-02-18 19:17:39 +01:00
Tobias Lindberg 59935c0eee bumping new version v1.1.1
updating CHANGELOG
2021-02-18 15:31:59 +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 cc8a7d042b bumping new version v1.1.0
updating CHANGELOG
2021-02-18 14:02:33 +01:00
Tobias Lindberg b91c2888f9 Merge pull request #2 from tobiasehlert/dependabot/docker/golang-1.16.0
Bump golang from 1.15.8 to 1.16.0
2021-02-18 13:44:22 +01:00
Tobias Lindberg c80c3c36c7 removing comment of golang version 2021-02-18 13:32:52 +01:00
Tobias Lindberg 3cc6f8eb98 adding dependabot for gomod and docker
micro build workflow change
2021-02-18 13:25:55 +01:00
Tobias Lindberg 233e6f4a16 use go mod in Dockerfile 2021-02-18 13:06:58 +01:00
Tobias Lindberg bf0f549f82 adding go.mod and go.sum 2021-02-18 12:05:53 +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 35a41dc49a Create codeql-analysis.yml 2021-02-15 21:37:26 +01:00
Tobias Lindberg 7e4f9e4c8e bumping new version v1.0.2 updating CHANGELOG 2021-02-15 19:31:22 +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 d525fa9c27 GitHub actions workflow tag-sha removal 2021-02-15 15:39:37 +01:00
Tobias Lindberg b101d7fdc4 bumping new version v1.0.1
updating CHANGELOG
2021-02-15 15:28:27 +01:00
Tobias Lindberg add6f25894 missing tzdata package in Dockerfile 2021-02-15 15:13:43 +01:00
Tobias Lindberg a81b21d65f adding root endpoint to README 72fcb1a158 2021-02-15 15:07:27 +01:00
Tobias Lindberg fa0fafcaf1 adding Traefik stripprefix flags to README 2021-02-15 14:54:39 +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 21d2db0b67 initial release of TeslaMateApi
adding CHANGELOG
2021-02-15 13:33:08 +01:00
Tobias Lindberg fab5510e5d Merge branch 'main' of https://github.com/tobiasehlert/teslamateapi into main 2021-02-15 13:13:06 +01:00
Tobias Lindberg 4827fa359e updating README with two badges 2021-02-15 13:12:56 +01:00
Tobias Lindberg 9040437618 Merge pull request #1 from tobiasehlert/dependabot/github_actions/actions/cache-v2.1.4
Bump actions/cache from v2 to v2.1.4
2021-02-15 12:20:40 +01:00
Tobias Lindberg bc1eae087e adding github workflow for build of docker and dependabot 2021-02-15 12:14:36 +01:00
Tobias Lindberg d5c7e5ec4d adding expose flag to Dockerfile 2021-02-15 09:12:46 +01:00
Tobias Lindberg e2abbca2d3 minor changes is Dockerfile and README 2021-02-15 09:08:35 +01:00
Tobias Lindberg 2c65ed190b adding Dockerfile to repo 2021-02-14 17:19:13 +01:00
Tobias Lindberg 15025c333d changing port to match golang binary port 2021-02-14 17:04:02 +01:00
Tobias Lindberg 7ec232ca94 updating README with more docker-compose things 2021-02-13 18:26:36 +01:00
Tobias Lindberg d35215199e updating README with env-vars and docker-compose info 2021-02-13 17:24:39 +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
Tobias Lindberg 28c9175dbe formatting time of database in UTC to user-set timezone 2021-02-09 20:30:10 +01:00
Tobias Lindberg d209ada0b2 changing MQTT_HOST default value 2021-02-09 13:37:09 +01:00
Tobias Lindberg a6c449f69d adding endpoint for mqtt status
adding redirect on valid car to status endpoint
2021-02-09 12:22:58 +01:00
Tobias Lindberg e41ad3e504 moving globalsettings below ping endpoint 2021-02-09 10:41:21 +01:00
Tobias Lindberg 53dfc29d73 updating disclaimer a little 2021-02-09 10:39:09 +01:00
Tobias Lindberg e0dae7f524 adding disclaimer regarding token not being accessible 2021-02-09 10:36:22 +01:00
Tobias Lindberg 717a8a3dfc adding endpoint for globalsettings 2021-02-09 10:30:57 +01:00
Tobias Lindberg d8a8fc3f55 adding cars name to Car struct 2021-02-09 09:53:58 +01:00
Tobias Lindberg 91a94f001e adding endpoint /cars/<CarID>/updates 2021-02-09 09:44:14 +01:00
Tobias Lindberg 31dcb4bbce initial commit of /cars
updated README
2021-02-09 09:37:44 +01:00
Tobias Lindberg ecb60f7a49 Initial commit 2021-02-09 08:45:56 +01:00