Skip to content

Grafana dashboard showing trend & historical data polled from Tesla Powerwall 2 API served up in an easy to use docker image

Notifications You must be signed in to change notification settings

liveaverage/dc-powerwall-dashboard

Repository files navigation

Overview

This project is a complete monitoring & trending stack for Tesla Powerwall & Backup Gateway solutions. It consists of vendor-provided images of Telegraf, InfluxDB, and Grafana. This is an evolutionary stage of the original monolith, multi-arch container project docker-powerwall-dashboard and attempts to simplify maintenance of the stack by splitting-out each service.

Preview

Grafana Dashboard Preview

Usage

Clone the project:

git clone https://github.com/liveaverage/dc-powerwall-dashboard.git
cd dc-powerwall-dashboard/

Before launching ensure you update docker-compose.yaml and hardset the appropriate environment variables or set the following environment variables in a .env file in your same working repository directory:

POWERWALL_IP=127.0.0.1
POWERWALL_PASS=0R2D2
POWERWALL_LOCATION='lat=29.7231806&lon=-82.5562896'

If you're mapping/mounting telegraf configuration from your current working directory you may need to modify file/folder permissions and create/configure a local powerwall_auth directory to enable modifications to telegraf.conf (required for authentication cookie insertion):

mkdir powerwall_auth
chmod -R ug+rw telegraf/ powerwall_auth/

Start the stack

Refer to the notes below if running podman, or simply execute docker-compose if running standard, community docker:

sudo docker-compose up

Access the dashboard

To access the dashboard you can visit http://localhost:3000 and login using username powerwall and password powerwall (configurable in your docker-compose.yaml file or set via environment variable).

Stop the stack

sudo docker-compose stop
sudo docker rm $(sudo docker ps -q --filter "status=exited")

Notes

  • If using podman you may need to cleanup containers before re-running the stack: sudo docker rm $(sudo docker ps -q --filter "status=exited")
  • A future project iteration will provide k8s manifests and/or helm chart to run the stack on k3s (for multi-arch support)
  • This project is based on the work of @rhodesman and his teslaPowerDash repo, but hopefully enables easier ramp up to start obtaining and trending Powerwall 2 API data.

About

Grafana dashboard showing trend & historical data polled from Tesla Powerwall 2 API served up in an easy to use docker image

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages