This is my take using Python and Pimoroni's Mood light kit with a Raspberry PI Zero W
The main difference is there's transitions from one colour to another instead of just put the new color there
sudo apt-get install requests
If using the Pimoroni's Unicorn PHAT HD, the libraries are needed. You can check their github page for instructions: https://github.com/pimoroni/unicorn-hat
If using Piromoroni's kit, sudo is necessary:
sudo python cheerlights.py
Cheerlights is a colaborative IoT project. Everytime someone changes the color, every device around the world (and outside too) connected to Cheerlights API will display the same color.
More info on: http://cheerlights.com/
Pimoroni's Mood Light: https://shop.pimoroni.com/collections/kits/products/mood-light-pi-zero-w-project-kit
Just added to cron
sudo crontab -e
@reboot /usr/bin/python /home/pi/cheerlights/cheerlights.py &