Pi Media

16 Jan 2015

portfolio, blog

Everyday Champions Centre/Church needed a solution to play slideshows/music/video on screens around the building. The media needed to change at various points during the day, and on different days.

We have 3 main “profiles” that we need to cater for in the building:

  • Conference media for during the week
  • Church media for Sundays
  • Media for the youth club on a Friday evening

We initially tried using an Apple TV, but we found it to be fairly faffy because we had to store images on Flickr or a computer, and have different albums and playlists for the the different profiles. That meant that we had to have a computer on all the time with iTunes open, and manually navigate to the slideshow. It soon became incredibly apparent that this was not a decent solutions

Cue the pi…

I decided that we needed to build something that was more suitable to what we needed. After a quick search around the internets for a similar project, nothing came up that looked like it was going to be any good, so we decided to build one.

We laid out the following criteria:

  • Automatic scheduled profile changing
  • Ability for centre staff to add/remove images/videos
  • Play music from Spotify playlists
  • Easily add new profiles and edit the play schedule

The first prototype for the player achieved the specification.

We built the system largely in PHP, using Mopidy for integration with Spotify, omxplayer for video playing and fbi for image stills. The actual media player was not physically accessible, so control for the system was over HTTP.

But lo and behold if Spotify didn’t change their API, screwing up the playlist playback.

We are currently in the process of building a new version of this system, more up to date, with a better UI.

Updates will be made accordingly.

Published on 16 Jan 2015