This reads from the CO2 Meter and makes it available as a Prometheus service. The core logic comes from this hackaday article.
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