Commit Graph

48 Commits

Author SHA1 Message Date
JakobLichterfeld
2a922e321c feat: update to Phoenix HTML 4.1, bump dependencies (#4277)
* feat: update to Phenix HTML 4.1

* fix: updating to the new Gettext.Backend approach

* chore: update pot files ro locale version 45.0.0

* fix: downgrade cloack back to 1.1.2

* revert: merge of mix.lock

* fix: new syntax for field name generation for phx-feedback-for

* Revert "fix: new syntax for field name generation for phx-feedback-for"

This reverts commit 4d95e4f1c9367d2d5c606ced2190ab23edcb971b.

* fix: downgrade floki back to 0.35.2

* Revert "fix: downgrade floki back to 0.35.2"

This reverts commit a4f0b6bf4b32099d89003c3d20f72333d510e109.

* fix: ensure floki nil is handled

* style: linter findings

* Revert "fix: ensure floki nil is handled"

* fix: new syntax for field name generation for phx-feedback-for

* debug: floki paramter error

* Revert "debug: floki paramter error"

This reverts commit 61920267edf5186b593920bde7d87e8b30af55aa.

* fix: Remove unnecessary code in settings_test.exs which breaks floki 0.36+
2024-10-27 08:17:49 +01:00
Tobias Lindberg
23c8bccff6 Adding missing Swedish translation (#4097)
* Adding missing Swedish translation

* doc: update changelog
2024-07-23 16:18:41 +02:00
Martin Kolací
8192f12860 Add icon to summary when Sentry Mode is triggered and recording (#4043)
* Add icon to summary when Sentry Mode is triggered and recording

Signed-off-by: kolaCZek <mail@kolaczek.cz>

* Update pot files

* Update Chinese translation for "Sentry Mode recording"

---------

Signed-off-by: kolaCZek <mail@kolaczek.cz>
Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2024-07-06 15:44:31 +02:00
Jakob Lichterfeld
00fdadcd06 feat: add LFP Battery setting for car settings (#4007) -> master 2024-07-05 19:11:12 +02:00
mark3-dev
c90cde871d feat: Add ability to enable and disable data collection for cars (#3993)
* Add ability to enable and disable cars

* Add default value for enabled in car_settings.

* Fix unit tests.

* Fix formatting.

* Update text to be more descriptive

* Update lables.
2024-07-05 09:01:16 +02:00
jlestel
4313409323 feat: Dynamic endpoints and token to use official Tesla API (self-hosted or from third party provider) (#3903)
* feat: endpoints by env

* fix: typo

* fix: useless env

* fix: format

* fix: distinct auth domain and url

* format

* fix: force issuer url if needed

* feat: new streaming based on vin

* fix refresh

* revert

* up

* feat: no need for access token / refresh token if the TOKEN env var is present

* feat: update login if token env var exists

* feat: add ENV var to allow insecure wss

* fix: remove TESLA_CN

* fix(naming): TESLA_API_URL to TESLA_API_DOMAIN

* feat: add an env var to allo invalid certs on WSS

* doc: add API domains env vars description

* fix: typo

* feat: add env var to change log level

* fix: APP_LOG_LEVEL

* feat: add TOKEN documention and wording

* fix: refacto insecure param

* feat: naming and doc

* fix: missing env var usage

* fix: rebound variable issuer_url

* fix: compilation warning on the issuer_url variable

* fix: format code

* fix: issuer_url assignments

---------

Co-authored-by: Julien <julien@citio.digital>
2024-05-27 11:03:23 +02:00
Jakob Lichterfeld
10995a3ce5 Revert "Dynamic endpoints and token to use official Tesla API (self-hosted or from third party provider) (#3866)"
This reverts commit 263f207dc9.
2024-05-20 14:07:26 +02:00
jlestel
263f207dc9 Dynamic endpoints and token to use official Tesla API (self-hosted or from third party provider) (#3866)
* feat: endpoints by env

* fix: typo

* fix: useless env

* fix: format

* fix: distinct auth domain and url

* format

* fix: force issuer url if needed

* feat: new streaming based on vin

* fix refresh

* revert

* up

* feat: no need for access token / refresh token if the TOKEN env var is present

* feat: update login if token env var exists

* feat: add ENV var to allow insecure wss

* fix: remove TESLA_CN

* fix(naming): TESLA_API_URL to TESLA_API_DOMAIN

* feat: add an env var to allo invalid certs on WSS

* doc: add API domains env vars description

* fix: typo

* feat: add env var to change log level

* fix: APP_LOG_LEVEL

* feat: add TOKEN documention and wording

* fix: refacto insecure param

* feat: naming and doc

* fix: missing env var usage

---------

Co-authored-by: Julien <julien@citio.digital>
2024-05-20 13:11:13 +02:00
dyxyl
7a5625f09f fix: errors from Timex.Timezone.local() during switchover to DST. (#3848)
* Fix errors from Timex.Timezone.local() during switchover to DST.

* Update the gettext files to match.
2024-04-17 14:49:41 +02:00
b1c1l1
97cfb79493 feat: Add URL_PATH environment variable for reverse proxy deployments (#3771)
* Add URL_PATH environment variable for reverse proxy deployments

For example, this can be used to run TeslaMate behind a reverse proxy, using a
URL path such as "/teslamate".

* gettext: update pot and po files

Generated using:
  mix gettext.extract --merge

* web: run mix format

* gettext: update pot and po files

Re-generating gettext files after running mix format.

Generated using:
  mix gettext.extract --merge
2024-03-25 09:21:34 +01:00
Tobias Lindberg
71f5fd4d2a Adding missing Swedish translation (#3716) 2024-03-02 21:20:43 +01:00
marvelm
da819054f6 feat: Upgrade web development framework to Phoenix 1.7 (#3615)
* Upgrade to phoenix 1.7.0
The minimal changes necessary to compile the application

* Import Phoenix.Component instead of LiveView

* Fix compilation warnings

* mix format

* Update tests to trim newline characters

* mix gettext.extract --merge

* style: correct linting

* rebuild gettext

* fix: correct spacing before unit for energy added

* fix: use unicode character for whitespace

* fix: spacing with witespace

* fix: use numeric value for charge_energy_added in charging test

* fix: avoid warning about unsued function, which is actually used in plug

* fix: use whitespace in test before charge_energy_added

---------

Co-authored-by: JakobLichterfeld <jakob-lichterfeld@gmx.de>
2024-02-07 19:23:53 +01:00
Adrian Kumpf
c478cc1276 Update dependencies 2023-06-10 18:44:18 +02:00
Adrian Kumpf
5f0d513358 Update POT files 2023-01-13 13:09:45 +01:00
Adrian Kumpf
a413e8ce2c Add setting to select tire pressure units 2022-07-18 11:35:14 +02:00
Tobias Lindberg
7b967112ea Adding missing Swedish translation (#2731) 2022-07-15 11:01:20 +02:00
Adrian Kumpf
2339577fbd Update POT files 2022-02-18 18:09:36 +01:00
Adrian Kumpf
0d6e288c70 Encrypt API tokens (#2360)
Store API tokens encrypted in the database.

During the database migration a randomly generated key will be used encrypt the tokens if no ENCRYPTION_KEY environment variable was provided.

If the application is started without the presence of an ENCRYPTION_KEY (or if the key failed to decrypt the existing tokens), the UI will display a warning with further instructions.
2022-02-18 17:03:13 +01:00
Tobias Lindberg
49edaed5c5 Adding missing Swedish translation (#2373) 2022-01-26 12:24:40 +01:00
Adrian Kumpf
6c53788738 Don't suspend logging while downloading an update
Fixes #2194
2022-01-22 13:00:50 +01:00
Adrian Kumpf
8aa772872a Remove support for logins with username/password 2022-01-21 19:09:32 +01:00
Adrian Kumpf
1992af38c3 Show token sign-up form by default 2021-11-12 17:39:20 +01:00
Adrian Kumpf
be76577d5b Enter captcha code in a separate view
Addresses #1836
2021-07-16 18:28:25 +02:00
Tobias Lindberg
902cfa8311 adding swedish translations for 1.23 release (#1655) 2021-06-01 14:17:43 +02:00
Adrian Kumpf
d676e4de49 Update translations 2021-06-01 00:53:35 +02:00
Adrian Kumpf
a0de45878a Update German translations 2021-03-18 12:06:23 +01:00
Tobias Lindberg
b2dad66d99 Translations, docs typo and other badges (#1461)
* adding swedish translation string for token related things

* typo in docs FAQ page

* switching microbadger images to shields.io
2021-03-18 11:48:57 +01:00
Adrian Kumpf
8513d56b9f Allow to sign in with API tokens (#1450)
* Allow to sign in with API tokens

* Test signing in with API tokens

* Add button to go back to login with credentials

* Add note about how to get API tokens
2021-03-16 18:54:48 +01:00
Adrian Kumpf
b9ef13addf Add sign-out button 2021-01-30 20:24:42 +01:00
Adrian Kumpf
d825fc1723 Allow to use the legacy authentication API 2020-12-29 15:05:38 +01:00
Adrian Kumpf
52025c5ded Update translation files 2020-12-20 22:51:58 +01:00
Tobias Lindberg
f45dcd87af updating translation file for swedish (#1029)
* adding swedish translation

* adding comments from endlish errors.po

* adding new translations for swedish

* fix #524 of adriankumpf/teslamate

* adding translation for geo-fence in swedish

* fixing translation of charge limit in swedish

* fixiing translation of mileage in swedish

* Fix typos

* adding swedish translations

* adjustment of swedish translation suggested by Thomas Hennig

* MQTT_HOST default should be 127.0.0.1 for screen, as in systemd

* adding drop_cap to traefik example, which all other guides have

* removing quotation marks around ports for portainer

* adjusting volumes for portainer to match other guides

* fix #635 fr translation

* Minor adjustments to swedish translation

and removing translations that are the same as in english

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-10-24 12:49:00 +02:00
Adrian
7872184a5c Display update version in the homescreen update tooltip (#976)
* Make update_version of the API available

* Add update version to the update tooltip

* Fix formatting

* Update translations to reflect the new tooltip

* Fix car controller test

* Add update_version to the mqtt documentation
2020-10-08 10:33:56 +02:00
Adrian Kumpf
0db6d6905c Allow to set a cost by the minute per geo-fence 2020-05-30 12:33:23 +02:00
Adrian Kumpf
155a135d51 Upgrade to phoenix 1.5 2020-04-23 12:51:15 +02:00
Adrian Kumpf
0dbc5600ef Add language switcher 2020-04-15 14:21:35 +02:00
jmiverson
9eb42ee8a7 Updated Labels to Title Case (#578)
Some labels were using title case and others weren't.  Attempted to make it consistent across the board.
2020-04-11 12:45:08 +02:00
Tobias Lindberg
80a571aad4 Adding and updating swedish translations (#552)
* adding swedish translation

* adding comments from endlish errors.po

* adding new translations for swedish

* fix #524 of adriankumpf/teslamate

* adding translation for geo-fence in swedish

* fixing translation of charge limit in swedish

* fixiing translation of mileage in swedish

* Fix typos

* adding swedish translations

* adjustment of swedish translation suggested by Thomas Hennig

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-04-06 12:03:05 +02:00
Adrian Kumpf
a0bf12e264 Update translations 2020-04-02 17:56:29 +02:00
Adrian Kumpf
2f8defff06 Add feature flag for the Streaming API 2020-03-28 15:48:37 +01:00
Tobias Lindberg
fb3ed02b1c Fix settings dropdown and Swedish translation (#525)
* adding swedish translation

* adding comments from endlish errors.po

* adding new translations for swedish

* fix #524 of adriankumpf/teslamate

* adding translation for geo-fence in swedish

* fixing translation of charge limit in swedish

* fixiing translation of mileage in swedish

* Fix typos

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-03-22 13:51:39 +01:00
Tobias Lindberg
26c0bc3bbf Updating with new swedish translation (#522)
* adding swedish translation

* adding comments from endlish errors.po

* adding new translations for swedish
2020-03-21 13:27:16 +01:00
Adrian Kumpf
267cef3388 Add odometer to the summary page
Closes #508
2020-03-17 14:34:24 +01:00
Adrian Kumpf
b76b2d2cfa Add option to calculate charging costs retroactively
Closes #442
2020-03-11 15:11:13 +01:00
Adrian Kumpf
14a5acf7cb Allow to enter total cost or cost per KWh used
Closes #457
2020-03-11 15:11:13 +01:00
Adrian Kumpf
85eb9307e2 Indicate if any of the doors are open 2020-03-11 14:38:47 +01:00
Adrian Kumpf
86a6bee239 Add support for session fees
Closes #455
2020-03-09 12:56:11 +01:00
Tobias Lindberg
17971c143d Swedish translation (#485)
* adding swedish translation

* adding comments from endlish errors.po
2020-02-26 11:19:09 +01:00