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

Enhancement: Adding "Since last refuel" endpoint data #271

Open
DerLev opened this issue Dec 26, 2024 · 0 comments · May be fixed by #273
Open

Enhancement: Adding "Since last refuel" endpoint data #271

DerLev opened this issue Dec 26, 2024 · 0 comments · May be fixed by #273

Comments

@DerLev
Copy link

DerLev commented Dec 26, 2024

Hey there 👋
I've noticed that this lib pulls data for the last trip from VW but not from the "Since last refuel" section.

I already looked into the api the VW frontend uses and the endpoint for fetching that data seems to be something like this:
https://www.volkswagen.de/app/authproxy/vw-de/proxy/vehicles/<VIN>/tripdata/cyclic?gdc=myvw-mbb-prod&resourceHost=myvw-vcf-prod

With the data being structured like this:

{
  "data": [
    {
      "tripEndTimestamp": "2024-12-25T18:03:25Z",
      "id": "3632080251",
      "tripType": "cyclic",
      "vehicleType": "fuel",
      "mileage_km": 192,
      "mileage_mi": null,
      "startMileage_km": 20866,
      "startMileage_mi": null,
      "overallMileage_km": 21059,
      "overallMileage_mi": null,
      "travelTime": 292,
      "averageFuelConsumption": 7,
      "averageFuelConsumptionUnit": "l_per_100km",
      "averageElectricConsumption": null,
      "averageElectricConsumptionUnit": null,
      "averageGasConsumption": null,
      "averageAuxConsumption": null,
      "averageRecuperation": null,
      "averageSpeed_kmph": 39,
      "averageSpeed_mph": null
    }
  ]
}

I have a VW Polo from 2021, so I don't know how this endpoint behaves with an EV.

I will be looking into implementing this endpoint into this project, hopefully my rusty python skills can achieve that 😉

PR coming soon™️ - Help is always appreciated

@DerLev DerLev linked a pull request Dec 26, 2024 that will close this issue
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.

1 participant