Commit Graph
117 Commits
Author SHA1 Message Date
54a4ee8b61 feat: check Postgres version on startup, require 16.7 / 17.3, update earthdistance extension (#4648)
* check postgres version on startup

* update earthdistance to 1.2

* detail postgres requirement

* align additional requirements

* 17 is available on nixpkgs now

* allow upcoming major as well but issue a warning

* style: linter findings

* ci: skip ghcr build for PRs from outside repo (#4660)

* ci: skip ghcr build for PRs from outside repo

* docs: update changelog

* ci: early exit if check paths triggers

* ci: improve ghcr check_if_pr_from_outside_repo logging

* feat:show tpms value to the low pressure tooltip in webview (#4654)

* Added the tpms value to the tooltip

* Update pot files

* mix format

* Revert "mix format"

This reverts commit bbfe5aaa9f.

* style: linter findings

* Update pot files

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
Co-authored-by: Nir Klinger <45952578+NirKli@users.noreply.github.com>
2025-04-15 10:53:38 +02:00
Matthias Wirtz c67573e708 feat: PostgreSQL 17 (#4231) 2024-09-29 11:17:31 +02:00
Matthias Wirtz c64384f0f6 add moving average / percentiles to charge level (#4200) 2024-09-16 14:09:45 +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
Adrian Kumpf 2094c25e33 Fix formatting 2023-06-12 11:39:29 +02:00
IlyaDialloandIlya Diallo 21cb083ec5 Add composite index to position and drop drive_id index (#3186)
Co-authored-by: Ilya Diallo <idiallo@waplanner.com>
2023-06-12 11:34:21 +02:00
Adrian Kumpf 8756c66bca Fix typos 2023-02-03 21:20:10 +01:00
Adrian Kumpf a413e8ce2c Add setting to select tire pressure units 2022-07-18 11:35:14 +02:00
NirKliandAdrian Kumpf 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 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 835326f8b3 Add NOT NULL constraint to charging_processes.start_date
Fixes #2088
2021-10-22 12:46:22 +02:00
Adrian Kumpf ddadd54b6b Add NOT NULL constraint to display_priority 2021-08-31 17:35:52 +02:00
Lee WillisandLee Willis a74786aa42 Car display priorities (pass 1) (#1904)
* Add display_priority column to cars table

* Respect display_priority in grafana, falling back to name

* Use smallint for priority rather than int

* Update missed dashboards to respect car priorities

Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
2021-08-31 17:16:07 +02:00
Adrian Kumpf 9ca3830f04 Refresh access tokens with new auth endpoint 2021-01-30 19:20:49 +01:00
Adrian Kumpf a36b409856 Remove unused alias 2021-01-19 17:47:07 +01:00
Adrian Kumpf 410d277f2e Use built-in Ecto enum type 2021-01-09 00:08:36 +01:00
Adrian Kumpf 5a2ca3ebcf Update the default sleep requirements
… so that the car does not need to be locked to go to sleep.
2020-07-09 19:02:47 +02:00
Adrian Kumpf 7c7494aa07 Update latest drop statements to be IF EXISTS
Related to #768
2020-06-01 16:30:12 +02:00
Adrian Kumpf edc0b5d964 Optimize conversion helper functions 2020-05-30 13:02:28 +02:00
Adrian Kumpf a25ab36903 Rename unit enums 2020-05-30 12:40:42 +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 b6f061536a Drop unused indexes
Addresses #669
2020-05-02 16:08:37 +02:00
Adrian Kumpf 45d94d52b3 Implement database efficiency improvements
Closes #573
2020-04-11 14:49:44 +02:00
Adrian Kumpf a457d17ffa Enable streaming for new users as well 2020-04-04 13:43:42 +02:00
Adrian Kumpf 758923b04e Enable streaming by default 2020-04-02 16:33:33 +02:00
Adrian Kumpf f1e434e9c9 Remove outdated sleep mode requirements 2020-04-02 16:33:33 +02:00
Adrian Kumpf a36fb8d66c Remove option to disable sleep mode 2020-04-02 16:33:33 +02:00
Adrian Kumpf c5176b60f9 Remove unused column 'power_avg' 2020-03-28 15:52:35 +01:00
Adrian Kumpf 2f8defff06 Add feature flag for the Streaming API 2020-03-28 15:48:37 +01:00
Adrian Kumpf 9994d77111 Use 'rated' as default preferred range
The changes in 896e679 had no effect on new installations.
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
Adrian Kumpf 1e3ada6968 Reorder city aliases
Closes #489
2020-03-06 14:28:36 +01:00
Adrian Kumpf 35b623e28f Store more vehicle config attributes
Closes #468
2020-03-02 12:42:05 +01:00
Adrian Kumpf 2aa14c62be Executes queue migration commands immediately 2020-02-23 12:23:57 +01:00
Adrian Kumpf 896e67909f Use 'rated' as default preferred range 2020-02-16 13:30:32 +01:00
Adrian Kumpf 2d0e309a6b Avoid checking out unnecessary connections 2020-02-16 12:41:02 +01:00
Pierre Belanger 5bb546eba5 [ISSUE-434] Increase charge cost scale / kWh (#440) 2020-02-12 12:34:51 +01:00
Adrian Kumpf be0fffe56b Calculate charge cost based on location
Closes #386
2020-02-07 13:21:05 +01:00
Adrian Kumpf 7322e9d8c2 Set ON DELETE foreign key constraints 2020-02-06 15:51:30 +01:00
Adrian Kumpf 0c1918d21b Use osm_id instead of place_id 2020-01-21 14:27:11 +01:00
Adrian Kumpf dbff8327bf Add language setting 2020-01-21 14:27:11 +01:00
Christian Traber bc3c002ace add usable_battery_level to charges 2020-01-18 14:33:34 +01:00
Christian Traber 3b7bb02c34 format fixed 2020-01-14 14:52:22 +01:00
Christian Traber e6dccc80af add usable_battery_level to schema and log it 2020-01-14 14:52:22 +01:00
Adrian Kumpf 6aca7fb017 Fix recalculation of charge energy used
... for charges without data points.
2019-12-24 10:21:53 +01:00
Adrian Kumpf e25b965304 Add migration to recalculate 'charge energy used' 2019-12-15 15:36:26 +01:00
Adrian Kumpf 93d3e817f9 Remove manual phase correction 2019-12-15 15:36:26 +01:00
Adrian Kumpf dde12b0e5b Add option to overwrite sleep mode per geo-fence
Resolves #251
2019-11-24 14:00:50 +01:00