liveaverage / dc-powerwall-dashboard

Grafana dashboard showing trend & historical data polled from Tesla Powerwall 2 API served up in an easy to use docker image
13 stars 1 forks source link

Multiple Gateways #6

Open slazinger7 opened 2 years ago

slazinger7 commented 2 years ago

Can the docker-compose.yaml be configured to pull data from two gateways?

Due to the size our incoming electrical service, Tesla installed two gateways at our property. I was able to set up everything up for one gateway on an RPI4 based on the IP address, password, etc., but I was wondering if there was a way to pull data from both gateways running a single instance of Grafana?

My alternative is to buy a second RPI4, but thought I'd ask if this can be done with one unit.

tatsu574 commented 2 years ago

I'm sure this is possible but may be more work than you want to do. Adding the polling is pretty simple. You just need to add some a few lines that poll the 2nd gateway in the telegraf.conf file. The tricky part is the cookie building, as the gateway api requires auth to retrieve data. I'm more of a systems person so I won't be much help for you.

Another option for you, so you don't need a waste a 2nd RPI is simply run a second set of containers or single container if you are running the all in one version.