co2monitor_exporter

command module
v0.0.0-...-9ea8ba6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

CO2 Monitor Exporter

This is a Prometheus exporter for some similar USB CO2 monitors:

It uses the Linux HIDRAW API (/dev/hidraw0 etc.) to access the CO2 Monitor.

Metrics

  • co2monitor_co2_ppm
  • co2monitor_temp_celsius
  • co2monitor_humidity_rh

Installation

go get github.com/markuslindenberg/co2monitor_exporter

A example udev rule and systemd service to automatically start co3monitor_exporter when the device is plugged in are provided in the systemd/ directory.

sudo cp systemd/prometheus-co2monitor-exporter@.service /etc/systemd/system/
sudo cp systemd/90-co2monitor.rules /etc/udev/rules.d/
sudo systemctl restart udev.service

Usage

~/go/bin/co2monitor_exporter --device /dev/hidraw0

Package

This repository includes a Go package for the USB CO2 monitor.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package co2monitor implements a client for USB CO2 monitors like the CO2Mini / AIRCO2NTROL MINI / AIRCO2NTROL COACH.
Package co2monitor implements a client for USB CO2 monitors like the CO2Mini / AIRCO2NTROL MINI / AIRCO2NTROL COACH.

Jump to

Keyboard shortcuts

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