{"repo":"tobiasehlert/teslamateapi","free":true,"listed":false,"github":"https://github.com/tobiasehlert/teslamateapi","clone":"git clone https://github.com/tobiasehlert/teslamateapi.git","description":"TeslaMateApi is a RESTful API to get data collected by self-hosted data logger TeslaMate in JSON.","language":"Go","stars":240,"topics":["mqtt","tesla","teslamate","self-hosted","restful-api","api"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"TeslaMateApi TeslaMateApi is a RESTful API to get data collected by self-hosted data logger TeslaMate in JSON. - Written in Golang - Data is collected from TeslaMate Postgres database and local MQTT Broker - Endpoints return data in JSON format - Send commands to your Tesla through the TeslaMateApi Table of Contents - How to use - Docker-compose - Environment variables - API documentation - Available endpoints - Authentication - Commands - Security information - Credits How to use You can either use it in a Docker container or go download the code and deploy it yourself on any server. Docker-compose If you run the simple Docker deployment of TeslaMate, then adding this will do the trick. You'll have TeslaMateApi exposed at port 8080 locally then. If you are using TeslaMate Traefik setup in Docker with environment variables file (.env), then you can simply add this section to the services: section of the docker-compose.yml file: In this case, the TeslaMateApi would be accessible at teslamate.example.com/api/ Environment variables Basically the same environment variables for the database, mqqt and timezone need to be set for TeslaMateApi as you have for TeslaMate. Required environment variables (even if there are some default values available) Variable Type Default ------------------ ------ --------------- DATABASE USER string teslamate DATABASE PASS string secret DATABASE NAME string teslamate DATABASE HOST string database ENCRYPTION KEY string MQTT HOST string mosquitto TZ st","default_branch":null,"files":null,"tree":[],"storefront":"/r/tobiasehlert","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tobiasehlert/teslamateapi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}