Skip to content
Slimme Meter (Smart Meter) Prometheus exporter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
crc16
dsmr
.gitignore
Dockerfile
LICENSE
README.md
gotsmart.go

README.md

GotSmart

GotSmart collects information from the Dutch SlimmeMeter (translated as Smart Meter) and exports them as Prometheus metrics.

Setup

Build

go get github.com/basvdlei/gotsmart

Run

Specify the serial device that is connected with the Smart Meter.

gotsmart -device /dev/ttyS0

Setup with Docker

Build

docker build -t gotsmart .

Run

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

Usage

By default gotsmart listens on port 8080 and exposes the metrics under /metrics.

You can’t perform that action at this time.