{"repo":"jerr0328/co2mini","free":true,"listed":false,"github":"https://github.com/jerr0328/co2mini","clone":"git clone https://github.com/jerr0328/co2mini.git","description":"Get your CO2 Monitor into Prometheus and HomeKit","language":"Python","stars":12,"topics":["co2-sensor","co2monitor","prometheus","python3","homekit","hacktoberfest","co2-monitor","raspberry-pi"],"license":"MIT","category":"analytics","readme_excerpt":"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 (Bullseye/Trixie) 1. Install Python 3 2. Install the monitor with python3 -m pip install co2mini[homekit] (remove [homekit] if you don't use HomeKit) 3. Set up CO2 udev rules by copying 90-co2mini.rules to /etc/udev/rules.d/90-co2mini.rules 4. Set up the service by copying co2mini.service to /etc/systemd/system/co2mini.service 5. (Optional) Put a configuration file (see Configuration section below) in /etc/co2mini.env 6. Run systemctl enable co2mini.service Configuration The /etc/co2mini.env file contains the environment variables used to configure co2mini beyond the defaults. This is mostly necessary when enabling MQTT. Example: MQTT/Home Assistant The MQTT feature is meant to work with Home Assistant, although nothing bad will happen if you just want to use the MQTT messages directly. When co2mini starts up, it will send out the discovery message that Home Assistant expects, as well as responding to homeassistant's status when coming online. Be sure those are enabled in the Home Assistant MQTT integration (usually is enabled by default) if you have any issues. To configure co2mini, the following environment variables are available: Variable Default Description ------------------------ ---------------------- -------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/jerr0328","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jerr0328/co2mini/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}