Howchoo / garage-pi

https://howchoo.com/g/yznmzmuxywu/how-to-control-your-garage-door-from-your-phone-using-a-raspberry-pi
15 stars 10 forks source link

request : ability to control more than one garage door. #3

Open cnlson opened 5 years ago

cnlson commented 5 years ago

I have 2 garage doors and the opener controls are directly next to each other. I would like to control both from the same pi, this would require a little more configurability and the ability to both have multiple open/close sensors and multiple control buttons on the web page. also concerned about security for that page.

carloswlkr commented 3 years ago

Were you ever able to work out setting up two openers? I'm in a similar situation...

icburns commented 3 years ago

I have been working on this feature.. No guarantees it will work for you, and I have very little in the way of documentation (this was built only with my specific use-case in mind), but I hope this helps.

As for security, if you keep this running within your private home network, your WiFi password is your primary layer of security (plus the obscurity of the pi's IP address and port, but that really shouldn't count). The pi can only be accessed by devices joined to your network. This is both a feature and a potential annoyance. Since devices must be joined to the network before interacting with the pi, your WiFi signal needs to be pretty strong in your driveway for a seamless experience.

Tagging @carloswlkr for visibility

cnlson commented 3 years ago

Thanks, but years ago the MyQ system dropped into the $30 range, it's even cheaper now. And that's less than a pi, with better security, and compatibility.

So I'm sorted, please move forward without my concerns.and consider my request complete.

On Wed, Feb 10, 2021, 2:03 AM icburns - notifications@github.com github.cnlson.f422ac2bc3.notifications#reply@reply.github.com wrote:

I am working on this feature. https://github.com/icburns/garage-pi. No guarantees it will work for you, and I have very little in the way of documentation, but I hope this helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Howchoo/garage-pi/issues/3#issuecomment-776521057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALAB26MT3WHQASNHJZRHPDS6I4WJANCNFSM4GFXGHSQ .

danielpike1 commented 2 years ago

I want to try to modify this to serve as a gate opener with a "hold open" function. This would be done by having a toggle button for the relay. ie. push once to close the circuit indefinitely, push again to open indefinitely. The existing gate controller has a code that can be set to hold the gate open, and all it does is permanently (until deactivated) close the circuit. Once deactivated the circuit is broken/opened and the gate goes through the close cycle automatically. how could you modify this program to have an on/off button? I have no coding knowledge, so I'm trying to learn on the fly here. Thanks.

icburns commented 2 years ago

Have a look from line 33 in server.js, that's the function which opens/closes the circuit via the relay pin. Disclaimer that I'm writing from my phone and this is a highly simplistic and untested answer, but you can start with something like: app.get('/relay', function(req, res) { if (rpio.read(relayPin) === rpio.LOW) { rpio.write(relayPin, rpio.LOW); } else { rpio.write(relayPin, rpio.HIGH); } res.send('done'); });