- Motion detection setup on your Lorex DVR
- Lorex DVR
- Python 3
- Same requirements as listed here
- An always on machine in your network...network attached storage options such as this work great with custom firmware installed following this tutorial
- Picture(s) of those you'd like to index the faces of in Rekognition
- The files must be named NAME-PICTURENUMBER.EXTENSION - Ex: brian-4.png or brian-5.jpg
- Static website with domain hosted on S3 with path for the motion detected alert images
- Twilio account that has sms enabled
- A comma delimited list of recipient phone numbers with international code prepended
- Get a number on Twilio to send sms from
- Get your twilio account sid
- Get your twilio auth token
-
Run the below commands with the appropriate values filled in
npm install sls deploy --smsRecipients 'Result of #9 of prerequisites' \ --twilioNumber 'Result of #10 of prerequisites' \ --twilioAccountSid 'Result of #11 of prerequisites' \ --twilioAuthToken 'Result of #12 for prerequisites' \ --domain 'Domain result of #7 in prerequisites' \ --domainPath 'Path result of #7 in prerequisites' \ --facesCollectionId 'This can be any identifier or you can go with the default of OurFaces by removing this' \ --s3fsUser 'This can be any identifier or you can go with the default of S3FSUser by removing this argument'
-
Create and note an access key for the newly created S3FSUser
-
Note the name of the created MotionBucket
-
Follow this tutorial to get s3fs setup on the always machine identified in prerequisite #3
-
Setup an ftp server with this newly created s3fs mount as the location for uploads
-
Enable FTP upload to this ftp server from the Lorex DVR settings