hi Lemontree

I suggest you run the squeezelite command on the command line. On the
[Squeezelite settings] page, at the bottom, there is "Squeezelite
command string".

When amp.sh doesn't exist or not executable I get:


Code:
--------------------
    tc@Akkordion:~$ /mnt/mmcblk0p2/tce/squeezelite-armv6hf -n "Akkordion" -o 
hw:CARD=sndrpihifiberry -a 80:4:32:1: -S /home/tc/amp.sh
  Script /home/tc/amp.sh, not found
--------------------


I am testing on pCP2.06 (cause that all I have at the moment)


Code:
--------------------
    /mnt/mmcblk0p2/tce/squeezelite-armv6hf -n "Akkordion" -o 
hw:CARD=sndrpihifiberry -a 80:4:32:1: -S /home/tc/amp.sh
  
--------------------



Code:
--------------------
    #!/bin/sh
  
  
#========================================================================================
  # Basic gpio script
  
#----------------------------------------------------------------------------------------
  # squeezelite -S /home/tc/amp.sh
  #
  # squeezelite sets $1 to:
  #       0: off
  #       1: on
  #       2: initialising
  
#----------------------------------------------------------------------------------------
  
  # Version: 0.01 2016-03-03 GE
  #       Original.
  
  # type tty at prompt to determine dev
  
  #TERMINAL=/dev/console          # boot console
  
  TERMINAL=/dev/pts/0                     # ssh window
  
  case $1 in
  2)
  echo "$1: Initialising..." >$TERMINAL
  ;;
  1)
  echo "$1: turn on" >$TERMINAL
  ;;
  0)
  echo "$1: turn off" >$TERMINAL
  ;;
  esac
  
--------------------



Code:
--------------------
    sudo chmod 755 amp.sh
--------------------


Results:


Code:
--------------------
    tc@Akkordion:~$ /mnt/mmcblk0p2/tce/squeezelite-armv6hf -n "Akkordion" -o 
hw:CARD=sndrpihifiberry -a 80:4:32:1: -S /home/tc/amp.sh
  2: Initialising...
  1: turn on
  0: turn off
  1: turn on
  0: turn off
  1: turn on
  
--------------------


BTW: piCorePlayer has micropython installed by default, though I don't
know the limitations.

regards
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=105018

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

Reply via email to