Skip to content

Simple Node.js app for querying Tesla's owner API and pushing to Elasticsearch

License

Notifications You must be signed in to change notification settings

jchull/tesla-es-poller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tesla-es-poller

Simple, and poorly-written Node.js app for querying Tesla's owner API and pushing to Elasticsearch.

These dashboards aren't included, they are really simple, if you use Kibana, or have fingers, you can do this.

Sample Driving Dashboard

sample dashboard

Sample Charging Dashboard

sample dashboard

Disclaimers

This code was banged out in a couple of hours, there is very little to no exception handling, and the password is stored in plain text on your local system. If someone were to gain access to your .env file, they would have the password to your cars.

This code will NOT wake your car up, I will probably add that on a different interval soon.

Instructions

  1. Run npm install in main project directory: npm i
  2. Copy sample.env configuration file and name it .env
  3. Enter email and password for Tesla and for your Elasticsearch instance (leave blank if <<gasp>> it is unsecured)
  4. (optional) Change polling interval to your preference, value is in milliseconds, default is 60000 (1 minute)
  5. Start it: npm start

About

Simple Node.js app for querying Tesla's owner API and pushing to Elasticsearch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published