Python Examples
Python Installation
See the getting started repo for full scripts. For python, we use 3.8.5, but any later 3+ version will probably work. Create a virtualenv from that repo:
pip install venv
python3 -m venv eeg_venv
# activate the venv according to your OS
# Windows example:
. ./eeg_venv/scripts/Activate
pip install -r requirements.txt
Script Examples
This script receives an OSC API stream and prints it to the console.
python osc_receive.py -t /PetalStream/blink
python osc_receive.py -t /PetalStream/eye
python osc_receive.py -t /PetalStream/bandpower
python osc_receive.py -t /PetalStream/artifact_detect
Last updated
Was this helpful?