Requirements:
- Python3 (3.6+)
- motion
As configured, will attach 4 images, 1 old and 3 new, to an email shortly after motion is detected by the webcam. Configure your email client to sound a special alert when you receive such emails.
Tailor the init bash shell script and your motion.conf file to suit your environment.