Wikia

Music Player Daemon Community Wiki

Hack:Bluempd

525pages on
this wiki
Talk0

Using bluemote, you can quite easily control mpd (via mpc) with your bluetooth-enabled T610 mobile phone.

Show info Edit

To show which track is currently playing on your phone, you can use this script:

 while true 
 do 
   NAME=`mpc | head  -1 | sed "s/.*\///;s/.*- //"`
   bluemote --send "> Status \"$NAME\"" 
   sleep 1 
 done

bluemote configuration Edit

 RetrySecs 30
 Device /dev/rfcomm0
 CharSet 8859-1
 Daemon Yes
 %SetVol ~/scripts/set-vol-main
 %GetVol ~/scripts/get-vol-main
 Log No
   
 [Menu]
 Next
 	-mpc next
 Prev
 	-mpc prev
 Play/Pause
 	-mpc toggle
 Stop
 	-mpc stop
 Louder
 	-mpc volume +5
 Quiet
 	-mpc volume -5
 About
 	:about()
 [End]
 
 [Event]
 MoveOut
         -mpc stop
 MoveIn
         -mpc play
 IncomingCall
         -mpc pause
 CallEnd
         -mpc play
 CallAbort
         -mpc play
 
 [End]
 
 [KeyMap]
 1	Home
 2	Up
 3	Prior
 4	Left
 5	space 
 6	Right
 7	End
 8	Down
 9	Next
 ^	Up
 v	Down
 <	Left
 >	Right
 :C	Return
 :O	Escape
 d	XF86AudioLowerVolume
 u	XF86AudioRaiseVolume
 [End]

Around Wikia's network

Random Wiki