Here's some code to record data from indra-client.
Clone this repository and do
npm install
Make sure you've also done
pip install requests
Run the recording saver with npm start
.
Now put on your Mindwave and run indra-client (or run npm test
to use some fake data).
Finally, emit a start recording message with python start-recording.py
.
Recordings will be appended to out.csv.
(You should move your out.csv elsewhere for archival purposes).
There are four fields in out.csv,
time, task, sid, data
Data is a JSON string. It contains everything, including the first 3 fields.
When processing this data, you can query/select the data you want using the first three fields. Take the data field and, in python, use json.loads() to turn it into a python object and explore all the secrets it holds. (Or marshall it into a format that's good for you).