My sbpd command line, with all but the 'pcp bs' button removed for
clarity.


Code:
--------------------
    
  sbpd -M dc:a6:32:03:82:22 -A 192.168.1.4 -P 9000 -f 
/home/tc/sbpd_commands.cfg b,27,POWR,2,0,SCRIPT:/home/tc/pcp_bs.sh,2000 
  
--------------------


The -M, -A and -P options force the script to work on a specific player
on a specific instance of LMS - not necessary in your case I think.

The -f option points to my config file, where various commands are
defined.  But only the POWR command is left in this example (this
toggles the soft power on the player with the specified MAC address
(dc:a6:32:03:82:22).  My POWR command is defined in sbpd_commands.cfg as
'POWR=["power"]')

The string 'b,27,POWR,2,0,SCRIPT:/home/tc/pcp_bs.sh,2000' means that a
short push on button GPIO27 will use the POWR command to toggle the
player's soft power, while a long press (>2000 millisec, i.e. 2 seconds,
to avoid accidental presses) will call the pcp_bs.sh script.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110809

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

Reply via email to