Git Product home page Git Product logo

linky-exporter's People

Contributors

dorianboulch avatar efg-thedevopsguy avatar jeanfabrice avatar syberalexis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

linky-exporter's Issues

Daemon Optimisation

Maybe the daemon could not try to read the serial device each time we request http://localhost:9101/metrics ?
As it is a slow device, should be better the daemon decide when he read the device and give a cached result ?

I got:
image

With the following Promotheus config:
scrape_interval: 30s
scrape_timeout is default so 10s ?

Grafana Dashboard

Hey,
Thanks for your work, did you have or plan to have a Grafana dashboard ?

Thanks

Docker Hub image

Hello,
Would you mind setting up an automatic build workflow on docker hub so that a docker image is automatically built as you update your code?
Let me know if some help is needed.

Wrong error "Serial port busy"

Hello,
To begin, thanks a lot for your exporter, it's very usefull for myself !

When using --standard flag, I get this output :

level=error msg="Failed to read standard serial : Serial port busy"
level=error msg="Unable to read telemetry information : Serial port busy"

When using --historical flag, there is no problem.

Is there a problem with my configuration or my Linky isn't able to send "all standard" telemetries and the error message is wrong ?

level=fatal msg="open /dev/cuaU0: device busy"

Hi,
On compiled linky_exporter v2.0.1 on OpenBSD
/usr/local/bin/linky_exporter -d /dev/cuaU0 -p 9101

I got messages like open /dev/cuaU0: device busy

cu or minicom on this device is working

Release 2.1 and release 3.0 does not work

Hello,

I successfully ran linky-exporter release 2.0.0 for a few years. I wanted to try your release 3, but it seems it does not work for me.

Here's the command that I launch in 2.0.0

/usr/local/bin/linky-exporter --device=/dev/ttyUSB0 --baud=1200 --size=7 --parity=O --stopbits=Stop1

In 3.0.0

It seems the stop bit can't be set to 1.

root@rasp-6:/home/tom# /usr/local/bin/linky-exporter --device=/dev/ttyUSB0 --baud=1200 --size=7 --parity=O --stopbits=Stop1 --debug --historical
INFO[0000] Debug mode enabled !
DEBU[0000] Parse parity O
DEBU[0000] Parse Stop Bits Stop1
INFO[0000] Beginning to serve on port :9901
DEBU[0001] Read serial with config device:/dev/ttyUSB0 baudrate:1200 framesize:7 parity:1 stopbits:0
DEBU[0001] Read serial data...
DEBU[0007] Read serial with config device:/dev/ttyUSB0 baudrate:1200 framesize:7 parity:1 stopbits:0
DEBU[0007] Read serial data...

^C
root@rasp-6:/home/tom# /usr/local/bin/linky-exporter --device=/dev/ttyUSB0 --baud=1200 --size=7 --parity=O --stopbits="Stop1" --debug --historical
INFO[0000] Debug mode enabled !
DEBU[0000] Parse parity O
DEBU[0000] Parse Stop Bits Stop1
INFO[0000] Beginning to serve on port :9901
DEBU[0005] Read serial with config device:/dev/ttyUSB0 baudrate:1200 framesize:7 parity:1 stopbits:0
DEBU[0005] Read serial data...
^C
root@rasp-6:/home/tom# /usr/local/bin/linky-exporter --device=/dev/ttyUSB0 --baud=1200 --size=7 --parity=O --stopbits="1" --debug --historical
INFO[0000] Debug mode enabled !
DEBU[0000] Parse parity O
DEBU[0000] Parse Stop Bits 1
INFO[0000] Beginning to serve on port :9901
DEBU[0005] Read serial with config device:/dev/ttyUSB0 baudrate:1200 framesize:7 parity:1 stopbits:0
DEBU[0005] Read serial data...
DEBU[0008] Read serial with config device:/dev/ttyUSB0 baudrate:1200 framesize:7 parity:1 stopbits:0
DEBU[0008] Read serial data...
DEBU[0010] Read serial with config device:/dev/ttyUSB0 baudrate:1200 framesize:7 parity:1 stopbits:0
DEBU[0010] Read serial data...

Could you advise ?

Thanx

Thomas

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.