- Python 3.8 or higher
- Node.js and npm
- Camera permissions enabled
-
Create virtual environment:
cd windows python3 -m venv .ilgc source .ilgc/Scripts/activate
-
Install dependencies:
pip install -r requirements.txt
-
Grant camera permissions:
- Settings > Privacy & Security > Camera
- Enable camera access for your terminal/command prompt
-
Start backend services (open 4 terminals, all with venv activated):
# Terminal 1 python3 api_server.py # Terminal 2 cd src python3 watch.py # Terminal 3 cd src python3 client.py # Terminal 4 cd src python3 collate_data.py
-
Start frontend:
cd frontend npm install npm run dev -
Open in browser: Go to the URL shown by Vite (usually
http://localhost:8080/ilgcresearch/).
-
Create virtual environment:
cd Mac python3 -m venv .ilgc source .ilgc/bin/activate
-
Install dependencies & configure pylsl:
pip install -r requirements.txt cp -r lib/pylsl/* .ilgc/lib/python3.13/site-packages/pylsl/lib -
Grant permissions:
- Camera: System Preferences > Security & Privacy > Camera
- Notifications (for interventions): Test with:
osascript -e 'display notification "Keep up the good work!" with title "ILGC Research"' -
Start backend services (open 4 terminals, all with venv activated):
# Terminal 1 python3 api_server.py # Terminal 2 cd src python3 watch.py # Terminal 3 cd src python3 client.py # Terminal 4 cd src python3 collate_data.py
-
Start frontend:
cd frontend npm install npm run dev -
Open in browser: Go to the URL shown by Vite (usually
http://localhost:8080/ilgcresearch/).
- Fill out the task form with participant details
- Click "Start Task" - this will:
- Save participant ID, batch, task category, and task description to
./details/task_details.json - Start the interventions.py script automatically
- The interventions script will load the task details and include them in the GPT analysis prompt
- Save participant ID, batch, task category, and task description to
The system will now monitor for distractions based on the specific task you've defined!
POST /api/save-task-details→ Save task details & start interventionsPOST /api/stop-interventions→ Stop interventionsGET /api/status→ Get monitoring statusGET /api/get-task-details→ Get current task details
Mac – Interventions:
- Allow Script Editor in Notifications settings
- Ensure
/usr/bin/osascripthas Accessibility settings (Privacy & Security) permissions