doorbot
A bot to monitor your dc resources
Actually there is only some scripts showing how to use the Raspberry pi GPIOs. It cannot be used in production as-is.
# Hardware part
Door sensors are connected to :
- GPIO 19 for back door
- GPIO 21 for front door
Each of one with a pulldown resistor (to avoid electrical noise causing the read of varying values).
Examples
Following demos are available in the examples folder
- ircbot : an irc bot sending door events of the back door and answering with front and back door state while asked with the command "porte"
- reading-door-sensors-events : an example of how to be notified when doors state changes without polling GPIOs
- reading-door-sensors-polling : an example of how to read doors state by polling GPIOs