The goal of this docker-compose is to deliver a configuration to view data coming from the Metertrekker firmware.
- Download this repository (or
git clone [email protected]:Pwutseltronics/Metergrafiekjes-docker-compose.git
) - Make sure you have
docker-compose
available - Open the (extracted) folder of the repository
- Optional: edit
docker-compose.yml
to suit your own preferences docker-compose up -d
This will work on a Raspberry Pi and most other Linux computers. If you want to run this on a different environment (like a NAS or Docker Desktop), refer to guides for the respective host software. It should work fine, but the way of setting it up will be different.
To use your own MQTT broker instead of the eclipse-mosquitto
container:
- In
docker-compose.yml
, comment or delete the entiremosquitto
section - In
telegraf.conf
, changetcp://mosquitto:1883
to the address of your MQTT broker. To access a service on the host device, the IP address should be172.17.0.1
. More info here.
If you have correctly executed the steps under Installation, you can now access Grafana at port 3000
of the device you have installed it on, e.g. http://[IP address]:3000
.
Log in with the default username and password (both admin
).
You will be asked to enter a new password; this is not required but strongly recommended if you want to make the dashboard reachable externally (e.g. via port-forwarding on your router).
Once you have logged in, you will see the Grafana home page. Click Home in the top of the screen and select Energie or Energie lange-termijn. Voilà, you now have fancy energy consumption graphs!