Sign inSign up

netzaffe/co2-exporter

By netzaffe

•Updated over 3 years ago

An metrics exporter for the CO₂ sensor AirCo2ntrol Coach

Image
0

2.8K

netzaffe/co2-exporter repository overview

⁠co2 exporter

The exporter provides functionality to export values from the USB CO₂ monitor:

The core of the service uses the API from the system Linux HIDRAW (/dev/hidraw0 etc.) to access the USB CO₂ monitor.

⁠Metrics

NameTypeLabelUnit
tfa_airco2ntrol_carbon_dioxide_totalGaugeUnitppm
tfa_airco2ntrol_temperature_totalGaugeUnitcelsius
tfa_airco2ntrol_humidity_totalGaugeUnitpercent

⁠Installation and usage

⁠From source
go get github.com/netzaffe/co2_exporter

$ sudo CO2MOINITOR_DEVICE=/dev/hidraw0 $GOPATH/bin/co2_exporter

Hint: sadly, to access the HIDRAW API you need root permissions.

⁠docker
docker run -d --name co2-exporter -v /dev/hidraw0:/dev/hidraw0:ro --privileged -p 8080:8080 netzaffe/co2-exporter:latest

⁠Contribute

Feel free to contribute to the project.

Tag summary

Content type

Image

Digest

sha256:b3eb9ce08…

Size

3.4 MB

Last updated

over 3 years ago

docker pull netzaffe/co2-exporter