AirTunes - forked-daapd and Airport Express
One small issue one can run into after installing forked-daapd is that using the iPhone/iPad remote one cannot play any songs.
Looking in /var/opt/forked-daapd.log one will see something:
The reason for this issue is that the device one is trying to send the output to is not know to forked-daapd, or it is not selected by default.
The way to solve this is;
1) install sqlite3 tools
2) use bonjour browser, find the id of the device which will be in HEX, then use the Calculator to convert it into binary.
3) stop forked-daapd (/etc/init.d/forked-daapd stop)
4) open the database with sqlite3:
# sqlite3 /var/cache/forked-daapd/songs3.db
sqlite> insert into speakers (, 1, 100);
sqlite> update speakers
... set selected = 0
... where id = 0;
.exit
5) start forked-daapd (/etc/init.d/forked-daapd start)
And now in Remote it should be possible to play songs.
Looking in /var/opt/forked-daapd.log one will see something:
[2011-04-14 11:24:59] laudio: Could not open playback device: No such file or directory
[2011-04-14 11:24:59] player: Could not open local audio
[2011-04-14 11:24:59] dacp: Could not start playback
The reason for this issue is that the device one is trying to send the output to is not know to forked-daapd, or it is not selected by default.
The way to solve this is;
1) install sqlite3 tools
2) use bonjour browser, find the id of the device which will be in HEX, then use the Calculator to convert it into binary.
3) stop forked-daapd (/etc/init.d/forked-daapd stop)
4) open the database with sqlite3:
# sqlite3 /var/cache/forked-daapd/songs3.db
sqlite> insert into speakers (, 1, 100);
sqlite> update speakers
... set selected = 0
... where id = 0;
.exit
5) start forked-daapd (/etc/init.d/forked-daapd start)
And now in Remote it should be possible to play songs.
Comments
Also as far as I remember the device ID is a decimal representation of the network mac address.
a) what such an ID might look like in the Bonjour browser (screenshot?)
b) how to convert it to binary
I have everything else set up but I am stuck at exactly this point :(
Thanks.
a) what such an ID might look like in the Bonjour browser (screenshot?)
b) how to convert it to binary
I have everything else set up but I am stuck at exactly this point :(
Thank you very much!
Follow the documentation (README) for forked-daapd, and search on the internet.