co2_exporter

command module
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 8 Imported by: 0

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

Name Type Label Unit
tfa_airco2ntrol_carbon_dioxide_total Gauge Unit ppm
tfa_airco2ntrol_temperature_total Gauge Unit celsius
tfa_airco2ntrol_humidity_total Gauge Unit percent

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL