WIP Networked RGB LEDs using Flask and the pi-blaster library.
Written and tested in Python 3.
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"
).
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.
To start the Flask server, sudo su and then type
Flask run --host=0.0.0.0 --port=80