Raspberry Pi Garage Interface (RPGi)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Raspberry Pi Garage Interface (RPGi)

A totally amazing software solution to AI-enable your garage door using a Raspberry Pi!

Current Features

  • Fully trained Tensorflow neural network to recognize if the garage door is open or closed using just the Raspberry Pi Camera!
  • "Iron Man" inspired UI that's designed to look awesome on your mobile phone.
  • Uses sockets.io for real-time UI updates.
  • In addition to the door status indicator, you can also view door status via the live camera feed.
  • Setup files needed to run as a service under Raspbian!

Future Features (Time Permitting)

  • Ability to send notifications when the garage door has been open beyond a set time limit.
  • Showing which users are connected in the UI.
  • Creating a cloud-friendly service that can be run independently from the garage door control itself for higher security and easy setup.
  • User account management!



The hardware for this project is based on the Raspberry Pi B+ project board combined with the Raspberry Pi 8 megapixel camera. Everything for the build was purchased off Amazon and is linked here for easy reference.


Server side, RPGi is built with Node.js and Tensorflow with the model being served via a python script.

The front-end is built with Hype and is designed to be used on iOS and Android mobile phones.


You need Node.js installed and you'll need a Raspberry Pi that has been configured to toggle your garage door using an existing remote. More details can be found here. You will also need to install Tensorflow for the AI component to work. A good guide on how to get Tensorflow working on the Raspberry Pi can be found here.


$ git clone git@github.com:robertrittmuller/rpgi.git
$ cd rpgi
$ npm install


Simply edit app.js. The only configuration uses standard IP notation to control which IP address ranges are allowed to connect. Don't expose your garage UI out to the internet as there is no user access control! (Yet)

First time setup

WARNING: You need to have followed the instructions linked above on building the hardware components required to interact with your garage door before this software will work correctly.

Running in production

Two service configuration scripts have been included to make it easy to run RPGi as a service under Raspian. Setup is easy.

$ sudo cp rpgi.service /lib/systemd/system/
$ sudo cp garagevision.service /lib/systemd/system/
$ sudo systemctl enable rpgi.service
$ sudo systemctl enable garagevision.service
$ sudo systemctl start rpgi
$ sudo systemctl start garagevision


Have a question?

Any issues or questions (no matter how basic), open an issue. Please take the initiative to read relevant documentation and be pro-active with debugging.

Want to contribute?

Contributions are welcome. If you're changing something non-trivial, you may want to submit an issue before creating a large pull request.