luxws-exporter

command
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: BSD-3-Clause Imports: 23 Imported by: 0

README

luxws-exporter

A Prometheus exporter using the Lux_WS protocol to retrieve informational values from Luxtronik 2.x heat pump controllers manufactured and/or deployed by the following companies:

  • Alpha Innotec
  • NIBE
  • Novelan
  • possibly other companies and/or brands

Language support

The exporter must know which language the controller interface is using. See the luxwslang package for implemented languages (includes English, German and Dutch). Other languages are easily added by defining a few strings.

Timezone

In order to parse timestamps (e.g. of the most recent error) it's necessary for the exporter to know the timezone used by the controller. By default the system-local timezone is used.

Usage

Run luxws-exporter -help for a usage description. Example:

./luxws-exporter -controller.address=192.0.2.1:8214 -controller.language=en \
  -controller.timezone=Europe/Berlin -web.listen-address=127.0.0.1:8000

Retrieve all values:

curl http://127.0.0.1:8000/metrics

Debugging

The -verbose flag can be set to view the underlying messages sent to and received from the heat pump controller while collecting metrics. Example:

$ ./luxws-exporter -verbose -controller.address=192.0.2.1:8214 -controller.language=en
[…]
2022/04/02 10:00:00 Sending message of type 1: "GET;0x7a1234"
2022/04/02 10:00:00 Received message of type 1: "<Content><item id='0x7babcd'>[…]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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