bimmer_connected icon indicating copy to clipboard operation
bimmer_connected copied to clipboard

BMW 225xe

Open vasaru opened this issue 8 years ago • 5 comments

In the Connected drive app I have values for the last trip driven. Is it possible to get these from the API as well?

Values that would be nice are Total distance Electric distance driven Consumption Duration From (location) To (location)

Thanks

bmw_225xe.zip

vasaru avatar Apr 09 '18 09:04 vasaru

@vasaru looking at the code here, this seems to be quite straight forward :yum: https://github.com/edent/BMW-i-Remote#get-last-trip

I'll give it a shot :dart:: It looks like this only works if your vehicle has "statisticsAvailable": true. And mine does not. So I can't really test it myself :unamused:

All I'm getting is:

{
  "lastTrip": {}
}

So I will need your help on this :smile:. The data on BMW-i-Remote is 2 years old :older_man: , so that might have changed since then, and I do not want to rely on this.

:arrow_right: Can you please checkout the PR https://github.com/m1n3rva/bimmer_connected/pull/65 and run the fingerprint again? I added some code :page_facing_up: to get the last trip from the server and dump it into last_trip_0.txt.

:warning: Please manually check that file for sensitive information, as I could not implement any anonymizing features to it, as I haven't seen the data format.

Once I get a proper example, I'll add the parsing features to the library.

m1n3rva avatar Apr 09 '18 20:04 m1n3rva

@vasaru did you give it a try?

m1n3rva avatar Apr 22 '18 07:04 m1n3rva

Haven't had time to test it yet. Too much going on at the moment ...

On Sun, Apr 22, 2018 at 9:03 AM m1n3rva [email protected] wrote:

@vasaru https://github.com/vasaru did you give it a try?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/m1n3rva/bimmer_connected/issues/64#issuecomment-383360295, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcsZ1bSaQuyVXiH0BjOaZY-RyiasmHZks5trCtLgaJpZM4TMNi7 .

vasaru avatar Apr 25 '18 14:04 vasaru

no feedback for a long time -> closing the ticket

m1n3rva avatar Sep 23 '18 16:09 m1n3rva

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Apr 25 '20 09:04 lock[bot]