Skip to content

MaxZell/PiSurveillancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiSurveillancer

Video surveillance system. Created for Raspbian.

File Structure

PiSurveillancer
│   app.js
│   server.js
|   
└───frontend
│   
└───node_modules

  • server.js --> Server
  • app.js --> Web Client
  • /frontend --> Client Files

Install Server with Camera

  • Install npm
  • Clone Code: git clone https://github.com/MaxZell/PiSurveillancer.git
  • cd PiSurveillancer
  • Install packages: npm install
  • Install opencv4nodejs:
    • npm i -g npm@6
    • npm i opencv4nodejs --save
    • npm i -g npm@latest

Start Server with Camera

sudo node server

Start Server in Docker

  • Install npm
  • Clone Code: git clone https://github.com/MaxZell/PiSurveillancer.git
  • cd PiSurveillancer
  • Install packages: npm install
  • Build docker image: sudo docker build -t nodecv .
  • Run Docker image with camera & port: docker run --device=/dev/video0:/dev/video -p 1234:8888 nodecv

Stop Server Docker Image

-- sudo docker ps -- get container id -- sudo docker kill <container-id>

  • If only one image running: sudo docker kill $(sudo docker ps -q)

Start Frontend

  • Install npm
  • Clone Code: git clone https://github.com/MaxZell/PiSurveillancer.git
  • cd PiSurveillancer
  • Install packages: npm install or yarn install
  • Start: npm start or yarn start
  • Open in npm

Author

Maxim Zelensky