Giter Site home page Giter Site logo

rav4s / new-pi-garage-door-opener Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 325 KB

Contains python control script for a Raspberry Pi Smart Garage Door Opener and an installer script to automate installation on the Pi.

License: MIT License

Python 41.15% HTML 28.52% CSS 9.98% Shell 8.61% JavaScript 11.74%
garage-door python-script flask css html server raspberry-pi raspbian garage-door-opener garage-controller

new-pi-garage-door-opener's Introduction

New-Pi-Garage-Door-Opener

A rewrite of the Raspberry Pi Garage Door Opener using Flask.

This repo contains a python script (garage_door_script.py), which runs a Flask web server that allows you to control and monitor your Raspberry Pi Garage Door Opener. This script assumes you have the same hardware configuration as described in this video: https://youtu.be/An7KQbmUnhs.

Differences between this and the old python garage door control script (https://github.com/Rav4s/Pi-Garage-Door-Opener)

Unlike the old script, this one allows you to view the status of your garage door and control it from one webpage. Also, once you sign in, it sets a cookie which allows you to stay signed in after closing and re-opening the page. Improvements have also been made for mobile usability and overall look and feel (see the screenshots below).

What's in each folder?

The static folder contains the Bootstrap CSS framework, along with the main CSS file and the favicon.
The templates folder contains the index.html and login.html templates, which the python file uses to serve the webpages.
The main python script is called garage_door_script.py.

Installation

The install.sh script makes installation of the dependencies and control script quick and easy.

To get the installer script, enter your /home/pi directory and run wget https://raw.githubusercontent.com/Rav4s/New-Pi-Garage-Door-Opener/main/install.sh. After the file is downloaded, make it executable using sudo chmod 755 install.sh. Finally, run the script using ./install.sh.

The script will install all dependencies, clone the repository, and create a systemd service that automatically runs the script on boot. After installation, your web server will be accessible at https://localhost:1235.

Screenshots

Screenshot of main page

new-pi-garage-door-opener's People

Contributors

rav4s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

00mjk

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.