Introduction: Easy Raspberry Pi AirPlay Music Server With Forked-Daapd

The new Raspberry Pi 3 now includes a wifi chip making it easier than ever to use for home automation projects. I have a big music collection that won't fit on a smartphone, but don't want to leave a dedicated computer running all the time just to access it. Recently bought a few first generation Airplay speakers off eBay (Philips Fidelio AD7000W/37 was $180 in 2011 and now goes for about $30), and wanted to figure out a way to stream to them via the Pi. I first tried Kodi, then Mopidy, then regular MPD using PulseAudio/Raop, but had no success. I finally found Forked-Daapd and was up and running in about 30 minutes. Now I have the Pi shoved in a corner connected to my external hard drive serving up sweet music 24/7 without taking up valuable desk space. As an added bonus, the Apple Remote app easily syncs making you feel like you are playing your local music library, and there is even support for Spotify!

Step 1: Required Hardware

Step 2: Required Software

Raspbian Jessie

Installation Guide

I don't think we need another instructable Raspberry Pi project that starts off teaching you how to install the operating system so I'll just leave you those links. All you really need to do once your SD card is ready is boot up and connect to your wifi network.

Step 3: Install Forded-Daapd

From this thread:

Install

  1. If you use Jessie then add this line to /etc/apt/sources.list "deb http://www.gyfgafguf.dk/raspbian jessie/armhf/"
  2. If you use Wheezy then add this line to /etc/apt/sources.list "deb http://www.gyfgafguf.dk/raspbian wheezy-backports/armhf/"
  3. Run "sudo apt-get update" and then "sudo apt-get install forked-daapd"
  4. Edit the config file /etc/forked-daapd.conf to point to your music directory or network share drive and (re)start the server with sudo /etc/init.d/forked-daapd restart

Optional - how to add support for Spotify

  1. Add "deb http://www.gyfgafguf.dk/raspbian stable main contrib non-free" to /etc/apt/sources.list
  2. Run "sudo apt-get update" and then "sudo apt-get install libspotify-dev"
  3. Restart forked-daapd and enter credentials as described in the instructions.
  4. Check the log to see how it is working. It should start loading your playlists.

More in depth instructions here.

Step 4: Pair Apple Remote

Install Apple Remote on your iPhone/iPad

Pair remote app with pi by running this script.

Comments

author
hardheid made it!(author)2016-12-03

Thanks so much for the great tutorial. It works great. Forked-daapd,
however, is not able to start on boot on my build however and I have to
run service forked-daapd force-reload on every reboot. I have tried
changing the users and permissions, edit rc.local, and rc-update, but no
dice.

Does anyone know a way around this issue?

author
MohanShyam made it!(author)2016-11-01

After reading the article, I'm interested in purchasing the below.

https://www.amazon.com/Vilros-Raspberry-Basic-Star...

But a few reviews, indicate that there seem to be problems with power supply. Would you suggest anything else?

And, another query would be if the AirPlay connection is as reliable and good as the one on AirPort Express? Because, my primary use would be for audio streaming from my different iOS devices.

Thanks

author
DIY+Hacks+and+How+Tos made it!(author)2016-06-07

Clever use for a Raspberry Pi

About This Instructable

3,684views

32favorites

License:

More by rpiguy:Easy Raspberry Pi AirPlay Music Server With Forked-Daapd
Add instructable to: