Giter Site home page Giter Site logo

myo-node's Introduction

myo-node

A library for using the Myo in node.js. Currently only works in windows environment :(.

install

Python 2.7 and node-gyp is needed in order to build the project.

npm install -g node-gyp

build

If you have multiple installations of python in your environment path you might need to specify path to python 2.7 when using node-gyp

node-gyp --python=/path/to/python2.7 [command]

First you need to configure the build using (don't forget to specify python path if needed):

node-gyp configure

After succesfully configuring with node-gyp you only have need to build it (again, python27):

node-gyp build

If everything worked properly a build folder should have been created with project files and a release folder with the files you need to import.

usage

Now you can use it in your own application. Make sure that all dll are available for the built project.

var hub = require('./index.js')('com.example.application');

hub.on('myo', function(myo) {
  
  myo.on('orienation', function(data) {
    console.log(data.quaternion);
  });

});

API for interfacing with the myo is in progress and will be updated.

myo-node's People

Contributors

hektorw avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.