04-17-2020, 06:35 PM
(04-17-2020, 06:26 PM)Tim Curtis Wrote: Prolly add a print statement in the callback function for the particular buttons you have defined. This would show when the event occurs. It should only occur when button is pressed.
Something like below.
Code:def sw_1_event(channel):
subprocess.call(sw_1_cmd)
print('sw_1_event')
after adding this
Code:
sw_2_event
sw_2_event
sw_2_event
sw_3_event
sw_3_event
sw_3_event
sw_3_event
sw_2_event
sw_2_event
sw_2_event
sw_2_event
sw_3_event
sw_3_event
sw_3_event
sw_3_event
sw_2_event
sw_3_event
LoungeFM: LISA BAJRAK - Обіймати Тебе
[playing] #1/1 1:14/0:00 (0%)
volume: 14% repeat: off random: off single: off consume: off
sw_1_event
sw_2_event
sw_2_event
sw_3_event
sw_3_event
sw_3_event
sw_2_event
sw_2_event
sw_2_event
sw_2_event
sw_3_event
sw_3_event
sw_3_event
sw_2_event
sw_2_event
LoungeFM: LISA BAJRAK - Обіймати Тебе
[paused] #1/1 1:34/0:00 (0%)
volume: 16% repeat: off random: off single: off consume: off
sw_1_event
sw_2_event
the play button was not pressed once but as you can see it randomly started playback .