Page 1 of 1

Audio Player (Pi) & Controller (Web Server)

Posted: Wed Nov 06, 2013 1:14 pm
by chrisdaco
Hi Guys,

I have this project I've been asked to do, but I'm stuck. In short, it's basically a Raspberry Pi audio player hooked up to the internet, and every 30 minutes the Pi makes a request to the server (loading a url or other way) to "GET" any new data on the server. If a new file exists (mp3/wav etc) then the Pi will download it, and if a file has been removed then the Pi will delete it from its local storage (SD Card).

This is a little out of my comfort zone. I can handle everything on the server side, but totally lost when it comes to playing audio with the Pi (although this looks promising http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/), and communicating back and forth with the web server, and performing actions based on what the server returns.

I would really appreciate any help/suggestions you have. I would really love to learn how to build stuff with Pi's, but at the minute, I just have no clue where/how I would go about this.

Also, apologies if this has been posted elsewhere. I've seen a few topics to give me an idea about playing audio, but i'm still confused with this particular idea.

Re: Audio Player (Pi) & Controller (Web Server)

Posted: Wed Nov 06, 2013 4:25 pm
by KenT
You could look at my Pi Presents (see sig) . It has a feature called a Liveshow. Just ftp a track into a special directory on the Pi and Pi Presents will play it, delete the track using ftp when you have finished with it. Plays videos and images as well.