Categorygithub.com/am3o/co2_exporter
repositorypackage
1.5.0
Repository: https://github.com/am3o/co2_exporter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

co2 exporter

Go Report Card

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

The core of the service use 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 project.