Ilshidur / linky-teleinfo-prometheus-exporter

Listens to a serial signal over UART, parses the ENEDIS Teleinfo datas and exports them as Prometheus metrics. Best suited for Raspberry Pis.
https://npmjs.com/package/linky-teleinfo-prometheus-exporter
MIT License
1 stars 0 forks source link

No output at all on /metrics #3

Open diminou91 opened 1 year ago

diminou91 commented 1 year ago

Hello,

First of all, thank you for the work you've put in! I can see that your latest commit is to fix a 404 issue on /metrics, yet I have absolutely no output at all on /metrics.

Any idea or test you want me to perform ?

Thanks!

Ilshidur commented 1 year ago

Hello.

Thanks for your interest in this project !

Are you using a Raspberry Pi or some other single board computer ? I guess the reason why you don't have any output (as I suppose the resulting HTTP code is 200) is because the metrics can't be parsed. Admitting you get your input from the /dev/ttyAMA0 file, do you have any output from the following command ?

cat /dev/ttyAMA0

In case you don't, maybe try /dev/ttyS0. If this still doesn't work, your machine maybe have trouble to get the UART signal from the GPIO pins. In this case, please provide more information about the way your plugged the system to the Linky ports.

If you do have an output, this would probably be a bug on this project's side. In this case, please consider providing an extract of the output so I can test it on my side and eventually fix the issue. Those datas shouldn't be too sensitive information, but feel free to alter it without changing its format if you have concerns about your privacy. ;)

diminou91 commented 1 year ago

Hi,

I do use an RPI. I'm using /dev/ttyUSB0 since I'm using https://www.tindie.com/products/Hallard/micro-teleinfo-v20/

When testing with picocom (picocom -b 9600 -d 7 -p e -f n /dev/ttyUSB0) I do have an output so I can actually read from serial.

I'll give you an extract as soon as I'm home, but yes it's an HTTP code 200 but nothing is showing on /metrics

diminou91 commented 1 year ago

Hi there, here is an exerp of the cat /dev/ttyUSB0 :

cat /dev/ttyUSB0

EASF09 000000000 * EASF10 000000000 " EASD01 003788769 P EASD02 004560729 B EASD03 001351943 < EASD04 003170143 6 IRMS1 002 0 URMS1 235 D PREF 06 E PCOUP 06 _ SINSTS 00446 T

Let me know if you need something more from me (like a full extract) :) Thanks