This package has been deprecated

Author message:

Replaced by node-neurosky

node-thinkgear

0.0.1 • Public • Published

#node-thinkgear

Client library for the ThinkGear Socket Protocol from NeuroSky.

###Usage

Include the module:

var nodeThinkGear = require('../node-thinkgear');

Create a client instance:

var tgClient = nodeThinkGear.createClient({
	appName: 'My Great Application',
	appKey: '1234567890abcdef...'
});

Add a listener for incoming data:

tgClient.on('data',function(data){
	
	// magical and wonderful things

});

Connect to the headset:

tgClient.connect();

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 occational { blinkStrength: 55 } when you blink.

###TO DO

  • Some tests
  • A more thorough example
  • Deal with raw output
  • Have different types of device signal to emit different events

Readme

Keywords

none

Package Sidebar

Install

npm i node-thinkgear

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • dluxemburg