invt_logger_reader

command module
v0.0.0-...-f9d3b1f Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

README

Invt Inverter LSW-3 logger reader

Tool written in GO for reading metrics from Invt LSW-3 and writing results into MQTT topics. Program queries logger modbus port in infinite loop and sends data into MQTT topics (e.g. mosquito in HomeAssistant).

Installation and setup

  1. Download go 1.21
  2. Clone this repo git clone git@github.com:misterdelle/invt_logger_reader.git
  3. Go into project directory cd invt_logger_reader
  4. Copy example config cp env-example.yaml .env
  5. Edit .env in Your favorite editor, fill all required stuff
  6. Build program make build or build for ARM machines e.g. raspberryPi make build-arm
  7. Run ./invt or invt-arm

Output data format

MQTT

Data will be sent into MQTT topic with name {mqttPrefix}/{fieldName} where:

  • mqttPrefix is value defined in .env e.g. /sensors/energy/inverter
  • fieldName is measurement name, all available measurements are described in adapters/devices/invt/invt_protocol.go, e.g. PV_Generation_Today

Full topic name for given example values is /sensors/energy/inverter/PV_Generation_Today. Additional field is All which contains all measurements and their values marshalled into one json.

Contributing

Feel free if You want to extend this tool with new features. Just open issue or make PR.

To build docker image for Raspberry PI

docker buildx build --platform linux/arm64/v8 --output type=docker -t misterdelle/invt-logger-reader:latest .

docker push misterdelle/invt-logger-reader:latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
adapters

Jump to

Keyboard shortcuts

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