Skip to content

Email/SMS if a garage door is left open and open and close the door using a rest interface

License

Notifications You must be signed in to change notification settings

jnk5y/pi_garage_manager

 
 

Repository files navigation

Pi Garage Manager

Docker container with a Raspberry Pi Python script to email or send an SMS (IFTTT) if a garage door is left open. It can also trigger the garage door to open/close.

QUICK START

BASIC RASPBERRY PI SETUP Equipment required

RASPBERRY PI INITIAL SETUP

  • Follow the guide at http://elinux.org/RPi_Easy_SD_Card_Setup to write the Raspbian image to the SD card.
  • Boot the RPi and at raspi-config, expand the filesystem, set the "pi" account password, and enable SSH.
  • Reboot the Raspberry Pi
  • Edit /etc/wpa_supplicant/wpa_supplicant.conf and configure the RPi to connect to your wifi network.
  • Run sudo apt update && sudo apt upgrade
  • Run sudo apt install git

PI GARAGE MANAGER WIRING DIAGRAMS

RUNNING PI_GARAGE_MANAGER

  • sudo apt-get install python-setuptools python-dev libffi-dev
  • sudo easy_install pip
  • sudo pip install requests
  • sudo pip install requests[security]
  • sudo pip install httplib2
  • Edit the etc/pi_garage_manager_config.py file
    • Modify the alert section to suit your alerting needs
    • Add your firebase key
  • Run the install.sh script sudo bash ./install.sh
    • The install script will copy bin/pi_garage_manager.py to /usr/local/sbin, etc/pi_garage_manager_config.py to /usr/local/etc, init.d/pi_garage_manager to /etc/init.d and make pi_garage_manager.py start on startup
  • To run the pi_garage_manager service run sudo service pi_garage_manager start
  • At this point, the Pi Garage Manager software should be running. You can view its log in /var/log/pi_garage_manager.log. You can use the garage_trigger.py script found in bin/ to send commands to the service to open/close the garage door.

Thanks to:

About

Email/SMS if a garage door is left open and open and close the door using a rest interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.7%
  • Shell 10.3%