Monitor CO2 levels with Prometheus and/or HomeKit
Project description
CO2 monitoring with Prometheus
This reads from the CO2 Meter and makes it available as a Prometheus service. The core logic comes from this hackaday article.
Setup
Note this assumes you are running on a Raspberry Pi running Raspberry Pi OS (Buster)
- Install Python 3
- Install the monitor with
python3 -m pip install co2mini[homekit]
(remove[homekit]
if you don't use HomeKit) - Set up CO2 udev rules by copying
90-co2mini.rules
to/etc/udev/rules.d/90-co2mini.rules
- Set up the service by copying
co2mini.service
to/etc/systemd/system/co2mini.service
- Run
systemctl enable co2mini.service
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
co2mini-0.1.1.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file co2mini-0.1.1.tar.gz
.
File metadata
- Download URL: co2mini-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a973c5effb3b6ba9bb09417599a95c883e707743c893a859928b47a68867b4c4 |
|
MD5 | 3e158cea4f19b80c6ea416fe732f9ba7 |
|
BLAKE2b-256 | c431d6ac1f56c5a33cf600c4d9dcaecbf26f188d9b68234134221404b40adc5a |
Provenance
File details
Details for the file co2mini-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: co2mini-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac7e9e3a16be2587099cbbf33647d471c633cef3ffe25c6fb4ddb725db3895c |
|
MD5 | 0ca8ea238ed6331efe94dcaac3a1a698 |
|
BLAKE2b-256 | 0b7594a84df416a1b9d740e1a783667bd8a74334d959807d283597d6c7da28f2 |