Coder Social home page Coder Social logo

jerr0328 / co2mini Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 37 KB

Get your CO2 Monitor into Prometheus and HomeKit

Home Page: https://pypi.org/project/co2mini/

License: MIT License

Python 100.00%
co2-sensor co2monitor prometheus python3 homekit hacktoberfest co2-monitor raspberry-pi

co2mini's Introduction

Hi there, I'm Jeremy ๐Ÿ‘‹

co2mini's People

Contributors

dependabot[bot] avatar jerr0328 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

grahamc

co2mini's Issues

MQTT/Home Assistant integration

I want to use Home Assistant instead of prometheus scraping. I'll either need MQTT or some other native way to integrate with HA. This should be an optional add-on so existing usage can be left as-is.

Allow running without setting udev rules

I was doing some digging if I could run this more easily in Docker, and realized that there's an hid package using libhid that would allow the code to just pick up the CO2 sensor when it gets plugged in, no configuration/udev needed (udev would just be to start/stop the service when it gets plugged in or unplugged). However, this would add an extra dependency and needs some system dependencies (libhid) to be installed.

Start service when device is plugged in

Hi thanks for pointing out that these devices have data logging.

I've taken some of your stuff and added them to https://github.com/pepijndevos/rs-co2mon and thought you might be interested to steal my udev/systemd setup, which is hot-pluggable. It seems your udev rule just sets the permissions and the service just runs at startup, while with my rules, udev launches the service when the device is plugged in.

Also the Rust code I forked seems to just open a specific VID:PID rather than taking a device path, which seems more reliable to me. I'd expect Python to also have this option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.