zg-co2

Crates.iozg-co2
lib.rszg-co2
version2.1.0
sourcesrc
created_at2019-02-01 18:57:19.640806
updated_at2021-04-16 18:11:28.068908
descriptionZyAura CO₂ sensor protocol implementation
homepage
repositoryhttps://github.com/lnicola/co2mon
max_upload_size
id112059
size21,202
Laurențiu Nicola (lnicola)

documentation

README

co2mon

Actions Status Latest Version API docs

A driver for the Holtek CO₂ USB monitors, tested using a TFA-Dostmann AIRCO2NTROL MINI sensor.

Permissions

On Linux, you need to be able to access the USB HID device. For that, you can save the following udev rule to /etc/udev/rules.d/60-co2mon.rules:

ACTION=="add|change", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", MODE:="0666"

Then reload the rules and trigger them:

udevadm control --reload
udevadm trigger

Note that the udev rule above makes the device accessible to every local user.

Quick start

cargo run --example watch

Releases

Release notes are available in CHANGELOG.md.

Protocol

The USB HID protocol is not documented, but is a superset of this one and was reverse-engineered before.

The implementation was inspired by this one.

License

This project is licensed under either of

at your option.

Commit count: 103

cargo fmt