projects:internetofthings:shinobi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:internetofthings:shinobi [2018/01/06 14:56] – [Install] scipioprojects:internetofthings:shinobi [2018/04/03 13:19] (current) – [Motion destection] scipio
Line 5: Line 5:
 Install nodejs ... Install nodejs ...
 Install mariadb or mysql 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 Clone git
 <code> <code>
 +sudo apt install -y git
 git clone -b dev --depth 1 https://github.com/ShinobiCCTV/Shinobi.git shinobi git clone -b dev --depth 1 https://github.com/ShinobiCCTV/Shinobi.git shinobi
 cd shinobi cd shinobi
 npm i npm i
 +
 +# install static ffmpeg
 +npm install ffmpeg-static
 </code> </code>
  
-Fill database ...+Fill database
 <code> <code>
 mysql < sql/database.sql  mysql < sql/database.sql 
 mysql < sql/user.sql  mysql < sql/user.sql 
 mysql ccio < sql/framework.sql  mysql ccio < sql/framework.sql 
-mysql ccio < sql/default_data.sql+mysql ccio < sql/default_data.sql
 </code> </code>
  
 +Create configuration files
 +<code>
 +cp conf.sample.json conf.json
 +cp super.sample.json super.json
 +</code>
  
 Start once Start once
 <code> <code>
 pm2 start camera.js pm2 start camera.js
-pm2 start cron.js+pm2 start cron.js
 </code> </code>
  
Line 31: Line 47:
 <code> <code>
 pm2 startup 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> </code>
  
  • projects/internetofthings/shinobi.1515246972.txt.gz
  • Last modified: 2018/01/06 14:56
  • by scipio