Crates.io | co2mon |
lib.rs | co2mon |
version | 2.1.1 |
source | src |
created_at | 2019-02-01 18:58:18.934309 |
updated_at | 2021-10-02 16:38:20.501739 |
description | Driver for the Holtek ZyTemp CO₂ USB HID sensors |
homepage | |
repository | https://github.com/lnicola/co2mon |
max_upload_size | |
id | 112060 |
size | 35,136 |
co2mon
A driver for the Holtek CO₂ USB monitors, tested using a TFA-Dostmann AIRCO2NTROL MINI sensor.
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.
cargo run --example watch
Release notes are available in CHANGELOG.md.
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.
This project is licensed under either of
at your option.