{"id":16116854,"url":"https://github.com/lnicola/co2mon","last_synced_at":"2025-09-21T20:32:03.590Z","repository":{"id":46636787,"uuid":"168735726","full_name":"lnicola/co2mon","owner":"lnicola","description":"Rust crate for USB CO₂ monitors","archived":false,"fork":false,"pushed_at":"2023-03-21T12:13:36.000Z","size":82,"stargazers_count":31,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T13:33:37.058Z","etag":null,"topics":["hacktoberfest","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnicola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["lnicola"],"patreon":null,"open_collective":null,"ko_fi":"lnicola","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-02-01T17:34:56.000Z","updated_at":"2023-06-11T01:42:13.000Z","dependencies_parsed_at":"2022-07-20T08:32:23.791Z","dependency_job_id":null,"html_url":"https://github.com/lnicola/co2mon","commit_stats":{"total_commits":103,"total_committers":6,"mean_commits":"17.166666666666668","dds":"0.058252427184465994","last_synced_commit":"a1c25504b58bc1926cb4aeb0c05cd92c86ba1578"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicola%2Fco2mon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicola%2Fco2mon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicola%2Fco2mon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnicola%2Fco2mon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnicola","download_url":"https://codeload.github.com/lnicola/co2mon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233794920,"owners_count":18731360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","rust"],"created_at":"2024-10-09T20:26:27.089Z","updated_at":"2025-09-21T20:31:58.316Z","avatar_url":"https://github.com/lnicola.png","language":"Rust","funding_links":["https://github.com/sponsors/lnicola","https://ko-fi.com/lnicola"],"categories":[],"sub_categories":[],"readme":"# `co2mon`\n\n[![Actions Status]][github actions] [![Latest Version]][crates.io] [![API docs]][docs.rs]\n\n[Actions Status]: https://github.com/lnicola/co2mon/workflows/ci/badge.svg\n[github actions]: https://github.com/lnicola/co2mon/actions\n[Latest Version]: https://img.shields.io/crates/v/co2mon.svg\n[crates.io]: https://crates.io/crates/co2mon\n[API docs]: https://docs.rs/co2mon/badge.svg\n[docs.rs]: https://docs.rs/co2mon/\n\nA driver for the Holtek CO₂ USB monitors, tested using a\n[TFA-Dostmann AIRCO2NTROL MINI][AIRCO2NTROL MINI] sensor.\n\n[AIRCO2NTROL MINI]: https://www.tfa-dostmann.de/en/produkt/co2-monitor-airco2ntrol-mini/\n\n## Permissions\n\nOn Linux, you need to be able to access the USB HID device. For that, you\ncan save the following `udev` rule to `/etc/udev/rules.d/60-co2mon.rules`:\n\n```text\nACTION==\"add|change\", SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"04d9\", ATTRS{idProduct}==\"a052\", MODE:=\"0666\"\n```\n\nThen reload the rules and trigger them:\n\n```shell\nudevadm control --reload\nudevadm trigger\n```\n\nNote that the `udev` rule above makes the device accessible to every local user.\n\n## Quick start\n\n```shell\ncargo run --example watch\n```\n\n## Releases\n\nRelease notes are available in [CHANGELOG.md](co2mon/CHANGELOG.md).\n\n## Protocol\n\nThe USB HID protocol is not documented, but is a superset of [this one][co2meters] and was [reverse-engineered][had] [before][revspace].\n\nThe implementation was inspired by [this one][co2mon].\n\n[co2meters]: https://co2meters.com/Documentation/Other/AN_RAD_0301_USB_Communications_Revised8.pdf\n[co2mon]: https://github.com/dmage/co2mon/\n[had]: https://hackaday.io/project/5301/\n[revspace]: https://revspace.nl/CO2MeterHacking\n\n## License\n\nThis project is licensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   [http://www.apache.org/licenses/LICENSE-2.0][LICENSE-APACHE])\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   [http://opensource.org/licenses/MIT][LICENSE-MIT])\n\nat your option.\n\n[LICENSE-APACHE]: http://www.apache.org/licenses/LICENSE-2.0\n[LICENSE-MIT]: http://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnicola%2Fco2mon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnicola%2Fco2mon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnicola%2Fco2mon/lists"}