tag:blogger.com,1999:blog-458428706535714973.post8286850390677527338..comments2023-08-01T03:52:38.926-07:00Comments on Don's Projects: Opening a garage door from the InternetUnknownnoreply@blogger.comBlogger14125tag:blogger.com,1999:blog-458428706535714973.post-85002404930822172432022-06-28T06:21:30.609-07:002022-06-28T06:21:30.609-07:00I read many articls but your article is unique and...I read many articls but your article is unique and informative. keep it up <a href="http://www.richsecuritytech.com/wooden-door-magnet/" rel="nofollow"> Float level sensor </a>aronrichhttps://www.blogger.com/profile/09086740516753293069noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-86777835116455232122016-04-21T08:51:49.801-07:002016-04-21T08:51:49.801-07:00Hey, sorry I'm late to responding. Glad that ...Hey, sorry I'm late to responding. Glad that you have it working. I'd advise against running apache under a different user because Ubuntu does some nice things for the www-data user to protect your system from being hacked. That being said, you probably needed to give your www-data user access to the scripts. I have the scripts chmod 755 so any user on the system can run them regardless of the fact that root owns them. My guess is that is what was going on with you. Keep in mind that you can do 'tail -f /var/log/apache2/error.log' while you are clicking on the SVG to try to see what is erroring. Anyhow, for what it's worth, I'd recommend trying to resolve this without changing the apache user before exposing it to the automated scripts that look for exploits on the web. <br /><br />If you have any other questions, I'm happy to help! Thank you for checking out my project and I really hope that it helps make your life better. Don Howdeshellhttps://www.blogger.com/profile/17710034442027367209noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-67119711700062711942016-04-20T18:16:23.772-07:002016-04-20T18:16:23.772-07:00Well, I think I figured it out. For right or wron...Well, I think I figured it out. For right or wrong I changed the user:group that apache uses from www-data to the local user and now its working.<br /><br />Thanks for posting this and all of the code. Now to actually get it all installed and verify it's working. I have a webcam in the garage and will show the stream right below the svg image for visual verification at least for a little while.Karlhttps://www.blogger.com/profile/02968187008478465438noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-83519457137766394452016-04-20T16:04:13.431-07:002016-04-20T16:04:13.431-07:00Don, I'm attempting to replicate this but I...Don, I'm attempting to replicate this but I'm having some trouble. I have the webserver up and running and the circuit built and functioning but I just can't get the website to work. I can test the relay and the switch status' manually from terminal or by executing the shell scripts but the website won't reflect the door status or activate the relay.<br /><br />I found one typo in your ReadMe file for the status.sh script (missing "/" on the 5th line of the script) and corrected that and I can run status.sh from Terminal and reports the correct status.<br /><br />I can also run both door.sh and toggle.php from Terminal and both correctly activate the relay for 1/2 second.<br /><br />When I load the webpage though it shows the door as closed no matter the switch configuration and when I tap on the image the page will reload but it never activates the relay.<br /><br />Hoping you might have some pointers.<br /><br />Thanks!Karlhttps://www.blogger.com/profile/02968187008478465438noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-83140550838153623792015-12-19T14:55:49.369-08:002015-12-19T14:55:49.369-08:00@GPSGeek
Good idea. I'll probably end up impl...@GPSGeek<br />Good idea. I'll probably end up implementing that. <br />(also, I deleted the duplicate post)<br /><br />Thanks for checking the project out and providing feedback.Don Howdeshellhttps://www.blogger.com/profile/17710034442027367209noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-29809511357779224002015-12-19T13:45:40.485-08:002015-12-19T13:45:40.485-08:00GPSGeek: Yes exactly, I have the circuit for it, I...GPSGeek: Yes exactly, I have the circuit for it, I just need to hook it up. I can't test it properly, though, since I can't reproduce the original problem. Pretty scary!Lawrence Kesteloothttps://www.blogger.com/profile/08175600004629340681noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-52844986963477826412015-12-19T06:24:55.917-08:002015-12-19T06:24:55.917-08:00Just a thought... add a check to the loop that loo...Just a thought... add a check to the loop that looks at the switches to verify that the signal is in the state you put it in. This should be a separate pin, not just checking a variable or reading the same pin. If not, drive it back or self reset to recover. Add a weak pulldown to the base of the transister to ensure that if the Pi fails or the power glitches, the relay will stay off.GPSGeekhttps://www.blogger.com/profile/10599753899984432657noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-71231358144865314752015-12-11T13:25:00.115-08:002015-12-11T13:25:00.115-08:00Damn. That would suck, especially if you were out...Damn. That would suck, especially if you were out of town. Thanks for sharing your experience - it's definitely a valid concern with this sort of thing.Don Howdeshellhttps://www.blogger.com/profile/17710034442027367209noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-38732950130277185872015-12-11T13:18:08.728-08:002015-12-11T13:18:08.728-08:00I built this exact project a few years ago. It wor...I built this exact project a few years ago. It worked great until at dinner one night the garage door opened by itself. I investigated and found that the Pi had decided to bring that GPIO line high. There was nothing in the software logs. What was especially disturbing was that the relay was kept shut by the misbehaving GPIO pin, so pressing the normal garage door button did nothing. I couldn't close my own door! I had to restart the software, which released the GPIO pin. That scared me enough that I disconnected the relay. Otherwise I could be on vacation and my neighbors wouldn't even be able to close the door for me. I don't know what I should do to get enough confidence to hook it back up. Maybe upgrade to the latest Pi and Raspbian and hope the problem is fixed. Or separately monitor the relay and reboot if it's stuck.Lawrence Kesteloothttps://www.blogger.com/profile/08175600004629340681noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-75960531463725778382015-12-11T11:20:20.003-08:002015-12-11T11:20:20.003-08:00It was just a SPDT 5v relay from Radio Shack. You...It was just a SPDT 5v relay from Radio Shack. You can us any 5v relay for this. <br /><br />And yes, the magnetic switches were Reed switches. These: http://www.amazon.com/gp/product/B00PZMG980<br /><br />Thanks for reading!Don Howdeshellhttps://www.blogger.com/profile/17710034442027367209noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-69618015418767976102015-12-11T11:13:50.539-08:002015-12-11T11:13:50.539-08:00Sure. I traded some work for an LG V410 (AT$T mod...Sure. I traded some work for an LG V410 (AT$T model) and had some issues downgrading the OS to be able to root and run a custom ROM (http://forum.xda-developers.com/g-pad-10/general/tutorial-lg-gpad-v410-5-1-to-4-4-t3232150) but it's all good now. <br /><br />It's not a particularly good looking mount, but I basically took an old GPS mount from a friend, took it apart to get the flexible metal arm, cut a hole in the dash and used plastic welding epoxy to attach it to the back and used a different epoxy to attach the other end to a universal tablet mount. I got custom sized 90 degree audio and MicroUSB cables and hid them along the metal arm with heat shrink.<br /><br />I grabbed a Bluetooth OBD2 ELM327 reader from Amazon for about $10 and Torque Pro for $5. From there it was Nova Launcher with one home screen and all kinds of convenience widgets and settings (Play Music, Torque, aCar Pro, Weather widgets, Maps, double tap to sleep and wake, status bar brightness slider, Google Now hotwords anywhere, and other things to make it useful while driving. We have PBS Kids on there so the kids can stream Daniel Tiger, Cat in the Hat, and Dinosaur Train when we don't need to use it.<br /><br />Also, we have an NFC sticker under the dash so we can turn our WiFi hotspot on our phones on and of quickly for the tablet's Internet connectivity. <br /><br />Pretty straightforward. Grab me on Google+ if you would like more information. <br /><br />Thanks for checking out my project!Don Howdeshellhttps://www.blogger.com/profile/17710034442027367209noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-52288139507289713902015-12-11T09:27:05.855-08:002015-12-11T09:27:05.855-08:00What relay part did you use? Which switches, just ...What relay part did you use? Which switches, just reed switches??mehttps://www.blogger.com/profile/11822880044474033637noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-20359998722586531562015-12-11T07:40:34.875-08:002015-12-11T07:40:34.875-08:00I'd like to hear more about the Android Table ...I'd like to hear more about the Android Table / ODBII project.Jimhttps://www.blogger.com/profile/17965598480835477565noreply@blogger.comtag:blogger.com,1999:blog-458428706535714973.post-70900779434912097942015-12-07T09:56:30.388-08:002015-12-07T09:56:30.388-08:00Hi Don,
Great project! If you are interested in ma...Hi Don,<br />Great project! If you are interested in making a version using our service (https://www.wia.io) let me know, I'd be happy to help.<br /><br />Cheers,<br />Conall @ WiaConall Lavertyhttps://www.blogger.com/profile/02335145207436596239noreply@blogger.com