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

how to get information for a single vehicle? #329

Open
noyax opened this issue Feb 6, 2024 Discussed in #328 · 2 comments
Open

how to get information for a single vehicle? #329

noyax opened this issue Feb 6, 2024 Discussed in #328 · 2 comments

Comments

@noyax
Copy link

noyax commented Feb 6, 2024

Discussed in #328

Originally posted by noyax February 6, 2024
Hello, I have two vehicles associated with my mytoyota account and I would like to have the information only for one vehicle, is this possible and if so how should I do it?

thanks in advance

@noyax
Copy link
Author

noyax commented Feb 6, 2024

ok I found a solution, in the simple_client_example.py file I added a condition on the VIN number:

for car in cars:
    await car.update()
    if (car.vin) == "xxxxxx":

If you have another solution

@CM000n
Copy link
Collaborator

CM000n commented Mar 13, 2024

The simple_client_example.py example is, as the name suggests, only an example, and not the mytoyota python lib itself 😉
So you can use it as you like. 😊

Obtaining data for a specific vehicle always requires knowing the VIN of that vehicle. Since we assume that the majority of users do not know the VIN of their vehicle, the query of data for a specific Vin is not integrated as a callable parameter. We therefore automatically determine all vehicles for a user first.

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

No branches or pull requests

2 participants