Giter Site home page Giter Site logo

loxone-prometheus-exporter's People

Contributors

axxelg avatar bernhardrode avatar xcid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

loxone-prometheus-exporter's Issues

Multi arch build

Hi,

I've issues, running the docker container on a Kubernetes cluster on a raspberry pi 4.

Container start is failing with

โžœ  kubectl logs loxone-prometheus-exporter-deployment-f7d8558d7-2t5vx
standard_init_linux.go:219: exec user process caused: exec format error

Which is a problem caused by running a AMD64 build on a ARM based system.

I've managed to create a multi arch build of the container using:

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --tag "bernhardrode/loxone-prometheus-exporter":latest  --push .

Feel free and try the container: https://hub.docker.com/repository/docker/bernhardrode/loxone-prometheus-exporter

I will send you an update Makefile. Maybe it is helpful for others, too.

Flexible config handling

What do you think about a more flexible config management?

I don't like to provide credentials with command line parameters. I prefer using config files or environment variables.

I like to use https://github.com/spf13/viper but it only supports POSIX compatible flags so -user won't work anymore. You have to use --user.
There is a possible hack to keep it compatible. You can read the flags with the standard "flags" library and import them into "pflags" that viper uses. But I don't like this approach. Like every hack it might hurt in the future.

I created a PR: #4

What are your thoughts?

Can't connect to Loxone - unexpected end of JSON input

Thanks for this amazing piece of software. It has been working up until a few days ago when I changed my password for Loxone. I changed the password also for the exporter but since then I keep getting the following error with no idea on what is going on or how to solve this.

INFO[2022-05-20T08:39:16+02:00] Connecting to WS
INFO[2022-05-20T08:39:16+02:00] Asking for Public Key
INFO[2022-05-20T08:39:16+02:00] Starting websocket pump
INFO[2022-05-20T08:39:16+02:00] Public Key OK
INFO[2022-05-20T08:39:16+02:00] Key Exchange with Miniserver
INFO[2022-05-20T08:39:16+02:00] Key Exchange OK
INFO[2022-05-20T08:39:16+02:00] Authentication Starting
ERRO[2022-05-20T08:39:16+02:00] unexpected end of JSON input

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.