Software for the web app to control a garage door
PHP JavaScript
Permalink
Failed to load latest commit information.
LICENSE
README.md Fixed a typo. Thanks to whomever pointed it out! Apr 21, 2016
android-chrome-144x144.png adding favicon, fixing rc.local Oct 20, 2015
android-chrome-192x192.png adding favicon, fixing rc.local Oct 20, 2015
android-chrome-36x36.png adding favicon, fixing rc.local Oct 20, 2015
android-chrome-48x48.png
android-chrome-72x72.png adding favicon, fixing rc.local Oct 20, 2015
android-chrome-96x96.png adding favicon, fixing rc.local Oct 20, 2015
apple-touch-icon-114x114.png
apple-touch-icon-120x120.png
apple-touch-icon-144x144.png adding favicon, fixing rc.local Oct 20, 2015
apple-touch-icon-152x152.png
apple-touch-icon-180x180.png
apple-touch-icon-57x57.png
apple-touch-icon-60x60.png adding favicon, fixing rc.local Oct 20, 2015
apple-touch-icon-72x72.png
apple-touch-icon-76x76.png adding favicon, fixing rc.local Oct 20, 2015
apple-touch-icon-precomposed.png
apple-touch-icon.png
browserconfig.xml adding favicon, fixing rc.local Oct 20, 2015
favicon-16x16.png
favicon-32x32.png
favicon-96x96.png
favicon.ico
getstatus.php
index.php
manifest.json adding favicon, fixing rc.local Oct 20, 2015
mstile-144x144.png adding favicon, fixing rc.local Oct 20, 2015
mstile-150x150.png adding favicon, fixing rc.local Oct 20, 2015
mstile-310x150.png adding favicon, fixing rc.local Oct 20, 2015
mstile-310x310.png adding favicon, fixing rc.local Oct 20, 2015
mstile-70x70.png adding favicon, fixing rc.local Oct 20, 2015
safari-pinned-tab.svg adding favicon, fixing rc.local Oct 20, 2015
svgclass.js first real commit Oct 19, 2015
toggle.php

README.md

Web interface for garage door opener on a Pi.

You'll need to create some files:

/var/www/door.sh:

#!/bin/bash 
echo "1" > /sys/class/gpio/gpio17/value && sleep .5 && echo "0" > /sys/class/gpio/gpio17/value

/var/www/status.sh:

#!/bin/bash 
if [[ $(cat /sys/class/gpio/gpio24/value) -eq 0 && $(cat /sys/class/gpio/gpio23/value) -eq 1 ]] 
then 
    echo opened 
elif [[ $(cat /sys/class/gpio/gpio24/value) -eq 1 && $(cat /sys/class/gpio/gpio23/value) -eq 0 ]] 
then 
    echo closed 
else 
    echo error 
fi

/etc/rc.local (add these lines):

echo "17" > /sys/class/gpio/export 
echo "23" > /sys/class/gpio/export 
echo "24" > /sys/class/gpio/export 
echo "out" > /sys/class/gpio/gpio17/direction 
echo "in" > /sys/class/gpio/gpio24/direction 
echo "in" > /sys/class/gpio/gpio23/direction