Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.09 KB

README.md

File metadata and controls

46 lines (38 loc) · 1.09 KB

streamteam2

CLI helper for streaming Emotiv EEG data to pubnub or rabbitmq

System level prereqs

Application level prereqs

  • Create and source the venv, and install the prereqs
git clone [email protected]:jamesbeedy/streamteam2.git
cd streamteam2
virtualenv -p python3 .stream
source .stream/bin/activate
pip install -r requirements.txt

RabbitMQ Config

Rabbitmq configs must be passed into the application by specifying a yaml file with rabbit creds defined.

#rabbit.yaml
username: jujuclient
password: 'somelongpassword'
host: 'rabbit-host'
port: 'rabbit-port'
vhost: 'rabbit-vhost'
queue: 'rabbit-queue'
exchange: 'rabbit-exchange'

Run Pub/Sub

  • Use the same config file to publish or subscribe
# to publish from an emotiv eeg
./main.py --publish configs rabbit.yaml
# to subscribe to the rabbit queue
./main.py --subscrribe configs rabbit.yaml

Status: WIP

Copyright