This is a music box that I finished at the end of 2016, after nearly a year in the idea-code-build cycle (mostly thinking of ideas and coding). Inside is a Raspberry Pi running Volumio, which links to my Spotify account. The four smaller knobs are linked to Spotify playlists, and the bigger center knob adjusts the volume.
Inspiration (and lots of the code structure) comes from this post by /u/auntie-matter https://www.reddit.com/r/DIY/comments/38np36/i_made_a_raspberry_pi_jukebox_in_tulipwood_with/?st=ixfoihh8&sh=ce102192 about a year ago. While I don’t claim to be nearly as skilled a woodworker as he/she/they are, I’ve made some tweaks and added some feature that worked better for my needs. Many thanks to them for the basic how-to.
The code that I’m running is here: http://pastebin.com/73AQDB7u. I’m also making use of the spop client by Schnouki on Github (https://github.com/Schnouki/spop), which I use as the go-between between Python and Spotify.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!