node-dash-button icon indicating copy to clipboard operation
node-dash-button copied to clipboard

Starts out working well but then sends multiple button presses.

Open mchristofas opened this issue 8 years ago • 1 comments

I have the dash button press triggering a python script that blinks lights my Pimoroni Led strip. If i restart node-red it all behaves as expected (1 button press = 1 run of the script blinking lights in a night rider fashion) with 1 run shown in the debug log. After some time the debug shows 2 or 3 messages from 1 button press and the light patterns become erratic as if 2 or 3 threads of the script running. If i manually inject the trigger it all works as expected. Is there a way to debounce the button presses?

mchristofas avatar Apr 25 '17 00:04 mchristofas

Looking at the output from findbutton i see that it's processing both udp and arp for a single press. Even setting index.js to use arp i see only arp in findbutton but still see multiple in debug log.

mchristofas avatar Apr 25 '17 01:04 mchristofas