Skip to content

jerr0328/co2mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0a8030d Β· Oct 18, 2020

History

8 Commits
Oct 18, 2020
Oct 18, 2020
Dec 8, 2019
Dec 8, 2019
Dec 8, 2019
Jun 28, 2020
Dec 8, 2019
Jun 28, 2020
Jun 28, 2020
Jun 28, 2020
Oct 18, 2020
Oct 18, 2020

Repository files navigation

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)

  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. Run systemctl enable co2mini.service