Skip to content

A Node.js client library for the ThinkGear Socket Protocol from NeuroSky

License

Notifications You must be signed in to change notification settings

dluxemburg/node-neurosky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#node-neurosky

Client library for the ThinkGear Socket Protocol from NeuroSky.

###You'll need one of these:

Fashion!

###Usage

Install with NPM:

$ npm install node-neurosky

Include the module:

var neurosky = require('node-neurosky');

Create a client instance:

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

Add a listener for incoming data:

client.on('data',function(data){

	// magical and wonderful things

});

Connect to the headset:

client.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 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

About

A Node.js client library for the ThinkGear Socket Protocol from NeuroSky

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published