Water sensor for raspberry pi. Some code to monitor a basement floor or other area for water, alert and clear when the condition is corrected.
- copy waterpi.yaml to /etc
- edit it with your slack webhook if you want
- edit it with your sns topic so you can get SMS texts
- add some lines to /boot/config.txt (depends on pins you use for thermo)
# jgu for thermo DS18B20
dtoverlay=w1-gpio,gpiopin=27
dtparam=i2c_arm=on
- poll a physical sensor
- generate an alert when wet
- generate a clear when resolved
- call out to external script for sending SMS text or other commands
- control an led, flashing = program running and solid is alarm state
- alert and clear sh files are stubs. replace them with your actions
- water.py is a sample sensor
- water2.py is just another sensor
- one copy of the program runs per sensor for now, I'm lazy
- modify the sensor_name because its what spews to screen
- a few jpg's to show a sample display and sample sensor
- start_sensors.sh can be called from rc.local to start a screen session on boot
- send_slack.py uses waterpi.yaml, copy to /etc and edit the webhook
- mouse_trap.py has nothing to do with water alarms, but is connected to the same raspberry pi so it's in here
- Sample freeboard.io dashboard
- leds with resistors
- sensor plate and display panel
- b connectors for joining wire
- alarm wire
- jumper wires to pi
- premade sensor to copy from
- adapted from reading this page


