Skip to content

This little tool connects to a DLMS capable smart meter, reads the configured data and stores it in a file.

License

Notifications You must be signed in to change notification settings

sensioty/dlms-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DLMSLogger

Tool that reads data from any DLSM capable smart meter with an infrared reader and writes them to the file system.

Installation

Use the package manager pip to install foobar.

pip install dlmslogger

Usage

dlms-logger

Configuration

Configuration is done by setting the following env variables:

DLMS_LOGGER_SERIAL_DEVICE

Set this to /dev/ttyXXX or any other usb device if needed. Be default we try to auto detect the device.

Default: auto detect

DLMS_LOGGER_SERIAL_BAUD_RATE

Set the baudrate.

Default: 9600

DLMS_LOGGER_SERIAL_DATA_BITS

Set serial connection data bits.

Default: 8

DLMS_LOGGER_SERIAL_PARITY

Set serial connection parity.

Values: NONE, EVEN, ODD, MARK, SPACE

Default: NONE

DLMS_LOGGER_SERIAL_STOP_BITS

Set serial connection stop bits.

Values: ONE, TWO, ONE_POINT_FIVE

Default: ONE

DLMS_LOGGER_HDLC_FRAME_SIZE

Set HDLC frame size.

Default: 128

DLMS_LOGGER_HDLC_WINDOW_SIZE

Set HDLC window size

Default: 1

DLMS_LOGGER_AUTHENTICATION

Set authentication mode. When using mode Low make sure to set DLMS_LOGGER_SECRET.

Values: None, Low

Default: None

DLMS_LOGGER_SECRET

Set authentication secret

Default: not set

DLMS_LOGGER_CLIENT_ADDRESS

Set client address.

Default: 32

DLMS_LOGGER_OBJECTS_OUTPUT_FILE

Set the objects output file. This is used to cache the object structure. Not used to store the values read from the meter.

Default: dlmsobjects.save

License

GPLv2

About

This little tool connects to a DLMS capable smart meter, reads the configured data and stores it in a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published