andrewshilliday / garage-door-controller

Software to monitor and control garage doors via a raspberry pi
MIT License
327 stars 132 forks source link

Feedback #6

Closed HarleyGolfGuy closed 6 years ago

HarleyGolfGuy commented 9 years ago

Is there a place in github for discussion regarding a project? I don't see one, so here goes:

Overall well done! I'm up and running! Very cool.

budpi commented 9 years ago

HarleyGolfGuy

I ran into the same issue with the wall button not working. I just switched the wires on the back of the wall button and all was well. Hope this helps or that you figured this out by yourself...

By the way, I too wish to get rid of the password intigration (to the extent that I do not wish to enter it everytime) You commented that you wanted to eliminate it all together...any luck?

thanks,

budpi

cali0028 commented 9 years ago

Great job on this project!

After searching and reading this is the only that I actually liked that was simple and clean!

Just did the s/w side of it on my pi but have not installed the last peace...hooking it up to my garage! That will happen this weekend.

One thing I couldn't figure out is how do I remove the second user / door? I only have one door and two users.

The password requirement I got away by using chrome on the iOS and Android.

I've also managed to run this using freedns using duckdns.org if anyone is interested. They have a Rpi package that you can install so the IP get updated for changes every 5 min.

Wish List: Webcam support. Looking at the UI I think there is enough space to include a webcam feed.

jsmithgmail commented 8 years ago

Hi thank you for this project. I dont have the door sensor hooked up yet (parts on the way). but have wired up the pi to the relay and the door opener. The door does not open/close. I was wondering if the missing sensor would prevent the door from opening/closing?

andrewshilliday commented 8 years ago

jsmith, the sensors shouldn't be needed. try taking the wires coming from your garage door controller and touching them together. Does the garage door open? If not, then your controller is either miswired, or is using a protocol over that wire that is more than just a "close the circuit to open the garage door" kind of thing.

andrewshilliday commented 8 years ago

HarleyGolfGuy, I think that you can disable authentication by removing it from the settings file but my official answer is "try it and see what happens" :)

ronlh1 commented 8 years ago

I see there are lines where I can add send to email. How do I configure and do I have to install any other software to have it send email notification?

Thanks, Ron

kfakhri1 commented 8 years ago

Just finished installing this. Thanks for putting this up! Few questions still remain, first, has anyone figured out how to remove/modify the login/password requirement? I modified the configure.json file, but it disabled the whole software, so I changed it back. I read above that there's a setting in the twisted Python library. Where would I find the library on my Pi? Second, any luck with the webcam integration. I've installed mine without the sensors, so a webcam would be my way of checking on the door. Third, any instructions on how to set email notifications? In case I decide to install the sensors. Thanks again.

0-kaladin commented 8 years ago

@kfakhri1 I made the web authentication an option if you want to make the same changes: https://github.com/0-kaladin/garage-door-controller2/commit/d517c1ded5497844bed9defd460fdd292c4652a3

then in your config.json in the options block just add "auth":"False",

this will allow you to easily enable again if you ever want it.

kfakhri1 commented 8 years ago

0-kaladin, I don't have an options block in my config.json file. Where would I enter the "auth":"False", code? Thanks for your help.

jtonzi commented 8 years ago

