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
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.
- ssh to your teslamate installation.
cd
to your directory where teslamate is installed (i.e./home/me/docker/teslamate
- Open a shell into the container:
docker exec -ti teslamate_grafana_1 /bin/bash
- Download the
dashboards.sh
script:wget https://raw.githubusercontent.com/CarlosCuezva/dashboards-Grafana-Teslamate/main/dashboards.sh
- Make the script executable:
chmod 755 dashboards.sh
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.
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.
Install or update all the dashboards that are located in the directory indicated in your Grafana
- Sign in to Grafana, hover your cursor over Configuration (the gear icon), and click API Keys
- Click "Add API key"
- Enter a unique name for the key, e.g. "Import dashboards"
- In "Role", select Admin option
- In "Time to live" enter for example "1d" for 1 day, "1m" for 1 month or "1y" for 1 year
- Click Add
More info in Grafana documentation page.
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:
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
- Sign in to Grafana
- Click in "Dashboards" option and select "Browse"
- Create a personal folder, e.g. "Teslamate - Custom"
- Go to new folder
- Press the "Import" button
- Press the "Upload JSON file" button
- Select JSON file from your computer
- And finally, press the "Import" button
Expanded version of the original Teslamate dashboard
Expanded version of the original Teslamate dashboard
Expanded version of the original Teslamate dashboard
Expanded version of the original Teslamate dashboard
Expanded version of the original Teslamate dashboard
Feel free to help with Pull Requests when you were able to fix things or add new interesting information. I'll really appreciate any enhancement or suggestion.
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.
https://paypal.me/CarlosCuezva
Another way to support me is to use my referral code to purchase a Tesla product, we'll both get credits to redeem for exclusive rewards like free SuperCharger recharges, merchandise and accessories.
- Author: Carlos Cuezva
- List of contributors
Distributed under MIT license