node-red-contrib-leap-motion
Version:
Node-Red nodes for leap motion
71 lines (48 loc) • 1.36 kB
Markdown
node-red-contrib-leap-motion
=========================
A NODE-Red node to use the gestures of the Leap Motion and a node with six different positions
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
```
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;
```
The leap motion can recognized four <a href="https://developer.leapmotion.com/documentation/javascript/api/Leap.Gesture.html" target="_new">Gestures</a>.
msg.payload=circle
msg.payload=keytap
msg.payload=screentap
msg.payload=swipeleft
msg.payload=swiperight
msg.payload=swipedown
msg.payload=swipeup
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.