WonkiDonk / homebridge-jlr-incontrol

Jaguar Land Rover InControl plugin for homebridge: https://github.com/nfarina/homebridge
16 stars 3 forks source link

update #7

Closed Mx-Razvan closed 4 years ago

Mx-Razvan commented 4 years ago

Hi,

it seems that after the incontrol last update the plugin isn't working anymore. Any ideas? Also - it would be possible to expose the fuel level instead of charging state?

Thanks<

R

wakkoroti commented 4 years ago

Looks like JLR changed all the URLs. Been poking in the index.js to change them and was able to get it to authenticate but not actually post a status yet. Blergh. Here are the new URLs though

IFAS_BASE_URL = "https://ifas.prod-row.jlrmotor.com/ifas/jlr" IFOP_BASE_URL = "https://ifop.prod-row.jlrmotor.com/ifop/jlr" IF9_BASE_URL = "https://if9.prod-row.jlrmotor.com/if9/jlr"

Maybe this also needs to be appended to the status call but not sure where that applies in the code here:

'status?includeInactive=true'

Mx-Razvan commented 4 years ago

Thanks for the feedback. I will play with it and see what will happen

wakkoroti commented 4 years ago

Got it to work by replacing the URLs and then changing some of the header versions. I left the header version at v2 for health status to get around it needing the status?includeInactive=true. Attaching index.js that I edited at /usr/local/lib/node_modules/homebridge-jlr-incontrol/dist. Rename to .js from .txt index.txt

Mx-Razvan commented 4 years ago

Thanks! I will try these days. What about exposing the fuel level instead of charging state? Any ideas? I'm looking over some JLR api docs but somehow they seems incomplete.

Many thanks,

R

bluntiless commented 4 years ago

Thanks @wakkoroti for the information regarding the new URL'S. I replaced the index.js file with the updated URL'S and it started working again immediately! Thanks again.

william-cowell-mf commented 4 years ago

FYI I've updated the plug-in with the updated URLs. Thanks.

WonkiDonk commented 4 years ago

Fix is included in v0.4.0