Commit Graph
100 Commits
Author SHA1 Message Date
Tobias Lindberg 0a69730f83 addition of ENCRYPTION_KEY to readme
addition to #141
2022-05-09 10:02:51 +02:00
Tobias LindbergandLeland Sindt 3f9e8c471b supporting TeslaMate encryption of API tokens (#141)
* updating sql of getting data from psql
* adding decrypt of token

Co-authored-by: Leland Sindt <leland@sway.org>
2022-05-08 12:29:25 +02:00
Tobias Lindberg 92f9abef16 bumping new version v1.14.0
updating CHANGELOG
2022-05-08 10:37:00 +02:00
Tobias Lindberg 4d169d8f2b updating go mods 2022-04-28 08:18:29 +02:00
Tobias Lindberg 596d5c68b6 adding two new fields in status endpoint (#148)
- charge_current_request
- charge_current_request_max
2022-03-18 11:39:23 +01:00
Tobias Lindberg bbed9fb676 updating getEnv function log (#156) 2022-03-04 10:10:37 +01:00
Tobias Lindberg a81f80f66b adding graceful shutdown (#146) 2022-02-01 17:16:51 +01:00
Tobias Lindberg 46ce7ad9a9 disabling proxy feature of gin (#145) 2022-02-01 17:16:08 +01:00
Tobias Lindberg ff3470085e adding 404 for not found endpoints (#144) 2022-02-01 17:13:07 +01:00
Tobias Lindberg e2a34ed34c adding gzip compression (#143) 2022-02-01 17:09:18 +01:00
Tobias Lindberg a26475e425 bumping new version v1.13.3
updating CHANGELOG
2022-01-27 00:50:08 +01:00
Tobias Lindberg e5ee21bb44 fixing append of commands to allowList (#142) 2022-01-27 00:45:51 +01:00
Tobias Lindberg abac38f59c bumping new version v1.13.2
updating CHANGELOG
2022-01-21 12:35:25 +01:00
Tobias Lindberg 04691f8e81 Slimming down on the codebase (#134)
* slimming down on one for and using join instead

* doing single query on first query part
removing a couple of if statements due to that

* typo

* simplifying settings endpoints queries

* lowering some var..

* grouping vars

* adding rec to use api key in readme
2022-01-21 12:15:52 +01:00
Tobias Lindberg fae96407bb bumping new version v1.13.1
updating CHANGELOG
2022-01-12 20:13:14 +01:00
Tobias Lindberg b6ce2b89b9 Removing some code smell reported by SonarCloud (#132)
* changing lots of if else to switch in status
* removing logging of user-provided
* removing tons of ifs for a map and a loop
2022-01-11 21:24:31 +01:00
Tobias Lindberg a0e507f199 running go mod tidy 2022-01-07 08:35:39 +01:00
Tobias Lindberg 0ecc66e0e6 adding missing commiter to changelog entry 2022-01-05 23:11:44 +01:00
Tobias Lindberg 3ab6fda405 bumping new version v1.13.0
updating CHANGELOG
2022-01-05 23:07:37 +01:00
Tobias Lindberg e9a83f5504 fixing docker_meta id in build and push step 2022-01-02 14:21:21 +01:00
Tobias Lindberg 52edc14970 removing build_info step and adding if main ignore 2022-01-02 13:50:09 +01:00
Tobias Lindberg 6145fdcb76 adding docker/metadata-action tag for branches 2022-01-02 12:32:55 +01:00
Tobias LindbergandAlec O'Connor 732fc886a2 Feature: response handler (#110)
Co-authored-by: Alec O'Connor <alecdoconnor@users.noreply.github.com>
2021-12-31 12:27:25 +01:00
Tobias Lindberg 05e450538d bumping new version v1.12.1
updating CHANGELOG
2021-12-31 12:02:48 +01:00
Tobias Lindberg 87234d3056 updating CHANGELOG
- linking to contributors
- linking to pull requests
2021-12-31 12:01:40 +01:00
Tobias Lindberg 1cac2e6806 Updating build workflow with enhancements (#131)
* adding edge docker image tag for image based on main branch

* adding GHCR to container repos

* updating build apiVersion during build

* only doing build when certain paths are changed
2021-12-31 10:44:59 +01:00
Tobias Lindberg e7e3005e57 using of BasePath function in output and redirect (#130) 2021-12-29 10:49:24 +01:00
Tobias Lindberg 364fd58d69 bumping new version v1.12.0
updating CHANGELOG
2021-12-28 22:25:32 +01:00
Tobias Lindberg dbb07937ba changing float64 to NullFloat64 on efficiency (#129) 2021-12-28 22:19:05 +01:00
Tobias Lindberg 083b88bc8a bumping new version v1.11.1
updating CHANGELOG
2021-12-23 11:42:00 +01:00
Tobias Lindberg 7e648a498f adding arg for apiVersion based on git release 2021-12-23 11:27:21 +01:00
Tobias Lindberg 5bd67b047d removing stale workflow 2021-12-23 10:58:56 +01:00
Tobias Lindberg 0701e31339 updating build-workflow and Dockerfile
only run on certain branches
2021-12-23 10:58:47 +01:00
Tobias Lindberg 8507392382 bumping new version v1.11.0
updating CHANGELOG
2021-11-08 08:54:48 +01:00
Tobias LindbergandMichael Dyrynda a29eaf0a4d Add support for new endpoints (#113)
* Add support for `set_charging_amps` command (#112)

Per discussion on the timdorr/tesla-api repo https://github.com/timdorr/tesla-api/discussions/455

* removing predefined charge levels

* adding new commands:
- navigation_sc_request
- set_bioweapon_mode
- set_scheduled_charging
- set_scheduled_departure

* adding command section COMMANDS_UNKNOWN
- dashcam_save_clip
- upcoming_calendar_entries

* moving set_scheduled_departure to charging

Co-authored-by: Michael Dyrynda <michael@dyrynda.com.au>
2021-11-08 08:49:19 +01:00
Tobias Lindberg 0ca351f54f Updating docker-compose example traefik labels
traefik did not map requests to `/api` correctly
2021-11-01 13:52:20 +01:00
Tobias Lindberg e19a1ac8b5 bumping new version v1.10.2
updating CHANGELOG
2021-10-15 14:34:45 +02:00
Tobias Lindberg 51a9174602 updating README with table for environment vars 2021-10-15 14:31:20 +02:00
Tobias Lindberg 729360c8b1 bumping new version v1.10.1
updating CHANGELOG
2021-09-23 12:27:52 +02:00
Tobias Lindberg 058287f824 bump to 1.17 of go mods (#104)
rel to #103
2021-08-30 14:48:55 +02:00
Tobias Lindberg da596424d2 updating .github yml files
- spaces and tabs
- single to double quotes
2021-08-30 14:44:48 +02:00
Tobias Lindberg f9dc1c68a8 updating README badges 2021-08-30 09:25:27 +02:00
Tobias Lindberg b32b7311a9 Merge pull request #86 from tobiasehlert/dependabot/github_actions/docker/setup-buildx-action-1.5.0
Bump docker/setup-buildx-action from 1.4.1 to 1.5.0
2021-07-05 13:12:53 +02:00
Tobias Lindberg b7a22e20c2 Merge pull request #85 from tobiasehlert/dependabot/github_actions/docker/build-push-action-2.6.1
Bump docker/build-push-action from 2.5.0 to 2.6.1
2021-07-02 13:06:21 +02:00
Tobias Lindberg a8e352863a bumping new version v1.10.0
updating CHANGELOG
2021-06-30 14:09:57 +02:00
Tobias Lindberg 3b8eb65315 minor code adjustments based on go-staticcheck 2021-06-30 14:09:24 +02:00
Tobias Lindberg c688e46a9d Merge pull request #83 from tobiasehlert/dependabot/github_actions/docker/setup-buildx-action-1.4.1
Bump docker/setup-buildx-action from 1.4.0 to 1.4.1
2021-06-30 13:25:04 +02:00
Tobias Lindberg 868b1275b5 Merge pull request #82 from tobiasehlert/dependabot/github_actions/docker/setup-buildx-action-1.4.0
Bump docker/setup-buildx-action from 1.3.0 to 1.4.0
2021-06-29 14:11:02 +02:00
Tobias Lindberg 312bd27f3b Merge pull request #78 from tobiasehlert/dependabot/github_actions/docker/login-action-1.10.0
Bump docker/login-action from 1.9.0 to 1.10.0
2021-06-24 13:14:08 +02:00
Tobias Lindberg a98cad01cf Merge pull request #75 from alecdoconnor/patch-3
Provide better error details
2021-06-24 08:24:58 +02:00
Tobias Lindberg e032d8b3e4 Merge pull request #74 from tobiasehlert/feature-mqtt-addition-of-power
adding of MQTT power int
2021-06-24 08:11:20 +02:00
Tobias Lindberg 991e483f48 bumping new version v1.9.0
updating CHANGELOG
2021-06-14 14:48:10 +02:00
Tobias Lindberg 6773a19bd8 removing punctuation in error message
resolve #61
2021-06-07 13:31:36 +02:00
Tobias Lindberg 8ef9e23da6 Merge pull request #71 from gaussmeter/API_TOKEN_DISABLE
allow command auth disable via API_TOKEN_DISABLE
2021-06-07 13:17:42 +02:00
Tobias Lindberg f66997421a Merge pull request #73 from tobiasehlert/dependabot/go_modules/github.com/eclipse/paho.mqtt.golang-1.3.5
Bump github.com/eclipse/paho.mqtt.golang from 1.3.4 to 1.3.5
2021-06-07 13:15:00 +02:00
Tobias Lindberg 7d93e5042a Merge pull request #72 from tobiasehlert/dependabot/docker/golang-1.16.5
Bump golang from 1.16.4 to 1.16.5
2021-06-04 11:25:20 +02:00
Tobias Lindberg 73ed43a515 adding of MQTT power int 2021-06-01 14:07:58 +02:00
Tobias Lindberg 141b63ecb8 bumping new version v1.8.0
updating CHANGELOG
2021-06-01 10:19:05 +02:00
Tobias Lindberg c41d1a45ba Merge pull request #69 from tobiasehlert/bug-43
Remove charges and drives that have null on end_date
2021-06-01 10:07:06 +02:00
Tobias Lindberg 258e8e4e70 Merge pull request #58 from alecdoconnor/patch-4
Update Charges, Drives, and Updates API to Allow Empty Responses as Valid
2021-06-01 09:59:40 +02:00
Tobias Lindberg e874f25470 bumping new version v1.7.1
updating CHANGELOG
2021-06-01 09:55:50 +02:00
Tobias Lindberg d8135a6546 Merge branch 'main' of https://github.com/tobiasehlert/teslamateapi into main 2021-06-01 09:54:15 +02:00
Tobias Lindberg c02c60eb5b Bump github.com/gin-gonic/gin from 1.7.1 to 1.7.2
#63 by dependabot
2021-06-01 09:52:59 +02:00
Tobias Lindberg 7f5ecfa260 Bump various workflow versions
- bump actions/cache from 2.1.5 to 2.1.6 (#67 by dependabot)
- bump docker/build-push-action from 2.4.0 to 2.5.0 (#66 by dependabot)
- bump docker/setup-qemu-action from 1.1.0 to 1.2.0 (#65 by dependabot)
- bump docker/metadata-action from 3.1.0 to 3.3.0 (#64 by dependabot)
2021-06-01 09:51:45 +02:00
Tobias Lindberg b0eaa0ae21 Merge pull request #62 from tobiasehlert/dependabot/github_actions/docker/metadata-action-3.2.0
Bump docker/metadata-action from 3.1.0 to 3.2.0
2021-06-01 09:28:19 +02:00
Tobias Lindberg 5aec424900 bumping new version v1.7.0
updating CHANGELOG
2021-05-20 08:15:40 +02:00
Tobias Lindberg cbe1f5892d changing if false statements and commenting out unused functions 2021-05-19 19:54:43 +02:00
Tobias Lindberg 7baecf3a61 moving defer to when error check has passed
go-staticcheck: should check returned error before deferring commandAllowListFile.Close() (SA5001)
2021-05-19 19:53:54 +02:00
Tobias Lindberg a9feeee228 Merge pull request #60 from tobiasehlert/feature-10-logging-commands
Feature 10 logging commands
2021-05-19 19:36:06 +02:00
Tobias Lindberg 7754bdcc28 bumping new version v1.6.2
updating CHANGELOG
2021-05-19 19:22:35 +02:00
Tobias Lindberg ef40a91e8d adding sql when end_date is not null to charges 2021-05-19 19:10:05 +02:00
Tobias Lindberg 695dc389ad Merge pull request #51 from alecdoconnor/patch-3
Prevent fatal error when detailed charge malformed
2021-05-19 18:51:21 +02:00
Tobias Lindberg 10a5f96173 Merge pull request #59 from tobiasehlert/dependabot/go_modules/github.com/lib/pq-1.10.2
Bump github.com/lib/pq from 1.10.1 to 1.10.2
2021-05-19 18:46:06 +02:00
Tobias Lindberg 679d2a89e1 Merge pull request #57 from tobiasehlert/dependabot/github_actions/docker/build-push-action-2.4.0
Bump docker/build-push-action from 2 to 2.4.0
2021-05-12 08:27:35 +02:00
Tobias Lindberg b2a199afb3 Merge pull request #56 from tobiasehlert/dependabot/github_actions/docker/setup-qemu-action-1.1.0
Bump docker/setup-qemu-action from 1 to 1.1.0
2021-05-12 08:27:30 +02:00
Tobias Lindberg 992b166837 Merge pull request #55 from tobiasehlert/dependabot/github_actions/docker/metadata-action-3.1.0
Bump docker/metadata-action from 3 to 3.1.0
2021-05-12 08:27:25 +02:00
Tobias Lindberg addb3a430d Merge pull request #54 from tobiasehlert/dependabot/github_actions/docker/setup-buildx-action-1.3.0
Bump docker/setup-buildx-action from 1 to 1.3.0
2021-05-12 08:27:21 +02:00
Tobias Lindberg 64d8aba1ef Merge pull request #53 from tobiasehlert/dependabot/github_actions/docker/login-action-1.9.0
Bump docker/login-action from 1 to 1.9.0
2021-05-12 08:27:16 +02:00
Tobias Lindberg 82b7326b5d Merge pull request #52 from tobiasehlert/dependabot/github_actions/crazy-max/ghaction-docker-meta-v3
Bump crazy-max/ghaction-docker-meta from v2.4.0 to v3
2021-05-11 11:00:35 +02:00
Tobias Lindberg ceafad0f0b Update build.yml
Replacing crazy-max/ghaction-docker-meta with docker/metadata-action
2021-05-11 10:59:50 +02:00
Tobias Lindberg 739f56e1be bumping new version v1.6.1
updating CHANGELOG
2021-05-10 09:41:02 +02:00
Tobias Lindberg 6e56848eaf Merge pull request #47 from alecdoconnor/patch-3
Skip Malformed Rows (those missing an end_date)
2021-05-10 09:31:15 +02:00
Tobias Lindberg 616864d75a Merge pull request #49 from tobiasehlert/dependabot/docker/golang-1.16.4
Bump golang from 1.16.3 to 1.16.4
2021-05-10 09:22:47 +02:00
Tobias Lindberg 07fa314001 Merge pull request #46 from tobiasehlert/dependabot/go_modules/github.com/eclipse/paho.mqtt.golang-1.3.4
Bump github.com/eclipse/paho.mqtt.golang from 1.3.3 to 1.3.4
2021-05-10 09:22:37 +02:00
Tobias Lindberg 7bdcf8de66 Merge pull request #48 from gaussmeter/feature-10-logging
SSL: true|false, FQDN -> HOST
2021-05-10 09:20:22 +02:00
Tobias Lindberg 6633a2c60a Update build.yml
removing trigger for pull_request for a while..
2021-05-04 09:19:19 +02:00
Tobias Lindberg 1a98377617 Merge pull request #45 from gaussmeter/feature-10-logging
teslamate logging feature updates
2021-05-04 08:27:39 +02:00
Tobias Lindberg 68a437f724 bumping new version v1.6.0
updating CHANGELOG
2021-05-03 22:33:54 +02:00
Tobias Lindberg df5ec40b05 Merge pull request #44 from tobiasehlert/revert-40-patch-3
Revert "Update v1_TeslaMateAPICarsCharges.go"
2021-05-03 22:23:20 +02:00
Tobias Lindberg 6022c8ef77 Revert "Update v1_TeslaMateAPICarsCharges.go" 2021-05-03 22:21:58 +02:00
Tobias Lindberg ae348eaf8e Merge pull request #39 from alecdoconnor/patch-2
Patch 2
2021-05-03 22:19:26 +02:00
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 8f97ff281c Update v1_TeslaMateAPICarsChargesDetails.go
using NullString instead of coalesce function
2021-05-03 22:13:23 +02:00
Tobias Lindberg 8b59c2a9c3 Update CHANGELOG.md 2021-05-03 22:06:35 +02:00
Tobias Lindberg 3266975721 Merge pull request #42 from tobiasehlert/bug-8
Adding persistant MQTT connection for status endpoint
2021-05-03 21:49:50 +02:00
Tobias Lindberg 6ee81c6716 adding github.com/thanhpk/randstr v1.0.4
removed by mistake in b3b731b
2021-05-03 21:44:20 +02:00
Tobias Lindberg b3b731b0eb Merge branch 'main' into bug-8 2021-05-03 21:40:39 +02:00
Tobias Lindberg b82067f425 Delete no-response.yml 2021-05-03 19:31:38 +02:00
Tobias Lindberg f6330924c1 Update stale.yml 2021-05-03 19:29:13 +02:00
Tobias Lindberg 381bcb9164 bumping new version v1.5.0
updating CHANGELOG
2021-05-03 19:08:41 +02:00