/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.
Results 441 to 450 of 491
-
2022-01-04, 13:21 #441piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2022-01-04, 13:28 #442
- 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 tomorrowLast edited by KillerJoe34; 2022-01-04 at 13:39.
-
2022-01-04, 13:44 #443
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
-
2022-01-04, 13:50 #444
- 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 nowstrange
Thank you Paul for your time and work !
But... I'll be back
-
2022-01-22, 03:27 #445
- 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
-
2022-01-22, 06:50 #446
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
-
2022-01-22, 07:16 #447
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
-
2022-01-22, 07:25 #448
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
-
2022-01-22, 07:36 #449
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
-
2022-01-22, 08:22 #450
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