Show pageOld revisionsBacklinksAdd to bookExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Shinobi ====== ===== Install ===== Install nodejs ... Install mariadb or mysql Install ffmpeg <code> sudo apt-get install -y software-properties-common sudo add-apt-repository -y ppa:jonathonf/ffmpeg-3 -y sudo apt update -y && sudo apt install ffmpeg libav-tools x264 x265 -y </code> Clone git <code> sudo apt install -y git git clone -b dev --depth 1 https://github.com/ShinobiCCTV/Shinobi.git shinobi cd shinobi npm i # install static ffmpeg npm install ffmpeg-static </code> Fill database <code> mysql < sql/database.sql mysql < sql/user.sql mysql ccio < sql/framework.sql # mysql ccio < sql/default_data.sql </code> Create configuration files <code> cp conf.sample.json conf.json cp super.sample.json super.json </code> Start once <code> pm2 start camera.js # pm2 start cron.js </code> Start as daemon <code> pm2 startup </code> Enter as superuser at http://ip:8080/super and create user * user: admin@shinobi.video * pass: admin ===== Add Camera ===== Add monitor using ONVIF After set: * stream type: MJPEG ===== Motion detection ===== <code> sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++ </code> install canvas node package (in shinoby dir) <code> npm install canvas@1.6 moment </code> configuration <code> cp plugins/motion/conf.sample.json plugins/motion/conf.json </code> <code> pm2 start plugins/motion/shinobi-motion.js </code> ===== Update ===== <code> git pull pm2 restart camera pm2 restart cron </code> projects/internetofthings/shinobi.txt Last modified: 2018/04/03 13:19by scipio