Home of the Squeezebox™ & Transporter® network music players.
Page 45 of 50 FirstFirst ... 354344454647 ... LastLast
Results 441 to 450 of 491
  1. #441
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,782
    /home/tc/sbpd-script.sh is correct for put in user commands.

    What happens when you run the script manually. I can see you have a path issue for the cfg file. You need to fix that first.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #442
    Junior Member
    Join Date
    Jan 2022
    Location
    Alès, France
    Posts
    5
    It's ok if I run the script manually
    Do you mean I have to move the cfg in the tc directory ?

    Edit: just moved it in the tc directory but still the same

    Edit2: it seems it's a permission problem, I need to sudo pigpiod again after a reboot to make the script work, I probably did something wrong in the process..
    I'll try again tomorrow
    Last edited by KillerJoe34; 2022-01-04 at 13:39.

  3. #443
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,782
    The user commands section of pCP will run with root permission, so no need for sudo in the script.

    Is the script named sbpd-script or sbpd-script.sh Make sure you are using the correct name in user commands.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #444
    Junior Member
    Join Date
    Jan 2022
    Location
    Alès, France
    Posts
    5
    Yes, it's sbpd-script.sh

    I just added sudo pigpiod in the script and it works now strange

    Thank you Paul for your time and work !

    But... I'll be back

  5. #445
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Tried to add the pause command by pulling down the GPIO08 (pin24):

    /usr/local/sbin/sbpd -d -s b,24,PLAY,2,0

    Nothing happend. What could be wrong ? Thanks

  6. #446
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,782
    Almost certainly user error.

    Run the command from an ssh session with verbose (-v) output.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #447
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by paul- View Post
    Almost certainly user error.
    For sure !

    Quote Originally Posted by paul- View Post
    Almost certainly user error.

    Run the command from an ssh session with verbose (-v) output.
    Like that ?
    tc@pCP:~$ sbpd -d -s b,24,PLAY,2,0 -v

  8. #448
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,782
    Yes, see what that shows, the should be a lot of rest output..there is also a debug level with -z, but don’t start with that.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  9. #449
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by paul- View Post
    Yes, see what that shows, the should be a lot of rest output..there is also a debug level with -z, but don’t start with that.
    It doesn't work. I measure 3,3V on PIN 24 (it's seems to be set as input). Connected to GND the player stay in PLAY mode

  10. #450
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,782
    Post the output of the command. I hope you are using a button and not just touching wire and pins. There is debounce in the software. But you would see that if you look at the output.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •