Commit Graph

58 Commits

Author SHA1 Message Date
Adrian Kumpf
835326f8b3 Add NOT NULL constraint to charging_processes.start_date
Fixes #2088
2021-10-22 12:46:22 +02:00
Adrian Kumpf
d0d305f1c3 Prefix unused variables with '_' 2020-10-07 18:36:05 +02:00
Adrian
c0c7cd5b77 Allow negative cost_per_unit for geofences (#968)
* Allow negative cost_per_unit for geofences

* Test cost calculation for negative cost

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-10-04 11:27:36 +02:00
dependabot[bot]
15afc1cc3d Bump ex_cldr from 2.16.2 to 2.17.0 (#908) 2020-09-14 16:36:19 +00:00
Adrian Kumpf
64c428ee71 Gracefully handle locations that cannot be geocoded
Fixes #898
2020-09-05 01:42:32 +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
c5176b60f9 Remove unused column 'power_avg' 2020-03-28 15:52:35 +01:00
Adrian Kumpf
1e86761314 Update the tests so that 'rated' is used by default
Follow-up of 9994d77
2020-03-11 15:36:08 +01:00
Adrian Kumpf
14a5acf7cb Allow to enter total cost or cost per KWh used
Closes #457
2020-03-11 15:11:13 +01:00
Adrian Kumpf
86a6bee239 Add support for session fees
Closes #455
2020-03-09 12:56:11 +01:00
Adrian Kumpf
35b623e28f Store more vehicle config attributes
Closes #468
2020-03-02 12:42:05 +01:00
Adrian Kumpf
c0d1eefe44 Use the maximum kWh to calculate the charge cost
Closes #432
2020-03-02 10:59:23 +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
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
0c1918d21b Use osm_id instead of place_id 2020-01-21 14:27:11 +01:00
Adrian Kumpf
c562eff7ad Attempt to make tests more robust 2020-01-18 14:33:58 +01:00
Adrian Kumpf
93d3e817f9 Remove manual phase correction 2019-12-15 15:36:26 +01:00
Adrian Kumpf
bf8119b278 Apply phase correction automatically
Resolves #290
2019-12-15 15:36:10 +01:00
Adrian Kumpf
f773d19cdb Format code 2019-11-19 00:54:39 +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
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
0c31683e86 Increase the precision of timestamps 2019-10-20 15:35:23 +02:00
Adrian Kumpf
0a8d89c74d Timeout completed charges after 15 minutes 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
dca44e141f Use preferred range for efficiency calculation 2019-10-17 20:45:03 +02:00
Adrian Kumpf
7630b3780d Create TestHelper.eventually/2 2019-10-16 22:08:40 +02:00
Adrian Kumpf
abfa8c96d5 Device efficiency factor from charge data 2019-10-16 21:12:53 +02:00
Adrian Kumpf
c775e17328 Use exact locations for geo-fence lookups 2019-10-03 20:19:24 +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
ab5f488408 Identify vehicle using :vehicle_config 2019-08-28 17:29:47 +02:00
Adrian Kumpf
090f383a88 Add elevation to new positions 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
aaeb46b0a5 Test handling of states with more than one car 2019-08-21 16:57:27 +02:00
Adrian Kumpf
07c0cbfdb3 Show duration of current state 2019-08-18 20:32:23 +02:00
Adrian Kumpf
13175883de Interpret a significant offline period with SOC gains as charge session 2019-08-18 20:32:23 +02:00
Adrian Kumpf
1f28f6a1b4 Store car name 2019-08-18 20:32:23 +02:00
Adrian Kumpf
8625cb139b Rename trip to drive 2019-08-12 23:48:16 +02:00
Adrian Kumpf
082ca1e93e Complete charging procs earlier & resume if necessary 2019-08-05 12:54:14 +02:00
Adrian Kumpf
a783b11f8c Delete canceled updates 2019-06-19 22:57:30 +02:00