You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
8 years ago | |
---|---|---|
lightrix | 8 years ago | |
roles | 8 years ago | |
.gitignore | 8 years ago | |
.gitmodules | 8 years ago | |
README.org | 8 years ago | |
lightrix.py | 8 years ago | |
lightrix.service | 8 years ago | |
mcatrc | 8 years ago | |
playbook.yaml | 8 years ago | |
test-client.py | 8 years ago |
README.org
Lightrix: Drive Adafruit Neopixels over Matrix
Installation
You will need a Raspberry Pi that is attached to your network. I am using a Raspberry Pi Model A+ due to its really adorable formfactor and the fact that I have some WiFi dongles laying about.
First off, get the rpi_ws281x
library working, and verify that strandtest.py
works for you. I followed this Adafruit tutorial to get it working, I would recommend the same; you will need a 3v3->5v logic level converter, which is unfortunate, but it makes this so much easier.
Once you have that working and installed, install the matrix-client
from Pip.
sudo pip install matrix-client pyyaml pytz
Yes, I install it in to the main Python library path, because I'm an infoterrorist. It's an embedded Raspberry Pi, deal with it.
Usage
- Create a
~/.mcatrc
- Run
python ./lightrix.py --room "<YOUR ROOM ID>" -c ~/.mcatrc
and it'll fire up - Go in to the room and type "rainbow"