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