9 posts / 0 new
Last post
glynhudson
A Better Route Planner Script error

Hi, I'm trying to get the ABRP script working following the instructions: https://docs.openvehicles.com/en/latest/plugin/abrp/README.html

I've successfully created `/store/scripts/sendlivedata2abrp.js` and `/store/scripts/ovmsmain.js` and inserted my ABRP token and car model into the script. 

However, when I try to run the script with

`script eval abrp.info()`

I get the

`ERROR: ReferenceError: identifier 'abrp' undefined (line 1)`

Any idea what I'm doing wrong? I'm running the exact script copy and pasted from the docs.

I'm running OVMS firmware 3.2.013

 

 

KommyKT
i think the problem in '

i think the problem in '/store/scripts/ovmsmain.js' on your board:

- not added "abrp = require("sendlivedata2abrp"); " to it

- not restarted after the file change the OVMS module or "Reload JS Engine"
Reload JS Engine: open OVMS web interface tools menu - Editor and now see the button

glynhudson
Thanks a lot,

Thanks a lot, I missed the step add ovmsmain.js and to reboot the OVMS module after installing the script. 

The docs are a bit confusing since the section to test the script is before the section which mentions modifying ovmsmain,js

Thanks a lot for your help. This is such a great integration. If possible it should be integrated into OVMS as standard and configured via the GUI.

I've enabled using 'script eval abrp.send(1)', however data seems to just get sent to ABRP once. Is there an extra step to get it to post periodically? I can see from the script it should be every 60s 

 

 

 

inf0mike
inf0mike's picture
so script eval abrp.send(1)

so script eval abrp.send(1) will enable sending data every 60 seconds however, the script checks to see if certain parameters have changed and does not send data to ABRP if they have not.

Data will be sent if any of these parameters change:

  • State of charge
  • State of Health
  • Latitude
  • Longitude
  • Altitude (by at least 2 meters)
  • Charging status

It is also worth noting that you will not see any notification of subsequent data being sent.

Finally, I committed some minor fixes to the script yesterday so you might want to update your script.

Regards,

Mike.

OVMSuserLodger
ABRP script error

Hi, as per Glyn Hudson's post above at 6 July, 2020 - 00:26, I've done the same, i.e. 

I've successfully created `/store/scripts/sendlivedata2abrp.js` and `/store/scripts/ovmsmain.js` and inserted my ABRP token and car model into the script. 

However, when I try to run the script with

`script eval abrp.info()`

I get the

ERROR: ReferenceError: identifier 'exports' undefined
    at [anon] (duk_js_var.c:1236) internal
    at eval (eval:308) preventsyield (line 308)

Any idea what I'm doing wrong? I'm running the exact script copied and pasted from the docs.

I'm running OVMS firmware 3.3.002

Thanks!

OVMSuserLodger
A Better Route Planner Script error

Sorry that should have read, "I'm running OVMS firmware 3.2.002"

OVMSuserLodger
ABRP script error

Apologies if this posts multiple times, I seem to be having problems with recaptcha ...

What I'm trying to post is, my firmware version should have read 3.3.002

Thanks

dteirney
The script content referenced

The script content referenced in the OVMS plugin docs are well out of date. https://www.openvehicles.com/node/3294 is a relevant post that you might want to consider regarding a hot off the press version 2.0 release. I'll be contributing a PR to the OVMS docs once the new version of the plugin makes its way into the ABRP (Internio) github repository.

degul2000
Does one need to be a premium

Does one need to be a premium subscription user for ABRP for v2 to work? I've installed it and there is no change to the stops in the map when I use ABRP. It's saying I can get to San Francisco with 1 charge when I know that my car only has 16 miles on the Guess-o-Meter and it would take at least 2 stops to charge on the way.

Log in or register to post comments
randomness