Giter VIP home page Giter VIP logo

particle-dht22's Introduction

particle-dht22

Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron

Yes, this again.

Particle Cloud Functions

  • enable() - Turns reading from module "on"
  • disable() - Turns reading from module "off"
  • enableDeepSleep() - Enables sleep, but not actually "deep" sleep
  • disableDeepSleep() - Enables sleep, but not actually "deep" sleep
  • setDelay(short) - Set update delay in ms

Note: Particle Cloud Functions accept a single String value; this code coerces any args into the proper data type.

Particle Cloud Variables

  • settings - {String}: All settings in a JSON object. Properties:
    • enabled - {bool} (default true): Enabled or not
    • deepSleep - {bool} (default false): Deep sleep enabled or not
    • delay - {short} (default 900000; 15 minutes): Delay between reads in milliseconds

Notes

  • This code persists settings in EEPROM. Should I be doing this? I have no idea.
  • Going to try to hook this up to a LiPo battery
  • Might add a INA219 to check battery and/or an RTC module to do actual deep sleep.
  • The enclosure for this project will probably be clingfilm.

License

Copyright © 2019 Christopher Hiller. Licensed MIT

particle-dht22's People

Watchers

 avatar  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.