Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:internetofthings:shinobi [2017/12/24 13:36] – created scipio | projects:internetofthings:shinobi [2018/04/03 13:19] (current) – [Motion destection] scipio | ||
---|---|---|---|
Line 4: | Line 4: | ||
Install nodejs ... | Install nodejs ... | ||
+ | Install mariadb or mysql | ||
+ | |||
+ | Install ffmpeg | ||
+ | < | ||
+ | sudo apt-get install -y software-properties-common | ||
+ | sudo add-apt-repository -y ppa: | ||
+ | sudo apt update -y && sudo apt install ffmpeg libav-tools x264 x265 -y | ||
+ | </ | ||
Clone git | Clone git | ||
< | < | ||
- | git clone --depth 1 https:// | + | sudo apt install -y git |
+ | git clone -b dev --depth 1 https:// | ||
cd shinobi | cd shinobi | ||
npm i | npm i | ||
+ | |||
+ | # install static ffmpeg | ||
+ | npm install ffmpeg-static | ||
+ | </ | ||
+ | |||
+ | Fill database | ||
+ | < | ||
+ | mysql < sql/ | ||
+ | mysql < sql/ | ||
+ | mysql ccio < sql/ | ||
+ | # mysql ccio < sql/ | ||
+ | </ | ||
+ | |||
+ | Create configuration files | ||
+ | < | ||
+ | cp conf.sample.json conf.json | ||
+ | cp super.sample.json super.json | ||
</ | </ | ||
Line 15: | Line 41: | ||
< | < | ||
pm2 start camera.js | pm2 start camera.js | ||
- | pm2 start cron.js | + | # pm2 start cron.js |
</ | </ | ||
Line 21: | 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/ | ||
</ | </ | ||