Hi everyone, noob here... and french btw, excuse my english 

I approximately managed to get it working, read several times the entire
thread for that,
but there's something probably very simple I don't get :

It works perfectly if I run this command line in my monitor:

sbpd e,23,24,VOLU,2 b,25,NEXT,2,0 (But I need to sudo pigpiod before to
make it work)

I then put this in /home/tc/sbpd-script :


Code:
--------------------
    #start pigpiod daemon
  pigpiod -t 0 -f -l -s 10
  
  # wait for pigpiod to initialize - indicated by 'pigs t' exit code of zero
  count=10 # approx time limit in seconds
  while ! pigs t >/dev/null 2>&1 ; do
  if [ $((count--)) -le 0 ]; then
  printf "\npigpiod failed to initialize within time limit\n"
  exit 1 # or however you want to deal with failure
  fi
  #       printf "\nWaiting for pigpiod to initialize\n"
  sleep 1
  done
  printf "\npigpiod is running\n"
  
  # load uinput module - required to be able to send keystrokes
  # then set the permission to group writable, so you don't need to run sbpd 
with
  sudo modprobe uinput
  sudo chmod g+w /dev/uinput
  
  # issue the sbpd command
  sbpd -v -f /home/tc/sbpd_commands.cfg e,23,24,VOLU,2 b,25,NEXT,2,0
  
--------------------

And made it executable.

Ant now I'm lost, what command line do I need to put in User Command to
make it work ?

I tried 
Code:
--------------------
    /home/tc/sbpd-script.sh
--------------------
 but nothing happens even after rebooting (do I need to ?)
I also tried to put 2 commands (#1 sudo pigpiod and #2 sbpd
e,23,24,VOLU,2 b,25,NEXT,2,0) without any luck

Also, sbpd_commands.cfg is located in /home/tc/SqueezeButtonPi-Daemon,
don't know if it's ok ?

Thanks in advance for any help


------------------------------------------------------------------------
KillerJoe34's Profile: http://forums.slimdevices.com/member.php?userid=72423
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