Skip to main content

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)

  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

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.2.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

co2mini-0.2.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page