Behavior Log
Use scripts/behavior_log.py to insert one record into behavior_logs or read recent logs.
Run
uv run scripts/behavior_log.py write good --coach-comment "Kept focus"
uv run scripts/behavior_log.py write bad --pavlok-log '{"stimulusType":"zap","stimulusValue":30}'
echo '{"stimulusType":"beep","stimulusValue":100}' | uv run scripts/behavior_log.py write bad --pavlok-log -
uv run scripts/behavior_log.py read 2
Inputs
writemode:behaviormust begoodorbad.writemode:--pavlok-logexpects a JSON object string; use-to read from stdin.writemode:--coach-commentis optional free text.readmode:daysis a positive integer (1 = today, 2 = today + yesterday).
Notes
- Database URL comes from
DATABASE_URL(default:sqlite:///./app.db).