edent / BMW-i-Remote

A reverse engineered interface for the BMW i3 Electric Car
MIT License
388 stars 60 forks source link

Get misc SoC Data not working anymore #47

Open cp1983 opened 5 years ago

cp1983 commented 5 years ago

Get misc SoC Data is not working anymore. I guess this has something to do with the link used to get it.

Error i get in from the server is: The remote server returned an error: (403) Forbidden.'

Does anyone know how to get the SoC data now.

Still get the charge percentage. However not SOCmax and SOC

rs38 commented 5 years ago

I had that issue 1-2 weeks ago and that was a temp. issue from BMW, as you was not able to login with the browser too.

cp1983 commented 5 years ago

So you are able to get the State of charge now? For instance 19.3 kWh

Christian

Den ons. 21. nov. 2018, 08:26 skrev Falco <notifications@github.com:

I had that issue 1-2 weeks ago and that was a temp. issue from BMW, as you was not able to login with the browser too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edent/BMW-i-Remote/issues/47#issuecomment-440563688, or mute the thread https://github.com/notifications/unsubscribe-auth/AFGAueZn-SJAKv5Sor08yXY3nPQ9JDPXks5uxQAMgaJpZM4Yr6Fz .

rs38 commented 5 years ago

true, currently I get 403, but can login via browser and see the SOC in the json: https://www.bmw-connecteddrive.de/api/vehicle/navigation/v1/WBxyz

rs38 commented 5 years ago

there are still some issues with BMW, even their current app behaves strange, does not update. quite well known, if you google for CD problems.

rs38 commented 5 years ago

it seems that BMW changed and devides the scope of their access token (which makes sense). You now need an additional token that is only used for the portal based webservice calls like the one with socmax. there are some solutions in the wild in either PHP or python. check e.g. https://github.com/sergejmueller/battery.ebiene.de/blob/master/_inc/api.class.php @cp1983