Commit Graph

8 Commits

Author SHA1 Message Date
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
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
paulhargreaves
9b85d7a4fe Update environment_variables.md (#1736)
Fix typo
2021-06-23 16:25:40 +02:00
Adrian Kumpf
ab7556e8af Allow to use non-standard MQTT ports 2021-01-03 22:40:07 +01:00
Adrian Kumpf
37a60829ab Allow to connect to MQTT broker via IPv6
Addresses #1000
2020-12-01 18:09:24 +01:00
Adrian Kumpf
e0b3d3d6b5 Allow to connect to Postgres via IPv6 (#1006) 2020-11-05 12:20:09 +01:00
dyxyl
2765ae81f3 Add option HTTP_BINDING_ADDRESS to control the bound IP address (#665)
* Add option HTTP_BINDING_ADDRESS to control the IP address where the web interface is exposed.

* Fix doc typo.

* Keep mix format quiet with some empty lines.
2020-05-02 12:34:52 +02:00
Adrian Kumpf
c6b265788c Migrate docs to docusaurus
Fixes #564
2020-04-07 19:32:18 +02:00