Commit Graph

614 Commits

Author SHA1 Message Date
Nir Klinger
00a704b394 Added expected finish charging localtime to teslamate site (#3646)
* Added expected finish charging localtime to teslamate site

* format text

* fixing indentation

* fixing indentation

* format text

* Remove UTC timezone and use the local timezone
2024-02-02 09:08:46 +01:00
Michael Vestergaard
1857f25d0f Handle stream getting the message "Vehicle is offline" and change the state to offline in vehicle (#3508) 2024-01-19 14:09:59 +01:00
Nir Klinger
b5fa0242a3 Fix an issue when car is could enter sleep mode while dog mode is enabled (#3538)
* Fix an issue when car is could enter sleep mode while dog mode is enabled.

* Update pot files

* revert change

* Fix tests

* Fix tests and issue when try to sleep was not showing

* Fix lint issue
2023-12-12 13:18:03 +01:00
Brian May
b643b45ca0 Add charging_state to VehicleSummary (#3471)
* Add charging_state to VehicleSummary

Fixes: #3078

* WIP
2023-11-23 09:06:51 +01:00
JakobLichterfeld
b03783be9c Revert "Add charging_state to VehicleSummary (#3087)" (#3468)
This reverts commit 6d0405dbff. as it breaks the elixir test cases
2023-11-20 18:55:17 +01:00
Brian May
6d0405dbff Add charging_state to VehicleSummary (#3087)
Fixes: #3078
2023-11-16 16:20:11 +01:00
libotony
c520af5732 ui: sync meta theme-color with header background color (#2840) 2023-11-16 08:49:22 +01:00
Nir Klinger
fba87d7e88 added tire low pressure icon to teslamate web (#3424)
* added tire low pressure icon to teslamate web

* updated new fields to mqtt md

* Update default.pot and errors.pot
2023-11-13 19:07:03 -06:00
Adrian Kumpf
9df62aee54 Update repo URL 2023-11-12 19:30:36 +01:00
Adrian Kumpf
b545eaf8f4 Remove donation links 2023-11-12 19:26:52 +01:00
Adrian Kumpf
2ac9ac49bd Update srtm to 0.8.0 2023-11-12 19:12:47 +01:00
Adrian Kumpf
faa002bab4 Trim geo fence name 2023-11-12 17:51:28 +01:00
Matthias Wirtz
ed70976770 Endpoints Query Param, Docker 60s delay fixed, Typo fixed, Update several Dependencies (#3398)
* Endpoints Query Param, Docker 60s delay fixed, Typo fixed

* Update dependencies
2023-11-12 17:51:14 +01:00
Adrian Kumpf
adf798ee49 Fix deprecation warnings 2023-06-11 01:10:35 +02:00
Adrian Kumpf
b2b0c4555d Format code 2023-06-11 00:58:26 +02:00
Adrian Kumpf
e243645abb Add Dialyzer 2023-06-10 18:44:18 +02:00
Adrian Kumpf
db59717d04 Fix deprecation warnings on Elixir v1.15 2023-06-10 18:44:18 +02:00
Adrian Kumpf
6af97bafc8 Read vehicle name from vehicle_data response 2023-06-10 17:29:51 +02:00
Adrian Kumpf
8756c66bca Fix typos 2023-02-03 21:20:10 +01:00
Martin Hüser
8377f361ce fix gpx format (#2925)
some tools, e.g. Garmin Basecamp, expect a proper namespace
definition in the xml root element and are more sensitive to
xml schema violations.

Track point elevation is specified to be an element of type
xsd:decimal in the gpx schema. But Teslamate renders an
empty element <ele></ele> when no elevation data is present.
This fix does not render an <ele> element when no elevation
is present

Also the gpx schema requires a "creator" attribute on the
gpx root element.
2023-01-13 14:00:36 +01:00
Adrian Kumpf
4931217ca7 Update Elixir dependencies 2023-01-13 11:02:14 +01:00
Adrian Kumpf
a413e8ce2c Add setting to select tire pressure units 2022-07-18 11:35:14 +02:00
Adrian Kumpf
2b3e127259 Handle invalid JWTs 2022-07-15 12:35:35 +02:00
Brian May
4a11ef8421 If no geofence is found map then use default value (#2564)
This is required because the default value is "" which tells the mqtt
server to delete the retained value.

This in turn means that applications that care about when the car is in
a unknown location will not get the retained value.

This is a bit different from all of the other values in
`@always_published`. For them "" is only published if the value is
unknown or an error occurred. So it makes sense to delete the retained
value.

In this case however, a value of "" generally means "the car is outside
any known geofence" which is a valid condition it itself, and it should
be retained.

There was speculation this might affect the shift_state, but
unfortunately this was not followed up with any evidence or details. #1912

There are any number of solutions that could be deployed here. The
advantage of this solution however is it is not going to break anything
unless you specifically define the TESLAMATE_DEFAULT_GEOFENCE variable.

Fixes: #1336
2022-07-15 10:59:46 +02:00
NirKli
7a9c6b9ad1 Added tire pressure (#2706)
* - Added support for tire pressure graph per drive

* - Fixed migration script

* - Added tire pressure documentation in mqtt.md

* Use add command instead of add_if_not_exists

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>

* Remove drop function command from migration script

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>

* Format code

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
2022-06-24 15:24:39 +02:00
Adrian Kumpf
a0e12c3808 Store marketing names
... and identify new Model S and X.

Closes #2494, #2496
2022-04-22 15:42:25 +02:00
Adrian Kumpf
7d2a841f1f Bump deps 2022-04-04 14:24:04 +02:00
Adrian Kumpf
b209d348f8 Restart stream process if token expired
Addresses #2450
2022-02-20 14:18:00 +01:00
Adrian Kumpf
bbdc2d25ae Move encryption key warning into .container 2022-02-18 17:21:16 +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
Adrian Kumpf
a8bcb906b1 Add charge_current_request(_max) MQTT topics
Implements #2412
2022-02-09 17:13:35 +01:00
cwanja
c89088f7d6 Update vehicle.ex (#2455)
Added support for the 2021.5+ Model X. Fixes #2454
2022-02-09 16:01:01 +01:00
cwanja
66254de906 Update summary.html.heex (#2390)
* Update summary.html.heex

Create a link on the summary page to link to Not a Tesla App release notes page per discussion request #2367 

Full disclosure - not proficient in Elixir, but understand HTML and capable of digging through other code and comparing. Just not sure how the `@summary.version` is going to be treated in the link text.

* Fix string interpolation

* Update tests

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
2022-01-28 12:16:17 +01:00
Adrian Kumpf
b6a5219090 Don't exchange SSO token for Chinese accounts
Addresses #2378
2022-01-26 18:03:56 +01:00
Adrian Kumpf
d6d4d62ac7 Skip unnecessary locale downloads 2022-01-23 23:57:24 +01:00
Adrian Kumpf
25e572bb9b Don't warn in case of common faulty update status
After successfully installing an update the Tesla API often reports
"downloading" as `status` while `install_perc` is at 100%.
2022-01-22 13:03:48 +01:00
Adrian Kumpf
6c53788738 Don't suspend logging while downloading an update
Fixes #2194
2022-01-22 13:00:50 +01:00
James Bogosian
963831deee Enable zoom on live view of the car. (#2184)
* Enable zoom on live view of the car.

* Switch to using drag/pinch-to-zoom/scroll-to-zoom

* Remove data-zoom attrbiute as parameters are directly set in the JS.

* Directly set parameters for zoom instead of relying on attribute from DOM.

* Switch to use hover/tap to show/hide zoom control.
2022-01-21 19:28:20 +01:00
Adrian Kumpf
8aa772872a Remove support for logins with username/password 2022-01-21 19:09:32 +01:00
Adrian Kumpf
3d1697a909 Don't parse issuer URL twice 2022-01-19 10:12:25 +01:00
Howard Su
811dac1d08 Fix MFA for Chinese accounts (#2234) 2022-01-01 18:04:13 +01:00
Adrian Kumpf
3fb0d2f8d0 Guard against duplicate vehicle responses
Addresses #2230
2022-01-01 17:29:36 +01:00
Adrian Kumpf
b4ad1ff2cd Remove unnecessary id attributes 2022-01-01 17:29:36 +01:00
Adrian Kumpf
2c3e8e0560 Revert "Use built-in get_in/2"
This reverts commit e53bdc1784.

Due to a bug with Elixir < 1.13 the built-in get_in/2 handles nil values
incorrectly.
2021-12-14 15:31:32 +01:00
Adrian Kumpf
fc2b188a31 Fix detection of refreshed Model S
Addresses #2193
2021-12-14 15:16:54 +01:00
Adrian Kumpf
e53bdc1784 Use built-in get_in/2 2021-12-13 19:40:43 +01:00
Adrian Kumpf
5113bc3c52 Update Chinese endpoints 2021-12-13 19:30:04 +01:00
Adrian Kumpf
977f423014 Use new Chinese endpoints
Related to #2214
2021-12-13 19:08:22 +01:00
Adrian Kumpf
0a127f60a9 Show error message if access is denied
Related to #2159
2021-11-17 17:39:28 +01:00
Adrian Kumpf
1992af38c3 Show token sign-up form by default 2021-11-12 17:39:20 +01:00