EmoChat is the 1st place winner of a 2-days hackthon named Brainihack. This project is based on OpenTokRTC and enhances with emotion detection capabilities using NeuroSteer EEG headset.
The idea is to detect the user emotion using live EEG feed and enable emotion sharing over the chat room by gestures like emojis next to chat line and color changes according to peer's mode.
Procfile
is required to run the nodejs app on Herokupackage.json
contains all npm modules to run the appapp.js
contains all server side codeconfig.js
contains configurations: TokBox credentials, p2p mesh support, Redis support, reserved rooms, etc.lib
folder contains all the code to handle configurations: p2p mesh support, Redis support, reserved rooms, etc.views
folder contains the html template for the apppublic/css
folder contains all the css for the app.
Look for files with.scss
extensions..css
files are generated from sass.public/js
contains the front end code and interactions with OpenTok SDK.
- Clone this repo
- Get my API Key and Secret from TokBox
- Replace
OTKEY
andOTSECRET
with your corresponding API Key and Secret inconfig.js
or by setting your env variables - Run
npm install
to install the necessary packages - Start the server with
node app.js
- In the chat main screen (usaly localhost:9393) enter a room name (anything would do)
- type in the chat /help to get a list of configurations available
- To link the NeuroSteer headset with the current chat user type
/user <last 6 digits of the headset serial #>
- https://vimeo.com/122224388 - presentation at Brainihack final demo
- https://vimeo.com/122826001 - screen capture of a chat we did in Brainhack's final demo