209 Commits

Author SHA1 Message Date
Tobias Lindberg 5aec424900 bumping new version v1.7.0
updating CHANGELOG
v1.7.0
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
v1.6.2
2021-05-19 19:22:35 +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
dependabot[bot] 16fe362c81 Bump github.com/lib/pq from 1.10.1 to 1.10.2
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.1...v1.10.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 07:16:22 +00: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
dependabot[bot] f5910e951e Bump docker/build-push-action from 2 to 2.4.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 2.4.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v2.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 05:52:53 +00:00
dependabot[bot] ac2f6ff477 Bump docker/setup-qemu-action from 1 to 1.1.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 1.1.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v1.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 05:52:49 +00:00
dependabot[bot] fbbdb240f9 Bump docker/metadata-action from 3 to 3.1.0
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3 to 3.1.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v3...v3.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 05:52:44 +00:00
dependabot[bot] 4bd0c74412 Bump docker/setup-buildx-action from 1 to 1.3.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 1.3.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v1.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 05:52:40 +00:00
dependabot[bot] 4b17952b31 Bump docker/login-action from 1 to 1.9.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 1.9.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v1.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 05:52:35 +00: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
dependabot[bot] cf681dc7e6 Bump crazy-max/ghaction-docker-meta from v2.4.0 to v3
Bumps [crazy-max/ghaction-docker-meta](https://github.com/crazy-max/ghaction-docker-meta) from v2.4.0 to v3.
- [Release notes](https://github.com/crazy-max/ghaction-docker-meta/releases)
- [Commits](https://github.com/crazy-max/ghaction-docker-meta/compare/v2.4.0...2af9c6a52b5431eea749f0e923b7503b84813f77)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 05:54:07 +00:00
Tobias Lindberg 739f56e1be bumping new version v1.6.1
updating CHANGELOG
v1.6.1
2021-05-10 09:41:02 +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
dependabot[bot] d307eb863b Bump golang from 1.16.3 to 1.16.4
Bumps golang from 1.16.3 to 1.16.4.

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 07:16:46 +00:00
Leland Sindt 331a05e1ce SSL: true|false, FQDN -> HOST 2021-05-04 18:25:06 -05:00
Tobias Lindberg 6633a2c60a Update build.yml
removing trigger for pull_request for a while..
2021-05-04 09:19:19 +02:00
dependabot[bot] d1a6ce45bc Bump github.com/eclipse/paho.mqtt.golang from 1.3.3 to 1.3.4
Bumps [github.com/eclipse/paho.mqtt.golang](https://github.com/eclipse/paho.mqtt.golang) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/eclipse/paho.mqtt.golang/releases)
- [Commits](https://github.com/eclipse/paho.mqtt.golang/compare/v1.3.3...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-04 07:16:34 +00: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
Leland Sindt 6605fde6fb break out teslamate Protocol, FQDN, Port 2021-05-03 20:31:58 -05:00
Leland Sindt 5bebf85e1b rename TeslaMateAPICarsLoggingCommandV1 -> TeslaMateAPICarsLoggingV1 2021-05-03 20:29:31 -05:00
Tobias Lindberg 68a437f724 bumping new version v1.6.0
updating CHANGELOG
v1.6.0
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
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 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
Alec O'Connor 08840506c9 Update v1_TeslaMateAPICarsChargesDetails.go
Missing comma. Please build and test the SQL, I'm unsure how.
2021-05-03 13:27:56 -04:00
Alec O'Connor ef67d068cc fast_charger_brand can be NULL, causes fatal error
Fatal error detected:
`sql: Scan error on column index 18, name "fast_charger_brand": converting NULL to string is unsupported`

Causes ChargeDetail API endpoint to fail. Solution was to add default string value for `fast_charger_brand`
2021-05-03 13:15:51 -04:00
Tobias Lindberg 381bcb9164 bumping new version v1.5.0
updating CHANGELOG
v1.5.0
2021-05-03 19:08:41 +02:00
Tobias Lindberg e78304cf26 Merge pull request #37 from alecdoconnor/patch-1
Convert SpeedMax and SpeedAvg in Drive (km->mi)
2021-05-03 19:03:08 +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
v1.4.9
2021-05-03 13:49:04 +02:00