JavaScript for IoT: Controlling a Button on Raspberry Pi via Node.js

Tutorial how to handle interrupts of a push to make button on Raspberry Pi with JavaScript and Node.js. The example is open source and it is available at GitHub. It as been tested on the Raspian GNU/Linux distribution. The button has a similar behavior to a key from a keyboard and the implemented algorithm for this demo is suitable for a reset feature. Step by step guidelines are available at Instructables: http://www.instructables.com/id/JavaScript-for-IoT-Controlling-a-Button-on-Raspber/

petko_k_23