UNPKG

node-red-contrib-leap-motion

Version:

Node-Red nodes for leap motion

71 lines (48 loc) 1.36 kB
node-red-contrib-leap-motion ========================= # OVERVIEW A NODE-Red node to use the gestures of the Leap Motion and a node with six different positions # INSTALLATION You just have to install this node by npm in the .node-red folder: ```javascript $ npm install leapjs $ npm install node-red-contrib-leap-motion ``` # USAGE ## Leap Position This node send six different msg.payload ```javascript case 'LEFT': node.send({payload:"left"}); break; case 'RIGHT': node.send({payload:"right"}); break; case 'FORWARD': node.send({payload:"forward"}); break; case 'BACKWARD': node.send({payload:"backward"}); break; case 'CENTER': node.send({payload:"center"}); break; case 'NOHAND': node.send({payload:"nohand"}); break; ``` ## Gestures The leap motion can recognized four <a href="https://developer.leapmotion.com/documentation/javascript/api/Leap.Gesture.html" target="_new">Gestures</a>. ### Circle msg.payload=circle ### KeyTap msg.payload=keytap ### ScreenTap msg.payload=screentap ### Swipes msg.payload=swipeleft msg.payload=swiperight msg.payload=swipedown msg.payload=swipeup # License Copyright (c) 2016-2017 CROZIER Jonathan/TIZOT Léo. Student in Network and Telecommunications at the IUT of Annecy-le-Vieux. Licensed under the MIT license.