Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 947 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 947 Bytes

This is a work-in-progress! Security is not implemented for the API

What this project can currently do

  • Stores tesla auth token in mongodb, Tesla password never stored in DB
  • Polling service will poll Tesla API and insert vehicle data when car is charging or driving
  • Hardcoded stuff: 15 minutes session gap, if you stop charging for 15 minutes, new charge session is created, etc
  • Set up: it's really manual right now, but basically: Start a mongodb docker instance, put the connection string in config/.env (see config/sample.env for example) Then start the server, create a user using the REST API, then you can start polling. Take a look at the routes, the user route is simple, I prefer to finish the UI to allow creation of accounts, etc

docker run -d --privileged -v jenkins_home:/var/jenkins_home -p 8000:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker jenkins/jenkins:lts