Docker setup to run evcc with time series database and grafana. evcc, InfluxDB and Grafana should be already connected but need configuration for the local network.
To setup create a file .env in this repo and call make install-podman and make install-service.
For automatic startups the user needs to be automatically logged in at startup.
At the Raspberry PI this can be done using raspi-config.
.env must define the following environment variables:
GRAFANA_USERNAMEGRAFANA_PASSWORDVICTORIAMETRICS_USERVICTORIAMETRICS_PASSWORD
Patch docker-compose.yml
git apply own-build.patchThen build evcc and rebuild the container. Make sure that the base image version in evcc-own-build.Dockerfile approximately matches that of the code (nightly version or release).
cd evcc
devcontainer up --workspace-folder .
devcontainer exec --workspace-folder . bash
make build
exit
cp evcc ../evcc-with-grafana/evcc-bin
systemctl --user stop evcc-with-grafana
podman rmi localhost/evcc-with-grafana_evcc:latest
systemctl --user start evcc-with-grafana
- TLS connection to the internet (letsencrypt)