DailyJS

Myo.js, JavaScript.com

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

resources hardware libraries node browser

Myo.js, JavaScript.com

Posted by Alex R. Young on .
Featured

resources hardware libraries node browser

Myo.js, JavaScript.com

Posted by Alex R. Young on .

Myo.js

Myo

Myo from Thalmic Labs is a gesture control armband that's described as a "wearable presentation remote". Paul Bernhardt from Thalmic Labs sent me myo.js (GitHub: thalmiclabs/myo.js, License: BSD 3-Clause, npm: myo), a JavaScript library for interacting with the device. It uses WebSockets to talk to Myo Connect, which runs on your desktop.

The API is based around events. Here's a quick example:

myMyo.on('gyroscope', function(data) {  
  if (data.x > 100){
    alert('Woah now!')
  }
});

It also supports "poses", for example: myMyo.on('thumb_to_pinky', cb).

The API is pretty well documented, with method documentation and examples in the readme. There's also a blog post that introduces Myo.js.

JavaScript.com

JavaScript.com

Code School, the web-based subscription tutorial site, has recently launched javascript.com. It has an interactive tutorial, a blog, and resources to help beginners.

Naturally it promotes Code School (owned by Pluralsight), but it's nice to see something useful and well designed there. It used to have a very dated internet.com page, so Code School's page is a step up.