Skip to content

gabe-lepo/motion-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

motion-watch

Records video clips and sends email alerts when your laptop camera detects motion. Runs in the foreground; press Ctrl+C to stop.

Setup

Copy the example env file and fill in your credentials:

cp .env.example .env

Edit .env with your email address and an app password.


macOS

Requirements: Python 3.10+

python3 -m venv venv
venv/bin/pip install -r requirements.txt

Grant your terminal camera access in System Settings -> Privacy & Security -> Camera, then run:

./run

Windows

Requirements: Python 3.10+ — check "Add python.exe to PATH" during installation.

python -m venv venv
venv\Scripts\pip install -r requirements.txt
run

Output

Captures are saved to the captures/ folder:

  • snap_<timestamp>.jpg — snapshot at first detection
  • clip_<timestamp>.avi — video clip including 5s pre-motion buffer
  • motion_events.jsonl — log of all events

To view recent events:

./run log        # macOS
run log          # Windows

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages