Giter Site home page Giter Site logo

m600x / teslamatecompanion Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.28 MB

TeslaMate on your desk (T-Display S3)

CMake 0.02% C++ 3.58% C 96.24% Processing 0.10% Python 0.03% Makefile 0.02% Shell 0.01%
esp32 tesla teslamate teslamateapi t-display-s3

teslamatecompanion's Introduction

TeslaMate Companion dashboard

main

Description

This is a repo containing raw code to run a small Tesla remote dashboard on your desk. The purpose of this is to have basic information about your car at a glance without the need to open the smartphone app or your browser.

Is it useful? Who knows but it has it's use for me.

Functions

  • State of the car (Online, Offline, Asleep, Driving, Charging, Updating)
  • Odometer (Kilometers or Miles)
  • Last update timestamp
  • Inside/Outside temperature (Celsius or Farhenheit)
  • Status of the car (healthy, locked, sentry, presence, doors, windows, trunk and frunk)
  • Battery level
  • Estimated range

Requirement

Instructions

  • Clone the repo
  • Open it in VSC (that has PlatformIO)
  • Tune the main.cpp with your variables
  • Connect your T-Display S3 and upload
  • Enjoy

Technical notes

  • RemoteDebug: you can telnet ip to get the serial output
  • OTA update: you can remotely update the T-Display by uncommenting the last line in platformio.ini

Variables

All variables are in TeslaMateCompanion.h. Code is compatible with TeslaMateApi behind a basic auth such as when you deploy TeslaMate using docker with Traefik.

Name Default value Description
WIFI_SSID Name of your wifi network
WIFI_PASS Password of your wifi network
WIFI_TIMEOUT 5 Number of seconds to reset the wifi setting when (re)connecting in seconds
API_URL URL of TeslaMateApi, usually https://somedomain/api/v1/cars/1/status
API_TIMEOUT 2 Timeout before dropping the GET attempt in seconds
API_AUTH true Indicate if your TeslaMateApi need auth (TeslaMate installed with a basic auth by Traefik for example)
API_USER If API_AUTH, user of TeslaMate
API_PASS If API_AUTH, password of TeslaMate
TZ_OFFSET 1 Hours of offset against GMT (1 is France Summer)
POLLING_INTERVAL 30 Frequency of data refresh in seconds
HOSTNAME TeslaMateCompanion Broadcasted network name of the device
BRIGHTNESS 120 LCD brightness from 0 to 255

teslamatecompanion's People

Contributors

m600x avatar

Watchers

 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.