I want to control the volume with buttons, I bought this 'keyboard'
(http://www.audiophonics.fr/audiophonics-clavier-controle-xbmc-raspyfi-htpc-p-8435.html)
to test but it does not work on squeezeplug only on xbmc (and work very
well on xbmc)

If I understand this correctly, that device acts like a keyboard connected to the computer, right? In this case the keys are only evaluated by the application running in the foreground. Squeezeslave is running in the background, thus the keys won't work directly.

So I thought connected to the GPIO buttons and launch scripts. On the
'WIKI' (http://wiki.slimdevices.com/index.php/SqueezeSlave), there are
commands to control the volume but I can not do it when i send command i
have errors.

I have no idea about how to interface with GPIO. But if you can trigger scripts using it, then you simplest solution might be sending some CLI commands to the controlling LMS. See
http://yourserver:9000/html/docs/cli-api.html#mixer%20volume

Your script would basically have to send a command like this over telnet to port 9090 of your LMS (netcat can do that iirc):

04:20:00:12:23:45 mixer volume +10

Power is similar. Just check the CLI documentation.

--

Michael
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to