After a lot of tearing my hair out, I have now got a connection to the MPD server which doesn’t drop out and a stable, high quality music server pulling the music from my NAS – with a next button for the odd misstep on the playlist. Here is the code for your delectation.

I’ve been playing with the very excellent Volumio.  Having got it all up and running, with a Hifiberry DAC and an LCD from http://andypi.co.uk/?p=351 it was pretty good. However, Volumio only allows for one playlist and the occasional song I was not in the mood for crept in.