Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: random issue with playback starting and stopping .
#3
(04-17-2020, 05:33 PM)Tim Curtis Wrote: You could try running the button handler from the cmd line after adding some debug print.

1. Turn off the handler in System config.
2. sudo nano /var/www/command/gpio-buttons.py
Uncomment the existing #print statements and optionally add your own

3. Run it from cmd line

Code:
sudo /var/www/command/gpio-buttons.py

what sort of debug print statement would you suggest could help ?

when I run it as is and press the volume buttons a few times I get



Code:
2020-04-17 19:09:08 bounce_time=750
2020-04-17 19:09:08 row id=1, enabled=1, command=mpc toggle
2020-04-17 19:09:08 sw_1: pin=6, enabled=1, bounce_time=750, cmd=mpc toggle
2020-04-17 19:09:08 row id=2, enabled=1, command=/var/www/vol.sh up 1
2020-04-17 19:09:08 sw_2: pin=5, enabled=1, bounce_time=750, cmd=/var/www/vol.sh up 1
2020-04-17 19:09:08 row id=3, enabled=1, command=/var/www/vol.sh dn 1
2020-04-17 19:09:08 sw_3: pin=26, enabled=1, bounce_time=750, cmd=/var/www/vol.sh dn 1
2020-04-17 19:09:08 row id=4, enabled=0, command=
2020-04-17 19:09:08 row id=5, enabled=0, command=
2020-04-17 19:09:08 row id=6, enabled=0, command=
2020-04-17 19:09:08 row id=7, enabled=0, command=
2020-04-17 19:09:08 row id=8, enabled=0, command=
2020-04-17 19:09:08 row id=99, enabled=, command=
LoungeFM: LISA BAJRAK - Обіймати Тебе
[playing] #1/1   0:50/0:00 (0%)
volume: 25%   repeat: off   random: off   single: off   consume: off
LoungeFM: LISA BAJRAK - Обіймати Тебе
[paused]  #1/1   1:10/0:00 (0%)
volume: 18%   repeat: off   random: off   single: off   consume: off
LoungeFM: LISA BAJRAK - Обіймати Тебе
[playing] #1/1   1:11/0:00 (0%)
volume: 14%   repeat: off   random: off   single: off   consume: off
LoungeFM: LISA BAJRAK - Обіймати Тебе
[paused]  #1/1   1:14/0:00 (0%)
volume: 15%   repeat: off   random: off   single: off   consume: off

I havent pressed play at al this is just with vol buttons
Reply


Messages In This Thread
RE: random issue with playback starting and stopping . - by GreyLinux - 04-17-2020, 06:15 PM

Forum Jump: