4 ms·
I've got a TON of music on my external harddrive, and I haven't felt like putting all of that music on my new computer or phone. It just takes up too much space
by bennyg 13y ago
I've got a TON of music on my external harddrive, and I haven't felt like putting all of that music on my new computer or phone. It just takes up too much space. So I decided I'd set up a cloud radio player for it with an iPhone app to listen. So, I turned one of my Pi's into a lamp server with mysql and php and made it public facing. I then wrote a small PHP script that filled the database with 3 columns: the name of the song, the artist, and the path on the harddrive to the audio file. From there I just made a simple iOS app that queries my db and fills in a list of the songs, then streams from my Pi. It's pretty sweet right now, it shuffles the playback and retains the filtering options through the shuffling (so if I wanna' play Jimi Hendrix music, it'll shuffle Jimi). It plays in the background. The next step will be querying some online db of album artwork to put up/show in the background. Here's a screenshot of my app: http://imgur.com/dQzHYSe http://imgur.com/dQzHYSe
I'm thinking of open sourcing the app and writing a really detailed tutorial of how I did it all on Github. Anybody want something like this?
- robotmay 13y agoSounds really interesting; I'd be very curious if you opened it up!
- bennyg 13y agoI'll try getting the tutorial up soon - I was going to make it into a github.io page, so I have some more stuff to figure out.
- dude_abides 13y agoI use gnump3d ( http://www.gnu.org/software/gnump3d/ http://www.gnu.org/software/gnump3d/ ) for this exact same purpose. It's quite an awesome piece of software and worth checking out.
- bennyg 13y agoLooks cool, I'll have to check that out in more detail. I pretty much just curated all of the bits and pieces of mine (php script to get metadata info on mp3s and then add to db, etc). Haha, so mine ends up as a mishmash of different things, a beautiful hack basically.
- sciurus 13y agoTake a look at Ampache. There are a couple existing iOS clients for it. https://en.wikipedia.org/wiki/Ampache https://en.wikipedia.org/wiki/Ampache http://iampache.com/ http://iampache.com/ http://ampachex.com/ http://ampachex.com/
- sfboy88 13y agoI also use my Pi for music but I just do it in the form of Podcasts because I am lazy, and mostly listen to multi hour long mixes anyways. Basically just have apache running and I connect and download the music from a podcast app on my iPhone, it's pretty sweet. I also use it to remotely power on my HTPC so I can watch movies from my iPad while I am traveling with work without having to leave my power hungry HTPC on all the time.