Skip to content

juanino/waterpi

Repository files navigation

waterpi

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.

install

  • 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

Features

  • 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

File notes

  • 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

Dashboards

parts list

special thanks

Images of physical interfaces

Water Sensor

sensor pic

Control Panel

control panel

Mouse Trap

mousetrap_pic

About

water sensors for raspberry pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors