This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:internetofthings:shinobi [2018/01/06 14:59] – scipio | projects:internetofthings:shinobi [2018/04/03 13:19] (current) – [Motion destection] scipio | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Install ffmpeg | Install ffmpeg | ||
| < | < | ||
| - | sudo add-apt-repository ppa: | + | sudo apt-get install -y software-properties-common |
| + | sudo add-apt-repository | ||
| sudo apt update -y && sudo apt install ffmpeg libav-tools x264 x265 -y | sudo apt update -y && sudo apt install ffmpeg libav-tools x264 x265 -y | ||
| </ | </ | ||
| Line 14: | Line 15: | ||
| Clone git | Clone git | ||
| < | < | ||
| + | sudo apt install -y git | ||
| git clone -b dev --depth 1 https:// | git clone -b dev --depth 1 https:// | ||
| cd shinobi | cd shinobi | ||
| npm i | npm i | ||
| + | |||
| + | # install static ffmpeg | ||
| + | npm install ffmpeg-static | ||
| </ | </ | ||
| - | Fill database | + | Fill database |
| < | < | ||
| mysql < sql/ | mysql < sql/ | ||
| mysql < sql/ | mysql < sql/ | ||
| mysql ccio < sql/ | mysql ccio < sql/ | ||
| - | mysql ccio < sql/ | + | # mysql ccio < sql/ |
| </ | </ | ||
| + | Create configuration files | ||
| + | < | ||
| + | cp conf.sample.json conf.json | ||
| + | cp super.sample.json super.json | ||
| + | </ | ||
| Start once | Start once | ||
| < | < | ||
| pm2 start camera.js | pm2 start camera.js | ||
| - | pm2 start cron.js | + | # pm2 start cron.js |
| </ | </ | ||
| Line 37: | Line 47: | ||
| < | < | ||
| pm2 startup | pm2 startup | ||
| + | </ | ||
| + | |||
| + | Enter as superuser at http:// | ||
| + | |||
| + | * user: admin@shinobi.video | ||
| + | * pass: admin | ||
| + | |||
| + | ===== Add Camera ===== | ||
| + | |||
| + | Add monitor using ONVIF | ||
| + | |||
| + | After set: | ||
| + | * stream type: MJPEG | ||
| + | |||
| + | ===== Motion detection ===== | ||
| + | |||
| + | < | ||
| + | sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++ | ||
| + | </ | ||
| + | |||
| + | install canvas node package (in shinoby dir) | ||
| + | < | ||
| + | npm install canvas@1.6 moment | ||
| + | </ | ||
| + | |||
| + | configuration | ||
| + | < | ||
| + | cp plugins/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | pm2 start plugins/ | ||
| </ | </ | ||