Making Emotiv Cortex SDK for Node Reactive
Note: this repo is a work in progress
This is a simple example of how to create an RxJS observable of EEG data from an Emotiv Epoc headset using the Cortex SDK. The data format produced by the createRawEmotivObservable
function is identical to that of OpenBCI Observable and Muse JS and is suitable for use with EEG Pipes. Eventually, this might be tightened up into a package that will make it easier for JS developers to get started
An active license from Emotiv is necessary to access raw data
Licenses are tied to specific EmotivID accounts. To authenticate and access raw data with an active license you must follow these steps:
- Ensure you have an EmotivID account with an active subscription for raw data access
- Download and install the Cortex SDK from Emotiv's website
- Go to the 'Cortex Apps' section of your account page and generate a 'Client ID' and 'Client Secret'
- Fill in the values for
username
,password
,client_id
, andclient_secret
in raw.js