sgreene570 / CSHRGBLEDSign

Networked RGB LEDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cshrgbledsign (aka MOLS)

WIP Networked RGB LEDs using Flask and the pi-blaster library.
Written and tested in Python 3.

Base Setup

To set up the LEDs and other hardware, refer to this wiring diagram.
Before starting the flask server, ensure that pi-blaster is properly installed.
Colors are parsed through the python colour package.
For example, colors can be passed as Hex Codes(#FFFFFF), rgb values(1, .5, 1), and english phrases("blue").

Using iButtons

The included iButton.py script allows for user iButtons to access an LDAP server to find a .colors configuration stored in user homedirs on a file system. This particular project relies on the CSH LDAP python library which was explicitly written for CSH(Computer Science House) members. CSH LDAP credentials are stored outisde of the python script for obvious security reasons.
To install the iButton script requirements, type the following:
pip -r install requirements.txt
The iButton script will print out recognized iButtons and the corresponding colors that are set. For CSH members, see the wiki to learn more about on floor LED setups.

Running the Flask Server

To start the Flask server, sudo su and then type
Flask run --host=0.0.0.0 --port=80

About

Networked RGB LEDs

License:MIT License


Languages

Language:Python 100.0%