node-thinkgear
Client library for the ThinkGear Socket Protocol from NeuroSky.
these:
You'll need one ofUsage
Install with NPM:
$ npm install node-thinkgear
Include the module:
var nodeThinkGear = ;
Create a client instance:
var tgClient = nodeThinkGear;
Add a listener for incoming data:
tgClient;
Connect to the headset:
tgClient;
All of this is in the example/app.js
file too.
Data
The output objects look like this:
eSense: attention: 53 meditation: 47 eegPower: delta: 416474 theta: 33592 lowAlpha: 3877 highAlpha: 3142 lowBeta: 1569 highBeta: 3125 lowGamma: 3521 highGamma: 1451 poorSignalLevel: 0
With the occasional { blinkStrength: 55 }
when you blink.
TO DO
- Some tests
- A more thorough example
- Deal with raw output
- Make different types of device signal emit different events