PDA

View Full Version : Control Router via bluetooth-phone (for playing mp3s) - how to install pybluez?


strubbl
16-11-2007, 18:21
Hi folks,

All my mp3s are on a HDD attached to the router. Wouldn't it be wonderful to play them directly with the router connected to your stereo - and all that with a full interface on your mobile phone?

I already installed an USB-Soundcard and a Bluetoth-Dongle (but I don't know how to enable the BT-dongle automatically after a reboot - maybe somebody can help me in this thread (http://www.wl500g.info/showthread.php?p=69521#post69521)?).

Things I found out so far:
- For the actual playing of mp3s, the MusicPlayerDaemon (http://www.musicpd.org/) looks perfect.

Way 1: Using the Bemused Protocol (http://bemused.sourceforge.net/)
- For the (java-enabled) mobile phone there's JAM SE (http://mitglied.lycos.de/jamsoftware/)
- so you have to run some sort of bemused-server on the ASUS, which also acts as an MPD-Client (http://mpd.wikia.com/wiki/Clients) (=controls MPD). Meaning some sort of bridge.
- There is a bridge: pbmpcd (http://arton.cunst.net/mpd/) - but it needs pybluez. (And so, i think also python?)

Way 2:
Use Mpd-remote (http://mpd.wikia.com/wiki/Client:Mpd_remote) and acess it over your phone's webbrowser. For that, we need a PHP-Server on the ASUS. And - also not so easy as it might seem - we have to convince the phone's bowser to connect via bluetooth. I found something here (http://wiki.nslu2-info.de/pmwiki.php/HowTo/DebianSlugBluez), but thats for DebianSlug and doesn't say a thing how to manage the last part.

Way 3:
Use remoteJ (http://remotej.sourceforge.net/)(former bluemote-K750 (http://www.kde-apps.org/content/show.php?content=32779)). Seems like only for SE-Phones (I own one :p) and primarily for KDE-Apps. But intended for a lot more than just music. "Easy to write other scripts". But Arghs! Seems like it needs Java also on the server!

So, seems like the first way is the best. But how to install pybluez on the wl500gP? I'm not that familiar with linux yet so maybe somebody can give me some advice.

(At the end, I would like to have 2 "music-interfaces"-running. One for my roommates for the kitchen (->soundcard one) - and another, more advanced one for my room (->soundcard two), which also allows me to control the lights in my room (over an atmel-uC and some relais) - but at first, I would be happy if it works at all)