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.
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/
Refer to the notes below if running podman, or simply execute docker-compose
if running standard, community docker:
sudo docker-compose up
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).
sudo docker-compose stop
sudo docker rm $(sudo docker ps -q --filter "status=exited")
- If using podman you may need to cleanup containers before re-running the stack:
sudo docker rm $(sudo docker ps -q --filter "status=exited")
- In order to use podman with docker-compose you'll need to install a few extra packages alongside podman 3.0+:
- docker-compose
- podman-docker
- In order to use podman with docker-compose you'll need to install a few extra packages alongside podman 3.0+:
- 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.