Commit Graph

166 Commits

Author SHA1 Message Date
Tobias Lindberg f4766f89a2 chore: remove unused functions 2025-09-23 15:01:37 +02:00
Tobias Lindberg 8e9643edce chore: rewrite convert-function logics (#367) 2025-09-22 16:51:47 +02:00
Lukáš Stankovič 36f2fae429 fix: incorrect 0 values from charge_energy_used charges queries (#366) 2025-09-22 16:28:12 +02:00
Lukáš Stankovič 1c6906c077 feat: add battery health endpoint for cars (#355)
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-22 16:20:10 +02:00
Tobias Lindberg 3ec135d108 chore: reordering sql query slightly (#364) 2025-09-22 10:19:23 +02:00
Lukáš Stankovič 0d55424758 feat: add energy consumption to drives and drive details (#349) 2025-09-22 09:41:43 +02:00
Bryan Jones 76b124e1cb fix: Postgres SSL connection (#348)
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
2025-09-10 10:05:49 +02:00
Tobias Lindberg f37768fcdc chore: move var declaration 2025-09-09 10:10:19 +02:00
Dario Mader 8991a72ee1 feat: add support for filtering on start and end dates (#339)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
2025-07-27 21:17:49 +02:00
Lukáš Stankovič a732f8a9e9 feat: add latitude and longitude to charges (#333)
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
2025-07-23 11:32:28 +02:00
Herr Frei ecab8616c6 feat: add odometer information to charge-endpoints (#313)
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
2024-12-18 10:38:09 +01:00
Tobias Lindberg afe208b9c6 fix: using Printf instead of Println when logging
rel #307
2024-11-21 22:22:43 +01:00
jlestel 655d44ac59 feat: add ability to use custom API endpoint (#307)
Co-authored-by: Julien <julien@citio.digital>
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
2024-11-21 22:13:48 +01:00
Tobias Lindberg ebc0af2443 fix: status drivingdetails.speed to be int and not float64 (#301)
rel #299
2024-08-12 10:29:27 +02:00
Chris B 596dadb171 fix: converts the current speed if unit is "mi" on status endpoint (#299) 2024-08-12 10:12:27 +02:00
Tobias Lindberg 880d6e2094 fix: k8s health runtime error (#296) 2024-07-24 23:11:14 +02:00
Tobias Lindberg 066e7d2345 add center_display_state mqtt topic (#295) 2024-07-24 22:49:53 +02:00
Tobias Lindberg fa4736e509 Feature: adding support for k8s health endpoints (#191)
* adding support for k8s health endpoints
* fix: update readyz if mqtt is lost
2024-07-24 22:31:44 +02:00
Tobias Lindberg b6043e0cce Add and update of MQTT topics (#289) 2024-06-20 09:26:28 +02:00
Tobias Lindberg 637425d1c2 updating go mods 2024-06-19 12:17:06 +02:00
Tobias Lindberg 6cf37c5a29 fix: resolving fatal when disabling of mqtt (#288) 2024-06-19 12:11:32 +02:00
Tobias Lindberg 4636fe6493 fix: issue after location mqtt implementation (#278) 2024-03-30 00:11:43 +01:00
Tobias Lindberg 7548d5dbaa Add tire pressure warning and active route from mqtt (#270) 2024-03-04 11:39:41 +01:00
Tobias Lindberg ab69d262c6 alignment of commands to version 4.23.6 (#265) 2024-01-30 22:15:38 +01:00
Tobias Lindberg 243363e7c4 update teslamate repo links to teslamate-org 2023-11-13 09:40:44 +01:00
Tobias Lindberg b0c86642cc fix NullString issue in several endpoints (#245)
Co-authored-by: Vincent Barrier <vbarrier@kagilum.com>
2023-09-23 07:47:23 +02:00
Tobias Lindberg c9db9729f9 cleaning, bumping and enhancing (#243)
* some cleanup
- updating constant in group to have explicit type (SA9004)
- commenting out empty branch (SA9003)

* bump go mods

* refactor of nested if statements
closes #175

* stop using ioutil as it is deprecated
2023-09-22 23:12:21 +02:00
Tobias Lindberg 1a3378e735 change CarName to be NullString instead of string (#242)
* fix CarName to be NullString instead of string

Co-authored-by: Vincent Barrier <vbarrier@kagilum.com>
2023-09-22 17:25:55 +02:00
virusbrain 02826ed725 Fix mqtt reconnection issue #176 (#199)
Co-authored-by: Leland Sindt <leland@sway.org>
2022-10-11 08:11:14 +02:00
Tobias Lindberg 2788965069 add support for new car commands (#187)
- /command/charge_standard
- /command/charge_max_range
- /command/remote_seat_cooler_request
- /command/set_climate_keeper_mode
- /command/remote_auto_seat_climate_request
2022-07-01 00:01:22 +02:00
Richard He 0b20e1ddfd Support execute commands for China region cars (#184)
* Support China region

* changing a little naming of stuff in PR
updating go mod

Co-authored-by: Ubuntu <richard@TeslaMate.o40mrcj4lduuffo3ajemuw0epa.lx.internal.cloudapp.net>
Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
2022-06-30 23:40:05 +02:00
Tobias Lindberg 5981739ff2 add support for tire pressure metrics from mqtt (#186) 2022-06-30 23:13:10 +02:00
Tobias Lindberg 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 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 e5ee21bb44 fixing append of commands to allowList (#142) 2022-01-27 00:45:51 +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 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 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 e7e3005e57 using of BasePath function in output and redirect (#130) 2021-12-29 10:49:24 +01:00
Tobias Lindberg dbb07937ba changing float64 to NullFloat64 on efficiency (#129) 2021-12-28 22:19:05 +01:00
Tobias Lindberg 7e648a498f adding arg for apiVersion based on git release 2021-12-23 11:27:21 +01:00
Tobias Lindberg 8507392382 bumping new version v1.11.0
updating CHANGELOG
2021-11-08 08:54:48 +01:00
Tobias Lindberg 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 e19a1ac8b5 bumping new version v1.10.2
updating CHANGELOG
2021-10-15 14:34:45 +02:00
Tobias Lindberg 729360c8b1 bumping new version v1.10.1
updating CHANGELOG
2021-09-23 12:27:52 +02:00