GithubHelp home page GithubHelp logo

garageweb's Introduction

YouTube Video Instructions found here: https://youtu.be/Fcx6wANw9KM

Setting up a Flask web server to control your garage door & display the door status & log usage.


Products I used in this video:

Raspberry Pi Zero W with case on Amazon: https://amzn.to/34ujK5C

Raspberry Pi Zero W on Adafruit: https://www.adafruit.com/product/3400

4 Channel Relay (to Open Garage Door): https://amzn.to/3b4lHbD

Magnetic Reed Switch (You need 2): https://amzn.to/39YG7kU

Jumper/Breadboard wire 120ct: https://amzn.to/2V3fFlV

Hammer Header & Install Kit on Amazon: https://amzn.to/3b5RbxX

Hammer Headers on Adafruit: https://www.adafruit.com/product/3662


Setup Instructions:

  1. --First setup your Raspberry Pi: https://www.youtube.com/watch?v=EeEU_8HG9l0

  2. --Lets upgrade the apt-get program: sudo apt-get update

  3. --Next install the Flask Web Server: sudo apt-get install python-flask

  4. --Install the GIT application so you can download my Github code: sudo apt-get install git

  5. --Download my Github code: sudo git clone https://github.com/shrocky2/GarageWeb

  6. --Test out setup and webpage (default port is 5000) cd GarageWeb --Test Relay connections python relaytest.py --Test Magnetic Reed Switches python log.py --Test out Webpage (Rasp_Pi_IP_Address:5000) python web.py

  7. --To Setup this code to run automatically on system boot up: sudo nano /etc/rc.local --Add the next 2 lines before the last line "exit 0" sudo python /home/pi/GarageWeb/web.py & sudo python /home/pi/GarageWeb/log.py & exit 0

  8. --Change the default password of "12345678" sudo nano web.py --find the 2 lines that contain "12345678" change to new password.

  9. --Change default port number (if desired) it'll be the last line of web.py

  10. --Reboot system and let program autostart sudo reboot

  11. --Set up Port Forwarding on your Router to allow access when away from home. --Once setup, turn off WiFi on your phone and test. You'll need to know the REAL address of your home router.


Additional Videos:

Sonoff Garage Door Opener: https://youtu.be/f1JeKHraDf8

How to set up your Raspberry Pi: https://youtu.be/EeEU_8HG9l0

How to set up Port Forwarding on your Router: https://youtu.be/VhVV25zCFrQ

garageweb's People

Contributors

shrocky2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.