Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron
Yes, this again.
enable()- Turns reading from module "on"disable()- Turns reading from module "off"enableDeepSleep()- Enables sleep, but not actually "deep" sleepdisableDeepSleep()- Enables sleep, but not actually "deep" sleepsetDelay(short)- Set update delay in ms
Note: Particle Cloud Functions accept a single
Stringvalue; this code coerces any args into the proper data type.
settings-{String}: All settings in a JSON object. Properties:enabled-{bool}(defaulttrue): Enabled or notdeepSleep-{bool}(defaultfalse): Deep sleep enabled or notdelay-{short}(default900000; 15 minutes): Delay between reads in milliseconds
- 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.
Copyright © 2019 Christopher Hiller. Licensed MIT