sunny/so-nice

Doesn't work for mpd (running on non-standart port + password)

Closed this issue · 9 comments

where can i set my mpd socket or port? also password required to connect to mpd?

So-nice uses the anyplayer gem, which uses mpc to connect to MPD (not the best way possible, I agree…).

Try installing mpc and setting your MPD_HOSTto password@host and MPD_PORT to your desired port.

You can add environment variables by adding these to your .bashrc:

MPD_HOST="password@host"
MPD_PORT=5678

added these 2 lines and still the same - Error: no music player launched!
while I'm listening to it. and controlling via GMPC - it's works.

Can you try adding the environment variables to how you launch so-nice, as so :

MPD_HOST="password@host" MPD_PORT=5678 thin start …

now it's works!
btw my OS is Ubuntu 11.10 x64 if it's needed to know.

you should add password/host/port settings to mpc command in anyplayer to solve this issue
it's mpc params:

-h, --host= Connect to server on
-P, --password= Connect to server using password
-p, --port= Connect to server port

Yay \o/

Did it work with the exported environment variables on one line or did you have to add the h, P & p arguments to that line ?

I used command as you said here #6 (comment)
but just advice you to add some params in mpc command. coz it's better to keep password and host/port in config file than passing everytime these with thin run command.

issue can be closed coz actually it's anyplayer issue. I didn't knew it when posted.