Skip to content

Slimme Meter (Smart Meter) Prometheus exporter

License

Notifications You must be signed in to change notification settings

erik-dekker/gotsmart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GotSmart

GotSmart collects data from the Dutch SlimmeMeter (translates as Smart Meter) to export as Prometheus metrics.

Forked from basvdlei

Setup

Build

go install github.com/erik-dekker/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 on /metrics.

Build for Raspberry Pi

GotSmart can run on Raspberry Pi. To cross compile use:

GOARCH=arm go build

About

Slimme Meter (Smart Meter) Prometheus exporter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.8%
  • Dockerfile 1.2%