596 Commits

Author SHA1 Message Date
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 v1.0.2 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
v1.0.1
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
v1.0.0
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
dependabot[bot] 7c431ce95a Bump actions/cache from v2 to v2.1.4
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-15 11:15:31 +00: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