GotSmart collects data from the Dutch SlimmeMeter (translates as Smart Meter) to export as Prometheus metrics.
Forked from basvdlei
go install github.com/erik-dekker/gotsmart
Specify the serial device that is connected with the Smart Meter.
gotsmart -device /dev/ttyS0
docker build -t gotsmart .
Make sure to add the serial device that is connected with the Smart Meter to the container. (ttyS0, ttyUSB0, ttyAMA0, etc)
docker run -d -p 8080:8080 --device /dev/ttyS0:/dev/ttyS0 gotsmart
By default gotsmart listens on port 8080 and exposes the metrics on /metrics
.
GotSmart can run on Raspberry Pi. To cross compile use:
GOARCH=arm go build