Open DurgNomis-drol opened 10 months ago
Old app had the information, the new does not. Seems it maybe because of Toyota... They have removed it
So there may not be much we can do here if it already no longer exists in the official app. Have you looked at the original responses from the endpoints to see if you can still get the information via one of them?
Hi @DurgNomis-drol. We currently get the odometer information via the telemetry endpoint using the get_telemetry_endpoint
function in mytoyota.api
.
However, there is also an odo
information that comes via the status endpoint with the get_remote_status_endpoint
. Could you have a look to see if you can get odometer information for your vehicle with that endpoint?
If so, we still need to clarify what the condition is for data to come via this endpoint. Our current assumption was that this status endpoint is only supported if the vehicle has vehicle_info.extended_capabilities.vehicle_status = True
in its capabilities. But your car doesn't seem to have this extended capability.
@CM000n when I was investigating the endpoints originally there are stacks of endpoints that have similar names but are /v1, /v2, /legacy, etc. The information for the missing information could be under one of these? I have some code somewhere(back from the original work) that hits all the endpoints looking for useful information. Do you think its useful to add it to the repository for people to try if information is missing?
Although in this case not sure it will find anything if its not showing up in the App.
That would certainly be interesting. But I think that would be best kept somewhere in the docs, if we ever make them: https://github.com/DurgNomis-drol/mytoyota/issues/18 But I think it's rather confusing and unnecessary directly in the production code.
Can you give me a hint on how to access the endpoint function directly?
Can you give me a hint on how to access the endpoint function directly?
Set Log level to DEBUG
here: https://github.com/DurgNomis-drol/mytoyota/blob/master/mytoyota/utils/logging/log_config.yaml#L30
Set capable
to True
here: https://github.com/DurgNomis-drol/mytoyota/blob/master/mytoyota/models/vehicle.py#L75
Run simple_client_example.py
and have a look what you get back for RemoteStatusResponseModel
.
Describe the bug A clear and concise description of what the bug is.
Using the API, I am missing the odometer information. This was available from the old endpoints.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here.