Weekend long Hackathon @google, Tel Aviv (http://brainihack.org/) we decided to create a machine that reads user brain waves using Emotiv device, and output those users feeling into the web.
A project by @galbracha @bArmageddon @Jishai @daniik @yitzikc
we "accidently" created a by-product that exposes the emotiv data to the web in a json format.
by doing so we allow javascript developer write on top of what we did and create a real-time unique experience
the demo is live http://neurobrush.com - data doesn't get updated, but its just to get the idea
Run this one locally. Reads data from Emotiv helmet or Emotiv emulator, sanitize it, encode it, and send it to the server
Djano app that act as the server endpoint
It exposes 2 methods: collect()
and getlatestdata()
collect will recieve data from your local computer
getlatestdata will output the latest data in a json format
the base.html also contains a live socket that updates when getlatestdata updates
Configuration
Locally:
1.Connect a Emotiv helmet, or use EmoCompser (the emulator)
2.Update EmoStateLog.java. set targetURL
Server:
1.Setup a server (We've used Heroku) that runs the django neurobrush_web.
2.Under neurobrush_web->site->templates->collect.py set REDIS_URL
3.Under neurobrush_web->site->templates->getlatestdata.py set REDIS_URL
released under MIT license (view LICENSE).
enjoy