Code Monkey home page Code Monkey logo

luxtronik2-exporter's People

Contributors

sh0rez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mascha22

luxtronik2-exporter's Issues

Panics at table headers

It seams to confuse table headers with real data.
Here are some examples of errors it gives and a screanshot of heatpump webpage:

panic: descriptor Desc{fqName: "luxtronik_chybova-pamet", help: "", constLabels: {}, variableLabels: [attr]} is invalid: "luxtronik_chybova-pamet" is not a valid metric name

panic: descriptor Desc{fqName: "luxtronik_doby-chodu", help: "", constLabels: {}, variableLabels: [attr]} is invalid: "luxtronik_doby-chodu" is not a valid metric name

panic: descriptor Desc{fqName: "luxtronik_status-zarizeni", help: "", constLabels: {}, variableLabels: [attr]} is invalid: "luxtronik_status-zarizeni" is not a valid metric name

Screenshot 2022-05-08 at 22-45-01 Heatpump controller

Configuration

Add config file (using viper) to set the following:

  • luxtronik ip
  • filters
  • slug language

Logs not escaped

Logs are not getting escaped properly:
time="2018-12-15T22:20:59Z" level=warning msg="metric value parse failure" domain=betriebsstunden field=betriebstunden-heiz value="{"value":"277h"}"
The unescaped json breaks fluent-bit logfmt parser

Documentation

Please add just a little documentation, on how to run the exporter
I use Docker and had to look into your code to find out, on which port it is exposed and in which folder it expects the config.

e.g.

Docker Setup

  • Mount volume "/lux" to your local folder, where the "lux.yaml" file is
  • Map internal Port 2112 to whatever port you like

Access via :/metrics

Fails to compile: undefined: mutes / Mute / MuteList

$ go run main.go
command-line-arguments
./main.go:93:2: undefined: mutes
./main.go:93:15: undefined: MuteList
./main.go:95:3: undefined: mutes
./main.go:95:14: undefined: Mute
./main.go:159:7: undefined: mutes

And:

$ go version
go version go1.15.15 linux/arm64

I'm happy to help debug the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.