Christmas-music-carousel-snap

Didier Roche

on 8 December 2016

christmas-bells-1
Ding ding ding! It’s Christmas time, and as part of the festive competition we’re hosting that asks you to build a seasonal snap on your RaspberryPi…we couldn’t help but try out another example of our own.

Didier from the dev team has created a Christmas music carousel snap! The snap allows you to play a Christmas music carousel from a selection of pre-selected music or selecting your own midi music! They will play in random orders and loop through them!

On an Ubuntu 16.04 desktop, you can install this as a snap:

snap install christmas-music-carousel --beta --devmode

Then, run it with:

sudo christmas-music-carousel

and let the music play! Note that you can specify here a list of your favorite midi musics.

Here is a short video of the snap in action:

But that’s not it! The really cool part is if you bring a Raspberry PiGlow to the table, connected on the same network than your laptop.

piglow01
The LED will light up in sync with the music carousel played on your laptop, without any configuration, no cable between the laptop (playing music) and the Raspberry Pi (lighting up the LEDs) *Christmas magic* we said!

Here is a video of this in action:

To get that working, on your Raspberry PiGlow with Ubuntu Core installed on it with a PiGlow. Install the grpc-piglow snap on it:

snap install grpc-piglow --beta --devmode

Then, run the Christmas music carousel binary on your laptop just as before. Note that you can use –brightness to adjust remotely the brightness of the LEDs.

Happy Christmas, and feel free to use this as an inspiration to submit your Christmas snaps to our snap competition with great prizes!

Technical info and source code on GitHub for Christmas music carousel and on gRPC PiGlow project.

Internet of Things

From home control to drones, robots and industrial systems, Ubuntu Core and Snaps provide robust security, app stores and reliable updates for all your IoT devices.

Newsletter signup

Select topics you’re
interested in

In submitting this form, I confirm that I have read and agree to Canonical’s Privacy Notice and Privacy Policy.

Related posts

Roadmap for Ubuntu official support for the Raspberry Pi 4

With 19.10 release of Ubuntu Server, Canonical announced official support for the Raspberry Pi 4. The latest board from the Raspberry Pi Foundation sports a...

Standardising software to quickly deliver a smart city platform for millions

New York has the highest population density of any city in the United States with over 27,000 people per square mile. The average New Yorker has a commute of...

Ubuntu 19.10 delivers Kubernetes at the edge, multi-cloud infrastructure economics and an integrated AI/ML developer experience

17th October 2019: Canonical today announced the release of Ubuntu 19.10 with a focus on accelerating developer productivity in AI/ML, new edge capabilities...