TA2k / ioBroker.vw-connect

ioBroker Adapter for VW We connect and Skoda connect
MIT License
93 stars 23 forks source link

Feature-Request: Images of car, which are also visible in App #204

Open tarikweiss opened 2 years ago

tarikweiss commented 2 years ago

Feature It would be nice to get URLs for photos (or possibly base64 images) of the car. It is very useful for visualizing (possibly multiple) cars.

Is it possible to fetch the urls from the api?

TA2k commented 2 years ago

Which type/brand

tarikweiss commented 2 years ago

Audi - Audi A3 40 TFSIe

tarikweiss commented 2 years ago

Are you contactable in discord? I found out something about the personal data and why there might be a chance for other brands to get them.

tarikweiss commented 2 years ago

https://www.audi.de/userinfo/patp/v1/vgql/v1/graphql this is btw the url which is getting called on the web version of "myAudi". To this adress a graphql is sent to access the data. May this be interesting?

TA2k commented 2 years ago

Yes on audi you can access the images via this url

https://app-api.live-my.audi.com/vgql/v1/graphql
{
    "query": "query renderPictures($vehicleCoreId: String!) {\n  vehicle(vehicleCoreId: $vehicleCoreId) {\n    renderPictures {\n      mediaType\n      url\n    }\n  }\n}",
    "variables": {
        "vehicleCoreId": "VIN"
    }
}

But it is not that easy to include this in the adapter because the new graphql api is only implemented for the etron models because it is not needed for the non etron models

tarikweiss commented 2 years ago

Oh I see. Furthermore I think I did find some information for other personal data. Where may I contact you? (I am not that familiar with nodejs)