Didier Roche

Didier Roche

on 8 December 2016

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.

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.

Sign up for email updates

Choose the topics you're interested in


Related posts

Ora as a snap: ensuring users are benefiting from the latest version

Ora is a user-friendly task management service with integrated time-tracking, reports, list view, git integrations and many other features. Often referred to by users as ‘the sweet spot between Trello and Jira’, Ora provides almost a…

Eclipse 2018 survey: The IoT landscape, what it empirically looks like

Every year the Eclipse Foundation along with other sponsors conduct an online survey of the IoT market looking at what technologies are being used and how. The 2018 edition of that survey has just been made available and I thought it would…

The Nextcloud Box: a review of building an IoT device with snaps

In 2016, Canonical, Nextcloud and WDLabs introduced the Nextcloud Box, the first IoT style device running with snaps out of the box. Besides sales of nearly 2K boxes before Western Digital shut down their research division WDLabs late last…