Git Product home page Git Product logo

humidity's Introduction

Environmental Control

A quick hack to provide environmental control using a Raspberry Pi using an AM2302 temperature/humidity sensor. The idea being a humidifier is hooked up to the output pin and the software will keep humidity within the given range.

Monitors the sensor, turns an output on/off at given humidity ranges and produces graphs for 1 hour, 24 hours and 7 days.

Run with:

sudo python control.py <GPIO input pin> <GPIO output pin>

For example:

sudo python control.py 17 18

Install dependencies with:

sudo ./setup
age: control.py [-h] [--humiditymin HUMIDITYMIN] [--humiditymax HUMIDITYMAX]
                  [--graphupdate GRAPHUPDATE] [--graphdir GRAPHDIR]
                  [--cycle CYCLE]
                  sensor_pin output_pin

Environment control

positional arguments:
  sensor_pin            The GPIO pin number which the AM2302 data line is
                        connected to
  output_pin            The GPIO pin number which the output is connected to

optional arguments:
  -h, --help            show this help message and exit
  --humiditymin HUMIDITYMIN
                        Minimum humidity in percent. Output goes high when
                        humidity falls to this level. (default: 95)
  --humiditymax HUMIDITYMAX
                        Maximum humidity in percent. Output goes low when
                        humidity rises to this level. (default: 95)
  --graphupdate GRAPHUPDATE
                        How often we generate graphs in seconds. (default: 60)
  --graphdir GRAPHDIR   Full pathname of directory into which graphs are
                        generated. (default: /var/www)
  --cycle CYCLE         Specifiy a humidity cycle:
                        minutes,min_humidity,max_humidity,[minutes,min,max]...

humidity's People

Contributors

grking avatar

Watchers

James Cloos avatar

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.