BMW-i-Remote icon indicating copy to clipboard operation
BMW-i-Remote copied to clipboard

Missing information that are available on the website

Open Lyve1981 opened this issue 6 years ago • 5 comments

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/<myVin>

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!

Lyve1981 avatar Aug 26 '17 19:08 Lyve1981

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 ...

thkl avatar Aug 29 '17 15:08 thkl

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?

rs38 avatar Sep 24 '17 11:09 rs38

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 !

thkl avatar Sep 24 '17 11:09 thkl

Please add stuff to the README.md 😁

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

edent avatar Sep 24 '17 11:09 edent

@edent I did!

rs38 avatar Nov 05 '17 11:11 rs38