Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Missing information that are available on the website #38

Open
Lyve1981 opened this issue Aug 26, 2017 · 5 comments
Open

Missing information that are available on the website #38

Lyve1981 opened this issue Aug 26, 2017 · 5 comments

Comments

@Lyve1981
Copy link

So far I made good progress with a nodejs relication, thanks for the very useful documentation. Some information that I cannot find though by using API that are available on the website are detailed battery informations:

The URI here returns it:

https://www.bmw-connecteddrive.de/api/vehicle/navigation/v1/

The resulting json is:
{
"latitude" : ...,
"longitude" : ...,
"isoCountryCode" : "...",
"auxPowerRegular" : ...,
"auxPowerEcoPro" : ...,
"auxPowerEcoProPlus" : ...,
"soc" : ...,
"socMax" : ...,
"pendingUpdate" : false,
"vehicleTracking" : true
}

the values soc and socMax are very interesting because they mean the state of charge in kilowatts and the maximum respectively.

Any idea how I could retrieve these values by using the API?

Thanks!

@thkl
Copy link

thkl commented Aug 29, 2017

just call the url as the other api calls with your VIN at the end. You have to add the authorization header and it works ...

@rs38
Copy link
Contributor

rs38 commented Sep 24, 2017

thanks, I noticed these further calls while F12 inspecting the connected website, but did not try the same auth header and adding VIN...
This is how the response looks when querying an i8:

{
  "latitude" : 52.250584,
  "longitude" : 3.7717776,
  "isoCountryCode" : "DEU",
  "auxPowerRegular" : 1.4,
  "auxPowerEcoPro" : 1.2,
  "auxPowerEcoProPlus" : 0.4,
  "soc" : 4.019000053405762,
  "socMax" : 5.6,
  "eco" : "1c94,1206,d9d,d0f,cd3,cf9,e2d,f49,10ec,10ec,117c",
  "norm" : "1e15,12f9,e54,dbf,d82,da7,eed,1017,11d0,1483,19a9",
  "ecoEv" : "c31,799,5c5,5a5,5ae,5fc,6fb,861,9df,9df,9df",
  "normEv" : "cd5,800,613,5f1,5fc,64c,759,8d2,a65,bf8,e7d",
  "vehicleMass" : "1560",
  "kAccReg" : "1440000",
  "kDecReg" : "3420000",
  "kAccEco" : "1548000",
  "kDecEco" : "3240000",
  "kUp" : "1800000",
  "kDown" : "2700000",
  "driveTrain" : "phev_otto",
  "pendingUpdate" : false,
  "vehicleTracking" : true
}

should be added to the readme.md, shouldn't it?
Any other usefull calls I missed?

@thkl
Copy link

thkl commented Sep 24, 2017

also interesting : with https://www.bmw-connecteddrive.de/api/vehicle/image/v1/_VIN_?startAngle=0&stepAngle=10&width=780 you get a json with 36 urls to rendered images of your car.

Edit : Without any credentials !

@edent
Copy link
Owner

edent commented Sep 24, 2017

Please add stuff to the README.md 😁

I don't have an i3 any more, so can't check. But I trust you.

@rs38
Copy link
Contributor

rs38 commented Nov 5, 2017

@edent I did!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants