Commit Graph

589 Commits

Author SHA1 Message Date
Adrian Kumpf
9f6b25d4a9 Render LiveView summary of all vehicles 2019-04-13 19:24:30 +02:00
Adrian Kumpf
3093729021 Move create_car call into Vehicles 2019-04-13 19:24:30 +02:00
Adrian Kumpf
0d9126c77f Publish state changes via Phoenix.PubSub 2019-04-13 19:24:30 +02:00
Adrian Kumpf
a2519e7431 Add live_view 2019-04-13 19:24:30 +02:00
Adrian Kumpf
d9d9fc62db Insert position when starting :online state 2019-04-10 12:21:06 +02:00
Adrian Kumpf
3aa5614f5c Cast remaining position fields 2019-04-10 11:37:54 +02:00
Adrian Kumpf
a008776cb8 Unwrap Error struct 2019-04-10 11:37:31 +02:00
Adrian Kumpf
0da13ecd1b Fix start & end range determination 2019-04-09 22:25:36 +02:00
Adrian Kumpf
d1783970f4 Log and handle errors when resuming / suspending 2019-04-09 22:24:49 +02:00
Adrian Kumpf
74b6224f37 Log updates 2019-04-08 23:17:45 +02:00
Adrian Kumpf
f5b9df4be3 Explicitly suspend / resume logging 2019-04-08 21:42:46 +02:00
Adrian Kumpf
40e2b1c3a4 Wait until vehicle wakes up 2019-04-08 18:25:30 +02:00
Adrian Kumpf
a70f78d050 Leave suspend state on wake_up 2019-04-08 18:09:47 +02:00
Adrian Kumpf
69882768a4 Add /wake_up & /suspend routes 2019-04-08 15:46:58 +02:00
Adrian Kumpf
665865e380 Add wake_up & suspend calls 2019-04-08 15:46:58 +02:00
Adrian Kumpf
76208a456c Rename otp app 2019-04-07 13:42:51 +02:00
Adrian Kumpf
c8f9c0d711 Prepare building releases with distillery 2019-04-07 13:14:40 +02:00
Adrian Kumpf
417b32ac6d Keep charging state if suspending did not succeed 2019-04-07 13:14:40 +02:00
Adrian Kumpf
cd4a9fbbb4 Test Log 2019-04-06 18:59:56 +02:00
Adrian Kumpf
a75199e84f Calculate driving efficiency on a trip 2019-04-06 15:12:12 +02:00
Adrian Kumpf
dd78af39b9 Delete trips with 0 distance 2019-04-06 12:57:08 +02:00
Adrian Kumpf
ee75284a1f Calculate statistics when closing a charging process 2019-04-06 12:19:29 +02:00
Adrian Kumpf
ae0db5f0af Calculate statistics when closing a trip 2019-04-06 01:15:20 +02:00
Adrian Kumpf
4557d31f3a Add additional climate information 2019-04-05 22:49:17 +02:00
Adrian Kumpf
5a887d3de7 Add additional charging information 2019-04-05 18:37:56 +02:00
Adrian Kumpf
9052196b64 Tweak state transitions 2019-04-04 22:53:02 +02:00
Adrian Kumpf
b059d18469 Customize Api 2019-04-04 22:13:50 +02:00
Adrian Kumpf
2e572d847e Limit polling interval to 60 seconds when charging 2019-04-04 22:13:33 +02:00
Adrian Kumpf
e9d2943af5 Introduce :offline state 2019-04-04 22:13:33 +02:00
Adrian Kumpf
c5c2108dcc Convert values to metric system 2019-04-04 22:13:33 +02:00
Adrian Kumpf
ad09f53b9b Increase call timeouts 2019-04-04 22:13:33 +02:00
Adrian Kumpf
7c25138e74 Support multiple cars & overhaul table structure 2019-04-04 22:13:33 +02:00
Adrian Kumpf
f87af0877c Implement vehicle state machine 2019-04-04 15:13:54 +02:00
Adrian Kumpf
ae558567dd Create charging states 2019-04-04 15:13:54 +02:00
Adrian Kumpf
9f8c846387 Create drive states 2019-04-04 15:13:54 +02:00
Adrian Kumpf
e4bc0cd9e6 Create states 2019-04-04 15:13:54 +02:00
Adrian Kumpf
282338713b Create positions 2019-04-04 15:13:54 +02:00
Adrian Kumpf
4eb3cf1aee Authenticate and identify vehicles 2019-04-04 15:13:54 +02:00
Adrian Kumpf
3d95859dfe Initial commit 2019-03-31 14:00:40 +02:00