Skip to content

Control Adafruit NeoPixels using a RaspberryPi and the Cheerlights feed.

Notifications You must be signed in to change notification settings

davidbradway/CheerlightsPi

 
 

Repository files navigation

CheerlightsPi

Control Adafruit NeoPixels using a RaspberryPi and the Cheerlights feed!

Clone or download this project at Github.

Desription

Last year, I was inspired by Dave Koerner's NØHIO LOGBOOK.

Then I put together a Cheerlights display using a Ubuntu computer, Adafruit FLORA Arduino, and 8 FLORA NeoPixels: https://www.youtube.com/watch?v=lJNamwgsGlE https://plus.google.com/photos?pid=5957627945770423090&oid=116675413971505814200

This year, thanks to Tony DiCola's Python wrapper for the the excellent rpi_ws281x library created by Jeremy Garff, I could redo the project and cut out the Arduino! Follow the Adafruit guide here to get your NeoPixels working with Raspberry Pi

Installation, with some of the Requirements listed

./install.sh

Test Library

sudo python rpi_ws281x/python/examples/strandtest.py 

Test the cheerlights feed

python test_cheerlights_feed.py

Usage

sudo python cheerlights.py

(Optional) To remove the script from start-up, run the following command:

sudo update-rc.d -f cheerlights.sh remove

(Optional) commands for service

sudo /etc/init.d/cheerlights.sh start
sudo /etc/init.d/cheerlights.sh status
sudo /etc/init.d/cheerlights.sh stop

(Optional) Crontab with logging

* * * * * /bin/bash /home/pi/repos/CheerlightsPi/autorestart.sh >> /home/pi/myscript.log 2>&1

(Optional) check the cron log

grep CRON /var/log/syslog

(Optional) or continuously monitor it

tail -f /var/log/syslog | grep CRON

About

Control Adafruit NeoPixels using a RaspberryPi and the Cheerlights feed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.1%
  • Shell 24.9%