https://github.com/joeylemon/piopener-pi
the raspberry pi code to control the piopener GPIO
https://github.com/joeylemon/piopener-pi
garage-door-opener nodejs raspberry-pi
Last synced: 2 months ago
JSON representation
the raspberry pi code to control the piopener GPIO
- Host: GitHub
- URL: https://github.com/joeylemon/piopener-pi
- Owner: joeylemon
- Created: 2020-10-19T19:58:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T21:51:10.000Z (about 5 years ago)
- Last Synced: 2025-08-09T03:23:37.136Z (11 months ago)
- Topics: garage-door-opener, nodejs, raspberry-pi
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# piopener-pi
### What is it?
Our project, titled piopener, is the infrastructure designed to allow us to communicate with our garage door via our API and perform actions upon it. These actions can be opening, closing, checking history, checking current open status, etc.
#### Repositories of piopener
- [piopener-server](https://github.com/joeylemon/piopener-server): Node.js backend
- [piopener-pi](https://github.com/joeylemon/piopener-pi): Raspberry Pi & Node.js client
- [piopener-app](https://github.com/joeylemon/piopener-app): Swift & storyboards iOS frontend
### Why?
After continuously losing, forgetting, or otherwise destroying our garage door openers, my roommate and I decided it would be a fun idea to reverse-engineer our garage door and allow us to do whatever we wanted with it.
### How?
To set up the endpoint for opening and closing the garage door, we simply connected wires from the Raspberry Pi to the circuit board inside of one of our broken garage door remotes. To determine whether the garage was opened or closed, we placed one magnetic reed switch at the beginning of the garage door frame and another at the end of the frame, with a magnet taped to the door's moving chain. When the moving magnet connects with one of the reed switches, the circuit is closed and we know what state the garage door is in.

### What is piopener-pi?
This repository is the code that lives on the actual Raspberry Pi. It is wired to the reed switches and the door remote, and can therefore send and receive signals programatically via the Pi's GPIO pins.
#### Technologies:
- Node.js and socket.io: this Pi uses Node.js and socket.io to maintain real-time communication with the [piopener-server](https://github.com/joeylemon/piopener-server) for opening and closing the garage and retrieving the status of the door