Giter Club home page Giter Club logo

home_automation_script_v3_controlwebserver's Introduction

2 November 2016 Update

Added support for a buzzer on GPIO 18 for a audiable indication once geyser is turned off. Disabled the audio alarm via the music system. Replaced apt-get upgrade with apt-get dist-upgrade

30 September 2016

This repository contains the source code of the latest iteration of my Control Web Server (ControlWS or CWS) which i use on a raspberry Pi running the latest version of OSMC as on date.

Simply put, it uses flask and runs on port 80; when the correct url is accessed, it will call the requisite bash script.

As of this commit, available switches are /shutdownall /geyser /play/1 /play/2 /play/next /play/previous /switch1/1hour /switch1/reset

Credit to Rohit Talukdar ( https://github.com/trohit ) for the invaluable help in having this up and running, as well as posting it here on github.

Pre-requisites & Installation:

sudo apt-get install git-core -y  
git clone https://github.com/sfilinto/home_automation_script_v3_controlwebserver.git  
cd home_automation_script_v3_controlwebserver  
chmod a+x install_script.sh  
sudo ./install_script.sh  

Post Installation:

command to manually start the web server

sudo /usr/local/bin/controlws/startws

Add the below line to the crontab (crontab -e) to have the web server auto start at boot

@reboot sudo /usr/local/bin/controlws/startws  

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.