Coder Social home page Coder Social logo

laymer / teslamate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teslamate-org/teslamate

0.0 1.0 0.0 19.13 MB

A self-hosted data logger for your Tesla ๐Ÿš˜

License: MIT License

Elixir 95.14% CSS 0.84% JavaScript 2.00% HTML 0.66% Dockerfile 0.37% Makefile 0.15% Shell 0.85%

teslamate's Introduction

TeslaMate

A powerful, self-hosted data logger for your Tesla.

  • Written in Elixir
  • Data is stored in a Postgres database
  • Visualization and data analysis with Grafana
  • Vehicle data is published to a local MQTT Broker

Features

Dashboards

  • Lifetime driving map
  • Drive and charging reports
  • Driving efficiency report
  • Consumption (net / gross)
  • Charge energy added vs energy used
  • Vampire drain
  • Projected 100% range (battery degradation)
  • SOC charging stats
  • Visited addresses
  • History of installed updates

General

  • Little to no additional vampire drain: the car will fall asleep after a certain idle time
  • Automatic address lookup
  • Locally enriches positions with elevation data
  • Geo-fencing feature to create custom locations
  • Supports multiple vehicles per Tesla Account

Screenshots

Drive Details Web Interface

MORE SCREENSHOTS

Quick Start

The recommended way to install and run TeslaMate is to use Docker. Create a file called docker-compose.yml with the following content:

docker-compose.yml

version: '3'

services:
  teslamate:
    image: teslamate/teslamate:latest
    restart: always
    environment:
      - DATABASE_USER=teslamate
      - DATABASE_PASS=secret
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=db
      - MQTT_HOST=mosquitto
    ports:
      - 4000:4000
    cap_drop:
      - all

  db:
    image: postgres:11
    restart: always
    environment:
      - POSTGRES_USER=teslamate
      - POSTGRES_PASSWORD=secret
    volumes:
      - teslamate-db:/var/lib/postgresql/data

  grafana:
    image: teslamate/grafana:latest
    restart: always
    environment:
      - DATABASE_USER=teslamate
      - DATABASE_PASS=secret
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=db
    ports:
      - 3000:3000
    volumes:
      - teslamate-grafana-data:/var/lib/grafana

  mosquitto:
    image: eclipse-mosquitto:1.6
    restart: always
    ports:
      - 1883:1883
    volumes:
      - mosquitto-conf:/mosquitto/config
      - mosquitto-data:/mosquitto/data

volumes:
    teslamate-db:
    teslamate-grafana-data:
    mosquitto-conf:
    mosquitto-data:

Afterwards start the stack with docker-compose up.

To sign in with your Tesla Account open the web interface at http://your-ip-address:4000.

The Grafana dashboards are available at http://your-ip-address:3000.

Documentation

The TeslaMate documentation is available here.

Donations

TeslaMate is open source and completely free for everyone to use.

Maintaining this project isn't effortless, or free. If you would like to support further development, that would be awesome. If you don't, no problem; just share your love and show your support.

Donate with PayPal

Credits

teslamate's People

Contributors

adriankumpf avatar dependabot-preview[bot] avatar mvaal avatar dbemis avatar chromox avatar ngardiner avatar olexs avatar siomiz avatar dopeghoti avatar krezac avatar virtualm2000 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.