@kfakhri1 , you need to add one. I put this in my config.json (in between the "site" and "doors" blocks, but I don't think it matters where)

"options" : { "auth":"True" },

Just change that "True" to "False and you'll be all set. (I wanted to keep my authorization on for now)

kfakhri1 commented 8 years ago

jtonzi, Thanks. That worked! Next step, integrating a webcam feed into the code! Thanks again.

Dk-guru commented 8 years ago

Andrew,

Thanks for the project! I used this for a commercial grade opener; it works perfectly for each function: Stop, Open, Close.
I did have to use http://www.amazon.com/SainSmart-4-CH-4-Channel-Relay-Module/dp/B0057OC5O8 with the Raspbery Pi2 Model B+ and to protect against power failure: http://www.hellonomad.com/products/nomadplus.

Daniel

budpi commented 8 years ago

I successfully integrated a webcam by following these instructions for installing Motion from this website.

http://stuffbabiesneed.com/blog/building-raspberry-pi-baby-monitor-part-one/

I've used this software for other projects and it works just fine.

HARDWARE USED:

After you have the program installed, EDIT your

/home/pi/garage-door-controller/www/index/html file

to include this code somewhere between the BODY included within these brackets <>

img src="http://the-IP-of-your-Raspberry-Pi:8083" width="100%" height="280"

SPECIAL NOTE!!!

Be sure to change the port 8081 to something like 8083 in this file:

sudo nano /etc/motion/motion.conf

(Not sure how important this last part is but, I figured that using the same port as the Garage-Door-Controller may cause some conflict.


The Webcam can also be ran from other Raspberry Pi and this code also works for other IP Webcam software/apps, like ones you download from the PlayStore and run on an old Android Phone.

Hope this helps anyone interested. If there are other, easier ways that work better. Please, do share.

rapi3 commented 8 years ago

hello,

I setup this project on Raspberry Pi ( thank you for your hard work to code ) and now I am testing on my desk with 8 board relays. I am not using contacts for real state close/open and I assigned for all doors unused "state_pin" : 26. Commands for all 8 relays works ok,

only problem I have is with email sending: I tried to test it with gmail and yahoo accounts as server on both ports 465 and 587 but no luck to send emails from pi. in log I see: action 'action 17' suspended

Is it email part broken in last code ? Or is something wrong in my set-up ? Any idea ?

thank you very much.

    "server" : "<SERVER_IP_ADDRESS>",
    "port" : "<OPENHAB_SERVER_PORT>"

part of config:

.......
    "use_auth":true,
    "use_alerts":true,
    "use_openhab":false
},
"alerts":
{
    "time_to_wait" : 10,
    "alert_type" : "smtp",
    "smtp":
        {
        "smtphost" : "smtp.mail.yahoo.com",
        "smtpport" : 465,
        "smtp_tls" : "True",
        "username" : "yyyyyyyyy@yahoo.com",
        "password" : "xxxxxxxxxxxxxxx",
        "to_email" : "zzzzzzzz@gmail.com"

.............

part of log

Apr 18 15:15:54 rpi3 garage_controller: we are using SMTP ... > Apr 18 15:17:01 rpi3 rsyslogd-2007: action 'action 17' suspended, next retry is Mon Apr 18 15:18:01 2016 [try http://www.rsyslog.com/e/2007 ] ... > Apr 18 15:18:32 rpi3 rsyslogd-2007: action 'action 17' suspended, next retry is Mon Apr 18 15:19:32 2016 [try http://www.rsyslog.com/e/2007 ] ... > Apr 18 15:23:58 rpi3 rsyslogd-2007: action 'action 17' suspended, next retry is Mon Apr 18 15:24:58 2016 [try http://www.rsyslog.com/e/2007 ] ...

crispyjones commented 7 years ago

Thanks for this, wanted to pass along my experience.

Built without issue using Raspbian Jessie Lite on Rpi Zero W, everything fits on a 2gb card.

I built my own transistor driven relay and had to reverse the logic of the relay pin, simply flipped True/False in controller.py in the few places gpio.output(self.relay_pin xxxx) occurred

ronlh1 commented 7 years ago

I have a problem sending email as well Anyone have a solution?

crispyjones commented 7 years ago

I had a couple issues with out of the box config using gmail.

First, in config.json change the alert type line to the following "alert_type" : "smtp", Then fill in the rest of the variables with your account info, port 587 worked for me.

On my first attempt my gmail account alerted me to an insecure login attempt, I had to go to settings and allow insecure devices for it to function, the instructions for changing the settings are in the bounce email. I did this on an old gmail account that I consider throw away, I would not do this to my "real" account as the password is saved in plaintext on the pi and you are degrading the overall security of the linked gmail account.

Maybe some linux gurus have a more secure way to do this, but this is how I got it up and running.

ronlh1 commented 6 years ago

Copy of config.json.txt

I'm still having issues with sending email. Here is a copy of my config.json

On Sat, Jul 8, 2017 at 1:13 PM, crispyjones notifications@github.com wrote:

I had a couple issues with out of the box config using gmail.

First, in config.json change the alert type line to the following "alert_type" : "smtp", Then fill in the rest of the variables with your account info, port 587 worked for me.

On my first attempt my gmail account alerted me to an insecure login attempt, I had to go to settings and allow insecure devices for it to function, the instructions for changing the settings are in the bounce email. I did this on an old gmail account that I consider throw away, I would not do this to my "real" account as the password is saved in plaintext on the pi and you are degrading the overall security of the linked gmail account.

Maybe some linux gurus have a more secure way to do this, but this is how I got it up and running.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewshilliday/garage-door-controller/issues/6#issuecomment-313868767, or mute the thread https://github.com/notifications/unsubscribe-auth/AFWhzj4_MIqcGyYdCdhUXOp8-w2fBHD_ks5sL7jHgaJpZM4Ddyya .

Dk-guru commented 6 years ago

I may be using an older version... but I would remove the stuff that you do not use: i.e. remove pushbullet, access_token, pushover, user_key, and api_key.

Here is what my config.jason file has:

{

"smtp":
    {
    "smtphost" : "smtp.gmail.com",
    "smtpport" : 587,
    "smtp_tls" : "True",
    "username" : "garage.door@.com",
    "password" : "<AG",
    "to_email" : "d@.com",
    "time_to_wait" : 1740
    },
"site" :
    {
    "port":881,
    "username":"f",
    "password":"1"
    },
"doors" : 
    {
        "left" : 
               {
               "name" : "CLOSE",
               "relay_pin" : 23,
               "state_pin" : 27,
               "approx_time_to_close" : 15,
               "approx_time_to_open" : 15
               },
        "middle" : 
               {
               "name" : "STOP",
               "relay_pin" : 22,
               "state_pin" : 27,
               "approx_time_to_close" : 2,
               "approx_time_to_open" : 2
               },
        "right" : 
            {
            "name" : "OPEN",
            "relay_pin" : 24,
            "state_pin" : 27,
            "approx_time_to_close" : 15,
            "approx_time_to_open" : 15
            }
    }

}
jtonzi commented 6 years ago

I'm with Dk-guru on this one. Remove the stuff you don't need. Also, I have the time_to_wait variable inside the smtp section. It may be needed. Edit: scratch that last part. I have an older version. I still agree with the removal of the excess stuff.

ronlh1 commented 6 years ago

I have the time to wait in the smtp section, DK-guru has the time to wait under to email. If I change the alert type from null to smtp the web page will not even load.

On Mon, Jul 10, 2017 at 1:27 PM, jtonzi notifications@github.com wrote:

I'm with Dk-guru on this one. Remove the stuff you don't need. Also, I have the time_to_wait variable inside the smtp section. It may be needed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewshilliday/garage-door-controller/issues/6#issuecomment-314176517, or mute the thread https://github.com/notifications/unsubscribe-auth/AFWhzj_0XUKbgy1k04tWsLwP_AZKiwqKks5sMl7xgaJpZM4Ddyya .

jtonzi commented 6 years ago

I think you're going to need someone else to weigh in. Looks like Dk-guru and I are on an older version (I haven't updated in well over a year). I wish I could help. Best of luck.


From: ronlh1 notifications@github.com Sent: Monday, July 10, 2017 2:11:37 PM To: andrewshilliday/garage-door-controller Cc: jtonzi; Comment Subject: Re: [andrewshilliday/garage-door-controller] Feedback (#6)

I have the time to wait in the smtp section, DK-guru has the time to wait under to email. If I change the alert type from null to smtp the web page will not even load.

On Mon, Jul 10, 2017 at 1:27 PM, jtonzi notifications@github.com wrote:

I'm with Dk-guru on this one. Remove the stuff you don't need. Also, I have the time_to_wait variable inside the smtp section. It may be needed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewshilliday/garage-door-controller/issues/6#issuecomment-314176517, or mute the thread https://github.com/notifications/unsubscribe-auth/AFWhzj_0XUKbgy1k04tWsLwP_AZKiwqKks5sMl7xgaJpZM4Ddyya .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/andrewshilliday/garage-door-controller/issues/6#issuecomment-314205433, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AO5KW6VcRzfYBXU7ZeDBIKywOUA1av7Sks5sMndogaJpZM4Ddyya.

andrewshilliday commented 6 years ago

Are you seeing an error printed to the console, or are you simply not receiving emails?

ronlh1 commented 6 years ago

I'm not receiving emails. I have tried different email accounts as well.

On Tue, Jul 11, 2017 at 10:25 AM, andrewshilliday notifications@github.com wrote:

Are you seeing an error printed to the console, or are you simply not receiving emails?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewshilliday/garage-door-controller/issues/6#issuecomment-314461018, or mute the thread https://github.com/notifications/unsubscribe-auth/AFWhzgKZR4AUEYfgr6eMZg1XOPzK_pIJks5sM4XmgaJpZM4Ddyya .

andrewshilliday commented 6 years ago

Were they all gmail accounts? Try running the program manually from the command line rather than automatically at startup. That should make it so that it prints any errors to the screen.

ronlh1 commented 6 years ago

I have tried outlook email as well. how do I run manually?

Thanks

On Tue, Jul 11, 2017 at 1:07 PM, andrewshilliday notifications@github.com wrote:

Were they all gmail accounts? Try running the program manually from the command line rather than automatically at startup. That should make it so that it prints any errors to the screen.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewshilliday/garage-door-controller/issues/6#issuecomment-314509877, or mute the thread https://github.com/notifications/unsubscribe-auth/AFWhzoloKY-xOvuicO5N1ISV6PIEgQnJks5sM6vPgaJpZM4Ddyya .

sqlcursor commented 6 years ago

Thanks for the tutorial. This is great and exactly what I needed. The only headbanging moment was when I was trying to get the right door sensor to correctly report the state of the door. When I looked at the pin diagram on your site, you have the right door sensor going to what is labeled GPIO21. When I put that in the config.json file it did not work. It wasn't until I looked at an alternate pin diagram that I discovered it was actually GPIO27, not GPIO21. When I changed the config.json file with that, the sensor started reporting the state appropriately for that door. Again, I can't thank you enough for this and it's working flawlessly!