Code Monkey home page Code Monkey logo

dashboards-grafana-teslamate's Introduction

TeslaMate - Custom dashboards for Grafana

GitHub release (latest by date) GitHub Repo stars GitHub Discussions GitHub

Here you will find a series of original dashboards to expand those included by default in Teslamate to fully squeeze the data of your Tesla.

These Custom Dashboards have been tested with versions of Teslamate v1.27.1 and Grafana v8.5.6 or higher


Import dashboards automatically with dashboards.sh

With this script (dashboards.sh), you can download de latest release and install automatically all dashboards. But, first of all, you need to generate a API KEY in your Grafana (HOW-TO). You do not need to stop the Grafana service if you have it installed under docker and it will allow you to do it both locally and remotely.

If this is your first time using the new dashboards.sh, you have to generate a configuration file; don't worry, dashboards.sh will guide you step by step.

List of options

Option 1: Generate config file

Attention! If you already had a configuration file created and you complete the wizard, it'll completely overwrite your previous configuration.

The questions that the wizard will ask you to generate the configuration file are the following:

  • Enter the Grafana URL: Specifies the URL of the Grafana instance without / at the end (e.g. http://localhost:3000)
  • Enter the Grafana TOKEN: Specifies the security key of the API, it's generated in Grafana (HOW-TO).
  • Path of the dashboards directory: Enter the relative or absolute path of the dashboards directory, default is ./dashboards.

When you have completed the wizard, a file named config.sh will be created in the same directory as dashboards.sh.

Option 2: Download the latest release

This option downloads the latest stable version published on GitHub. At the end of the process, it tells you the version that has been downloaded.

Option 4: Install/Update dashboards

Install or update all the dashboards that are located in the directory indicated in your Grafana

HOW-TO: Create a Grafana API key

  1. Sign in to Grafana, hover your cursor over Configuration (the gear icon), and click API Keys
  2. Click "Add API key"
  3. Enter a unique name for the key, e.g. "Import dashboards"
  4. In "Role", select Admin option
  5. In "Time to live" enter for example "1d" for 1 day, "1m" for 1 month or "1y" for 1 year
  6. Click Add

More info in Grafana documentation page.


Create cron job to autoupdate the Custom Dashboards

If you want, you can create a cron job and forget about updating the dashboards to the latest release.

The first thing you have to do is edit the crontab file of your user:

crontab -e

The format of a cron is as follows:

Structure cron

Here is an example that will run every day at 2am and the dashboards.sh file is located in the absolute path "/home/user/dashboards.sh".

0 2 * * * sh /home/user/dashboards.sh autoupdate > /dev/null

Import dashboards manually

  1. Sign in to Grafana
  2. Click in "Dashboards" option and select "Browse"
  3. Create a personal folder, e.g. "Teslamate - Custom"
  4. Go to new folder
  5. Press the "Import" button
  6. Press the "Upload JSON file" button
  7. Select JSON file from your computer
  8. And finally, press the "Import" button

Screenshots

Current Charge View

Charging Curves

Battery Health

Battery Health

Charging Tops

Charging Tops

Charging Costs Stats

Charging Costs Stats

Charging Curves

Charging Curves

Drive Tops

Drive Tops

Tire Pressure

Tire Pressure

Overview v2

Expanded version of the original Teslamate dashboard

Overview v2

States v2

Expanded version of the original Teslamate dashboard

States v2

Drives v2

Expanded version of the original Teslamate dashboard

Drives v2

Locations v2

Expanded version of the original Teslamate dashboard

Locations v2

Donations

Hi!

If you like my work and want to support me, you can invite me a coffee, I'll appreciate a lot! Your support will help me to continue improving these contents.

Thanks!

Credits

License

Distributed under MIT license

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.