Commit Graph

107 Commits

Author SHA1 Message Date
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 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
Adrian Kumpf
66bafcb66d Add option to disable sleep mode 2019-11-24 14:00:50 +01:00
Nathan Gardiner
a0618d314d Merge 20191117042320_add_cost_field_to_charges.exs (Charge Cost field) (#258)
* Create 20191117042320_add_cost_field_to_charges.exs

* Update 20191117042320_add_cost_field_to_charges.exs

Add end block

* Update 20191117042320_add_cost_field_to_charges.exs

Fix type definition and correct table (thanks @adriankumpf!)

* Update 20191117042320_add_cost_field_to_charges.exs

Resolve required mix formatting
2019-11-24 13:55:47 +01:00
Adrian Kumpf
549dedb3bf Decouple global from car-specific settings 2019-11-18 23:43:25 +01:00
Adrian Kumpf
30d10d29a0 Display link to Grafana dashboards
... if a URL was entered on the Settings page.

Resolves #235
2019-11-17 16:56:03 +01:00
Adrian Kumpf
f38a4221eb Implement phase correction 2019-10-26 21:19:10 +02:00
Adrian Kumpf
0c31683e86 Increase the precision of timestamps 2019-10-20 15:35:23 +02:00
Adrian Kumpf
bef950a1a9 Calculate actual charge energy used 2019-10-19 21:54:56 +02:00
Adrian Kumpf
db3b1ac71b Prefix "ll_to_earth" with "public."
Fixes #192
2019-10-08 21:59:58 +02:00
Adrian Kumpf
d5691e2cea Add GIST index based on ll_to_earth 2019-10-08 18:15:25 +02:00
Adrian Kumpf
25004de584 Format code with MIX_ENV=dev 2019-10-03 20:43:54 +02:00