Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 Cokpit status API #50

Closed
sumoo13 opened this issue Mar 3, 2020 · 2 comments · Fixed by #57
Closed

V2 Cokpit status API #50

sumoo13 opened this issue Mar 3, 2020 · 2 comments · Fixed by #57

Comments

@sumoo13
Copy link

sumoo13 commented Mar 3, 2020

New endpoint (GET): car-adapter/v2/cars/{vin}/cockpit.

Example response:
[data] => Array ( [type] => Car [id] => VF1BG000155836384 [attributes] => Array ( [totalMileage] => 5134.08 ) )
just add 2 decimal ...

@MattCheetham
Copy link

Awesome, thanks for finding this one. Was frustrating me that my reading was sometime a little bit out. Presumably due to rounding!

@mfonville
Copy link
Contributor

Great find, a PR for this would be trivial:

    def mileage(self):
        return self._get('cockpit', version=2)

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

Successfully merging a pull request may close this issue.

3 participants