A Better Routeplanner (ABRP) is an electric vehicle (EV) focussed route planner that incorporates planning of EV charging stops.
This OVMS plugin sends live telemetry data from the vehicle to ABRP to be used for the route planning process and appropriate updates to the plan along the way based on live information.
- Register with A Better Routeplanner (ABRP) and login
- Setup your vehicle, starting with Select car model
- In the settings for the new vehicle, click on the Live data button to generate a generic token. Keep a record of this token
- Login to the OVMS web console
- Navigate to the Tools -> Editor menu item
- Create a new
libdirectory in/store/scriptsif it does not exist - Create a new
abrp.jsfile in the/store/scripts/libdirectory - Copy the content of the
lib/abrp.jsfile in this repository to that new file and save - Create a new
ovmsmain.jsfile in/store/scriptsif it does not exist - Copy the content of the
ovmsmain.jsfile in this repository to that new file and Save
The 2.0.1 version of the plugin changed to use HTTPS to communicate with the ABRP API. This requires a new trusted root CA certificate to be installed into OVMS as per the instructions at the OVMS SSL/TLS UserGuide
This repo contains the trusted root CA certificate for the ABRP API server
hosted at api.iternio.com.
- Login to the OVMS web console
- Navigate to the Tools -> Editor menu item
- Create a new
trustedcadirectory in/store/if it does not exist - Create a new
Baltimore CyberTrust Root.cerfile in the/store/trustedcadirectory - Copy the contents of the same
Baltimore CyberTrust Root.cerfile in this repo into that file - Navigate to the Tools -> Shell menu item
- Execute the following message:
tls trust reload - Execute the following message:
tls trust listand confirm thatBaltimore CyberTrust Root.cershows up in the list
-
Navigate to Tools -> Shell in the OVMS web console
-
In the OVMS shell issue the following command substituting
<token>with the live data generic token that was set up for the vehicle in ABRPconfig set usr abrp.user_token <token>
- Navigate to Tools -> Editor in the OVMS web console and press the
Reload JS Engine button. This should result in an
ABRP::startednotification if the plugin is installed and configured correctly.
With the configuration described above the ABRP plugin will automatically send live telemetry from the vehicle to ABRP on a periodic basis. When data is sent depends on what is happening for the vehicle. For example, when driving, information will be sent more frequently than when charging, and even less often when the car is off.
script eval abrp.info()- display vehicle telemetry that would be sent to ABRPscript eval abrp.onetime()- send current telemetry to ABRP once onlyscript eval abrp.send(1)- start periodically sending telemetry to ABRP (when necessary)script eval abrp.send(0)- stop sending telemetryscript eval abrp.resetConfig()- reset configuration