gotsmart

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2023 License: BSD-3-Clause Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GotSmart

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

Originally forked from: https://github.com/basvdlei/gotsmart

Setup

Build
go get github.com/robbertnoordzij/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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package dsmr implements DSMR P1 frame reading.
Package dsmr implements DSMR P1 frame reading.
prometheus
Package prometheus implements a collector of DSMR metrics for Prometheus.
Package prometheus implements a collector of DSMR metrics for Prometheus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址