Skip to content

Watchdog2 is a solution to easily browse snapshots taken by surveillance cameras and stored on an email server

License

Notifications You must be signed in to change notification settings

swayvil/watchdog2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watchdog2-logo

Watchdog2

Watchdog2 is a solution to easily browse snapshots taken by surveillance cameras and stored on an email server.

screenshot

Architecture overview

architecture-diagram

How to

Firstly you need to configure the Network Video Recorder station to send notification mails. For the exemple we will used Synology Surveillance Station.

Synology Surveillance Station

  1. Edit Notification for Camera / Motion detected:
    notification-icon

  2. Configure email notifications:
    notification-email

  3. Configure motion detected notification:
    notification-motion-detected

3.1 Subject:

%CAMERA%-%DATE%-%TIME% Motion detected

3.2 Content:

CAMERA: %CAMERA%
DATE: %DATE%
TIME: %TIME%

Prepare the credentials of the mail server

You need a login + password. On Gmail create an App password

Install Watchdog2

  1. Get Watchdog2:
git clone https://github.com/swayvil/watchdog2.git
  1. Create a folder to store the snapshots images:
mkdir /Users/xxx/watchdog2-store
  1. Edit .env:
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
MAIL_CRAWLER_STORE=/Users/xxx/watchdog2-store
  1. Declare the camera names by updating the values to insert in the camera table. Edit initdb.sh:
INSERT INTO camera (camera) VALUES ('Cour');
INSERT INTO camera (camera) VALUES ('Garage');
INSERT INTO camera (camera) VALUES ('Entree');
  1. Edit mail-crawler/config.json:
  • Set imap server connectivity information
  • Importing mail start date
  • Update mail object and body parsing patterns if you set a different notification content than the example
  1. Build Docker images and start the containers:
cd watchdog2
docker-compose -f docker-compose.yml create
docker-compose -f docker-compose.yml start
  1. Browse the snapshots: http://localhost:8181

Build your own secure video surveillance system

This article presents how to build your own secure video surveillance system with your Synology NAS.

Run web application in dev

cd watchdog2
npm install
npm run serve

About

Watchdog2 is a solution to easily browse snapshots taken by surveillance cameras and stored on an email server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published