Thanks a lot for your replies. 

To tell the truth - it was late yesterday evening and I have not read
the full thread yesterday :( . The answers were somewhere on page
9-11... It now works! The post in this thread that pointed me into the
right direction was this one:
https://forums.slimdevices.com/showthread.php?107001-ANNOUNCE-SqueezeButtonPi-Tool-to-use-buttons-and-rotary-encoders-on-a-RPi&p=911473&viewfull=1#post911473


It explains on how to use arbitrary commands in sbpd config file.

I want to share my solution if anybody is interested in it - there is
one strange thing in it. If I do not specify a config file for sbpd the
default commands "POWR" and "PLAY" are working out-of-the-box. If I
specify a config file I need to explicitly specify them in the config
file, otherwise they would no longer work.

This is my sbpd-config-conf


Code:
--------------------
    
  POWR=["button","power"]
  PLAY=["pause"]
  FAV1=["favorites","playlist","play","item_id:1"]
  FAV2=["favorites","playlist","play","item_id:2"]
  FAV3=["favorites","playlist","play","item_id:3"]
  
--------------------


I am starting sbpd using this CLI


Code:
--------------------
    
  sbpd  -d -f /home/tc/sbpd-commands.cfg  e,27,17,VOLU  e,24,23,TRAC  b,22,POWR 
 b,5,PLAY  b,6,FAV1  b,16,FAV2  b,26,FAV3
  
--------------------


I also will have a look at the LMS presets editor as chill suggests.


------------------------------------------------------------------------
nigl's Profile: http://forums.slimdevices.com/member.php?userid=71787
View this thread: http://forums.slimdevices.com/showthread.php?t=107001

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

Reply via email to