Skip to content

asalilje/musicbox

Repository files navigation

MusicBox

MusicBox, a node app waiting for button pushes. Every push plays a new track from a chosen Spotify playlist.

Deployed on a Raspberry Pi, connected via GPIO 2 and 17 to a button and a LED. Playing music using Mopidy with the Spotify extension.

Some environment values needs to be added:

  • SPOTIFY_PLAYLIST_URL
  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • TWITTER_ACCESS_TOKEN_KEY
  • TWITTER_ACCESS_TOKEN_SECRET

The button blinks for 10 seconds with a 20 seconds interval. During this time it is active. When a song is played, a tweet is made about it.

Docker image: asalilje/portablemusic.

Link to blogpost on how to set up your pi and run this using Docker: http://reallyshouldblogthis.blogspot.se/2018/03/build-raspberry-pi-musicbox-using.html

About

Nodeapp for a Raspberry Pi, playing music at the press of a button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published