Giter Site home page Giter Site logo

pilightswebserver's Introduction

PiLightsWebServer

Web server running on a Raspberry Pi to control Christmas Lights

Usaage: ./lightsite.py Starts up the web server on port 5000

The webserver can be configured with a configuration file in the environment variable PILIGHTSWEB_SETTING.

Following are the configuration variables:

  • PORT - Port number for the webserver. Default 5000.
  • WEB_ROUTE_MAIN - Web routing for the main application. Default '/lights'
  • WEB_ROUTE_SCHED - Web routing for the scheduling application. Default WEB_ROUTE_MAIN + '/schedule'
  • WEB_ROUTE_PLAYLIST - Web routing for the playlist management app. Default WEB_ROUTE_MAIN + '/playlist'
  • DATABASE - File name of the SQLite database to hold user, schedule, and playlist information. Default 'db'
  • MUSIC_PATH - File path to the directory containing music MP3 files. Default '/home/pi/music'
  • DEBUG - If true, enable debug mode. Default True

PiLightsWebServer uses the Apache 2.0 license (see LICENSE for text).

This web server uses (and depends on) Flask.

Flask can be installed by entering the following:

  • sudo apt-get install pyton-pip
  • sudo pip install Flask

pilightswebserver's People

Contributors

goneall 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.