596 Commits

Author SHA1 Message Date
Tobias Lindberg 4fc5aa3c80 removed MQTT_SLEEPTIME since mqtt connection is persistent 2021-03-23 09:54:12 +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
Tobias Lindberg 6702797da7 Merge pull request #19 from gaussmeter/bug-18
handle Null -> Bool
2021-03-21 15:55:07 +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
Tobias Lindberg 3fa6d9bc55 adding url to badges
adding license badge
2021-03-18 10:54:05 +01: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 8c4bbda43b bumping new version v1.3.0
updating CHANGELOG
v1.3.0
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
v1.2.3
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 ee4bc58a89 Merge pull request #16 from gaussmeter/mqtt
defer disconnection to prevent un-managed disconnects
2021-03-16 13:39:53 +01:00
Leland Sindt 992fd6070c defer disconnection to prevent un-managed disconnects 2021-03-16 07:16:21 -05:00
Tobias Lindberg f6cbf8630d Merge pull request #15 from gaussmeter/mqtt
add random string to mqtt clientID to prevent concurrent connections
2021-03-16 11:28:49 +01:00
Tobias Lindberg fa1cdc6592 adding github.com/thanhpk/randstr to go mod 2021-03-16 11:17:36 +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
Leland Sindt 55d30a197e add random string to mqtt clientID to prevent concurrent connections 2021-03-15 21:14:59 -05:00
dependabot[bot] 3a17839b01 Bump golang from 1.16.0 to 1.16.2
Bumps golang from 1.16.0 to 1.16.2.

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 07:09:46 +00:00
Tobias Lindberg 5273955b15 bumping new version v1.2.2
updating CHANGELOG
v1.2.2
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
dependabot[bot] 85823b150a Bump github.com/lib/pq from 1.9.0 to 1.10.0
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.9.0...v1.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 08:20:52 +00:00
Tobias Lindberg 7d2f2e962b bumping new version v1.2.1
updating CHANGELOG
v1.2.1
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
v1.2.0
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
Chris B c24cca25ff Update README.md 2021-02-19 20:19:03 -10: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
v1.1.1
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
v1.1.0
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
dependabot[bot] 4b65f70d3e Bump golang from 1.15.8 to 1.16.0
Bumps golang from 1.15.8 to 1.16.0.

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