Skip to content

An attempt to read Dutch smart meter information and write it to an Influxdb instance, using .Net Core

Notifications You must be signed in to change notification settings

Atrejoe/SmartMeterToInfluxDb

Repository files navigation

SmartMeterToInfluxDb

An attempt to read Dutch smart meter information and write it to an Influxdb instance, using .Net Core

You can build it yourself using dockerize.bat/sh, but it's also available also available as a Linux Docker image: https://hub.docker.com/r/atreyu/smartmetertoinfluxdb/

NOTE This is very much in alpha, I'm having connection issues to InfluxDb, but the serial port reading works (!)

Requirements

Configuration

Configuration is done for now using the following environment variables:

SerialPortName*       //on Linux usually /dev/tty0
BaudRate              //default: 115200 ()

InfluxDbUserName*
InfluxDbPassword*
InfluxDbServerAddress //default: http://127.0.0.1:8086
InfluxDbDatabaseName*

Dependencies

Beside the usual, the library depends on:

Usage

.Net Core

Untested, something like this?

dotnet run SmartMeterToInfluxDb

Docker

Docker image is available at:

https://hub.docker.com/r/atreyu/smartmetertoinfluxdb/

  1. Create docker-compose.yml example:
    services:
      smartmetertoinfluxdb:
        restart: unless-stopped
        image: atreyu/smartmetertoinfluxdb:dev
        container_name: smartmetertoinfluxdb
        devices:
          - /dev/ttyUSB0:/dev/ttyUSB0
        environment:
          - SerialPortName=/dev/ttyUSB0
          - BaudRate=115200
          - InfluxDbUserName=MyUsername
          - InfluxDbPassword=MyPa$$w0rd
          - InfluxDbServerAddress=http://127.0.0.1:8086
          - InfluxDbDatabaseName=SmartMeter

2.Run docker-compose up or docker-compose up -d to run as a deamon.

About

An attempt to read Dutch smart meter information and write it to an Influxdb instance, using .Net Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages