Commit Graph

67 Commits

Author SHA1 Message Date
Adrian Kumpf
4b23c8604e Upgrade to Elixir v1.11 2020-10-08 22:17: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
45d94d52b3 Implement database efficiency improvements
Closes #573
2020-04-11 14:49:44 +02:00
Adrian Kumpf
6086b06646 Do not preload settings when importing
This allows to use custom settings for the import without needing to
persists them.
2020-04-04 14:25:46 +02:00
Adrian Kumpf
c5176b60f9 Remove unused column 'power_avg' 2020-03-28 15:52:35 +01:00
Adrian Kumpf
a691784926 Use the Streaming API
Closes #417
2020-03-28 15:52:35 +01:00
Adrian Kumpf
86a6bee239 Add support for session fees
Closes #455
2020-03-09 12:56:11 +01:00
Adrian Kumpf
c0d1eefe44 Use the maximum kWh to calculate the charge cost
Closes #432
2020-03-02 10:59:23 +01:00
Adrian Kumpf
be0fffe56b Calculate charge cost based on location
Closes #386
2020-02-07 13:21:05 +01:00
Adrian Kumpf
f61315cb10 Implement TeslaFi import
Closes #316
2020-02-07 13:21:05 +01:00
Adrian Kumpf
1f5eb9d164 Use reported timestamps 2020-01-29 12:51:53 +01:00
Adrian Kumpf
99b71128cb Fix calculation of charge energy added
This is necessary if the value has already been reset by the vehicle.

Fixes #376
2020-01-23 13:39:04 +01:00
Adrian Kumpf
52c26fb74a Log missed software updates
Closes #328
2020-01-16 21:05:22 +01:00
Adrian Kumpf
35ced850e9 Add charge cost interface
Closes #185, closes #342
2020-01-15 18:28:12 +01:00
Adrian Kumpf
1099f87a23 Update a few log statements 2020-01-06 18:21:38 +01:00
Adrian Kumpf
bf8119b278 Apply phase correction automatically
Resolves #290
2019-12-15 15:36:10 +01:00
Adrian Kumpf
08b72d4e43 Rename module 2019-11-24 14:00:50 +01:00
Adrian Kumpf
9dda53a47f Add elevation to every position 2019-11-24 13:56:14 +01:00
Adrian Kumpf
549dedb3bf Decouple global from car-specific settings 2019-11-18 23:43:25 +01:00
Adrian Kumpf
915f1878f5 Reject efficiencies <= 0
Fixes #250
2019-11-16 12:24:19 +01:00
Adrian Kumpf
d1064179d8 Refactor Log module 2019-10-26 21:20:05 +02:00
Adrian Kumpf
f38a4221eb Implement phase correction 2019-10-26 21:19:10 +02:00
Adrian Kumpf
f46f454cdc Prevent negative values for charge energy added 2019-10-26 16:22:43 +02:00
Adrian Kumpf
0d4a82cc83 Tweak charge and drive aggregation queries 2019-10-25 23:13:45 +02:00
Adrian Kumpf
a96dedad11 Add "car in service" state
Resolves #217
2019-10-24 22:48:08 +02:00
Adrian Kumpf
3ff47c32e0 Complete charging session immediately 2019-10-24 15:57:49 +02:00
Adrian Kumpf
f2769869d6 Tweak calculation of charge energy used 2019-10-24 15:57:29 +02:00
Adrian Kumpf
b0e3f6002b Fix broken dashboard links 2019-10-23 22:46:24 +02:00
Adrian Kumpf
0a8d89c74d Timeout completed charges after 15 minutes 2019-10-20 15:35:23 +02:00
Adrian Kumpf
0dede3d3f5 Set correct end date for completed charges
Fixes #211
2019-10-20 15:35:16 +02:00
Adrian Kumpf
bef950a1a9 Calculate actual charge energy used 2019-10-19 21:54:56 +02:00
Adrian Kumpf
dca44e141f Use preferred range for efficiency calculation 2019-10-17 20:45:03 +02:00
Adrian Kumpf
abfa8c96d5 Device efficiency factor from charge data 2019-10-16 21:12:53 +02:00
Adrian Kumpf
d6f8b63d9c Decrease distance threshold 2019-10-08 18:19:52 +02:00
Adrian Kumpf
bfdee9cba7 Immediately return if one of the identifiers is nil 2019-10-06 13:19:47 +02:00
Adrian Kumpf
c775e17328 Use exact locations for geo-fence lookups 2019-10-03 20:19:24 +02:00
Adrian Kumpf
4339b6ddd0 Remove out-of-bounds check for positions 2019-09-30 23:15:40 +02:00
Adrian Kumpf
1982b413ef Add start & end rated range to charges 2019-09-13 21:29:33 +02:00
Adrian Kumpf
a1c7d8fbdd Add start & end rated range to drives 2019-09-13 20:40:58 +02:00
Adrian Kumpf
b5146c1045 Identify cars by VIN 2019-09-03 17:40:56 +02:00
Adrian Kumpf
08a5fa55e0 Only fetch positions whose latitude is within bounds 2019-09-03 17:00:57 +02:00
Adrian Kumpf
ac913ae632 Pick geo-fences from a map 2019-09-01 21:19:48 +02:00
Adrian Kumpf
9bd859dadf Keep mapping provider responsive all the time 2019-08-28 12:49:27 +02:00
Adrian Kumpf
090f383a88 Add elevation to new positions 2019-08-28 12:49:27 +02:00
Adrian Kumpf
26a33e4179 Paginate positions by id 2019-08-28 12:49:27 +02:00
Adrian Kumpf
e68035fa28 Update positions w/o elevation 2019-08-28 12:49:27 +02:00
Adrian Kumpf
8c6fc5e8ba Fix calculation of :charge_energy_added 2019-08-28 11:42:11 +02:00
Adrian Kumpf
17bb43faa9 Remove pre-calculated consumption columns 2019-08-21 20:21:00 +02:00
Adrian Kumpf
6f78bc7ca9 Wrap state update in a transaction 2019-08-21 12:47:17 +02:00
Adrian Kumpf
07c0cbfdb3 Show duration of current state 2019-08-18 20:32:23 +02:00