Skip to content

Docker image to retrieve metrics from the Renault API and store them in InfluxDB (only tested for ZOE ZE50)

Notifications You must be signed in to change notification settings

nheinemans/renault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Create Docker image:
touch pyze.json
docker build -t renault .
  1. Generate pyze.json:
docker run -v $(pwd)/pyze.json:/root/.credentials/pyze.json -e GIGYA_API_KEY=3_e8d4g4SE_Fo8ahyHwwP7ohLGZ79HKNN2T8NjQqoNnk6Epj6ilyYwKdHUyCw3wuxz -e KAMEREON_API_KEY=oF09WnKqvBDcrQzcW1rJNpjIuy7KdGaB -it --rm renault pyze login
  1. Update Docker image with pyze.json (which contains your Renault login info):
docker build -t renault .
  1. Get a list of all vehicles in your account:
docker run --rm renault pyze vehicles
  1. Run the container every 5 minutes to send metrics to InfluxDB:
docker run --rm -e VIN=<VIN> renault
  1. Create this CQ in influxdb to calculate the max theoretical range (km):
CREATE CONTINUOUS QUERY "cq_mtr" ON "renault" BEGIN SELECT (mean("range")/mean("percentage")*100) AS "mtr" INTO "battery" FROM "battery" GROUP BY time(5m), * END
  1. Only for ZE50 models, create this CQ in influxdb to calculate the cars efficiency (kWh/km):
CREATE CONTINUOUS QUERY "cq_kwhperkm" ON "renault" BEGIN select mean("energy")/mean("range") AS "kwhperkm" INTO "battery" from battery group by time(5m), * END

About

Docker image to retrieve metrics from the Renault API and store them in InfluxDB (only tested for ZOE ZE50)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published