Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporter does not report correct data #2

Open
jesusha123 opened this issue Oct 19, 2020 · 1 comment
Open

Exporter does not report correct data #2

jesusha123 opened this issue Oct 19, 2020 · 1 comment

Comments

@jesusha123
Copy link
Contributor

Problem

Exporter does not report correct data

Steps to reproduce

  • Compile and install project
    • go get -v github.com/huhamhire/air-co2-exporter/...
    • cd [project_path]
    • go build
    • go install
    • sudo /home/[user]/go/bin/co2-exporter
  • Curl fails to return valid metrics. See logs
  • Note: node-co2-monitor test script does return the correct data

Logs

➜  ~ curl http://localhost:9110/metrics
# HELP air_co2 Relative Concentration of CO2 (CntR) in ppm.
# TYPE air_co2 gauge
air_co2{tag="default"} 0
# HELP air_temp Ambient Temperature (Tamb) in ℃.
# TYPE air_temp gauge
air_temp{tag="default"} 0

System

OS: Ubuntu 20.04
GO: go version go1.14.10 linux/amd64
CO2 Monitor: CO2Meter RAD-0301 Mini CO2 Monitor
Docker version 19.03.13, build 4484c46d9d

Note: I'm confident the CO2 monitor should be compatible, as I can run the test script based on node-co2-monitor project successfully.

@huhamhire
Copy link
Owner

It seems that new CO2Meter devices does not require data decryption any more. The node-co2-monitor just added this feature to support the TFA AirCO2ntrol Coach. I haven't got one of these devices to actually test with.

However, if you have tested with your device, I think it should be ported to this golang version exporter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants