-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automatic door closure after 10:30PM if a door is open for more than 30 minutes #110
Comments
you can add on /etc/crontab a simple bash or python script that will close/open the garage at any time you want... Exports pin to userspace, change pin nr, sleep ...echo "11" > /sys/class/gpio/export Sets pin 11 as an outputecho "out" > /sys/class/gpio/gpio11/direction Sets pin 11 to lowecho "0" > /sys/class/gpio/gpio11/value Sets pin 11 to highecho "1" > /sys/class/gpio/gpio11/value UnExports pin from userspaceecho "11" > /sys/class/gpio/unexport python script: |
If you already have your garage publicly accessible, this script might work for you. I'm using Pushbullet for notifications and had to use a few sleep commands. The pi doesn't respond fast enough if you ask for the status of each door one right after another but works ok with these delays. `import requests pb = Pushbullet('') right = requests.get('http:///st?id=right') if right.text == 'open': rightcheckup = requests.get('http:///st?id=right') if rightcheckup.text == 'open': rightfinal = requests.get('http:///st?id=right') if rightfinal.text == 'open': if (rightfinal.text == 'closed' and leftfinal.text == 'closed'): ` I know my code is ugly, but it works. |
Thanks; very nice scripts. I don't know the Pushbullet pushbullet feature. I will give it a try. To be honest I am a little bit scary to be locked out in some cases. It is why I wanted to add this test (time and duration) . |
I forked and modified this project a 2-3 years ago to add something along these lines. What I designed it to do:
|
Thanks for your help. Don’t worry. I am about to add some code to do the automatic closure. I also have modified the code to associate the garden lights along with a light detector, so not easy to share with the community.
I was thinking to use a free gpio that I could set to true or false to enable/disable the automatic closure.
Work in progress. I am not python expert :).
Gilles
From: Pack3tL0ss [mailto:notifications@github.com]
Sent: mercredi 10 avril 2019 09:58
To: andrewshilliday/garage-door-controller <garage-door-controller@noreply.github.com>
Cc: Gilles94500 <gilles.sapene@laposte.net>; Author <author@noreply.github.com>
Subject: Re: [andrewshilliday/garage-door-controller] automatic door closure after 10:30PM if a door is open for more than 30 minutes (#110)
I forked and modified this project a 2-3 years ago to add something along these lines.
Slightly different, but adding a time of day bit wouldn't be difficult.
What I designed it to do:
* send notification if garage left open for 10 mins. I added Pushbullet which has been added to master since
* send notification 60 seconds before autoclose
* audible warning 2 min before autoclose
* audible warning as autoclose becomes eminent
* retry loop that will give up after 5 attempts... Send notification on every failure... For times when an obstruction etc prevents for from closing
* autoclose enable/disable button in web interface
Added ZoneMinder integration and a lot of other stuff, unfortunately it's far deviated from the master branch at this point. I have a lot of cleanup/ refactoring to do beforeI can post it, but I've been using it for a few years now. It's a goal to get it up and start doing PRs, but it'll be a bit B4 I have time
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#110 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AQHIgXm2yto2rZwHeoJBzXGLITFAkHNlks5vfZmegaJpZM4cPmmw> . <https://github.com/notifications/beacon/AQHIgXPblyU5jGAY0vsj59zs-hdJ_buVks5vfZmegaJpZM4cPmmw.gif>
|
Hi all, I’m a bit late to the party on this issue, but just to throw in my own two cents. I had considered adding a capability like that when I was originally writing the code but decided against it for the simple reason that the idea of garage doors opening and shutting on their own without any human involvement leaves me apprehensive. Safety issues aside, there is a security aspect to consider. If for some reason your sensor should fail (loose wire, bad contact, etc.) the controller will think the door is open when it’s in fact close. When 10:30 comes around, it will try to close it and instead will wind up opening the garage. I would suggest that a notification system would serve you better. |
We went home late last nigth and we forgot to close the gate. My mobile phone is on mute between 10PM and 8AM, so I have not been alerted and the gate has been left opened all the night.
Would be it possible to add an automatic doors closure if the time is greater than 10:30PM and a door has been opened for more than 30 minutes? And send a specific mail to know that it has happened.
It could be customizable using the json config file. Something like:
"use_autom":true
"autom_start":2230
"autom_duration":30
Gilles
The text was updated successfully, but these errors were encountered: