Raspberry Pi Remote Monitor will be able to connect to your Raspberry Pi Camera in a secure environemnt.
This application will connect to Motion only using Basic Authentication for more information about configuration or questions please referer to https://github.com/danidomi/motion or daniel.alexandre.domingues@gmail.com
Configuration
Motion Configuration in Raspberry Pi
Download only for WINDOWS - https://sourceforge.net/projects/win32diskimager
Download raspbian link - https://downloads.raspberrypi.org/raspbian_lite_latest
After writting the image to SD Card, from the command line login using pi as username and raspberry as password
>wget https://github.com/danidomi/motion/releases/download/release/motion.zip
>unzip motion.zip
>cd mmal
>sudo apt-get install -y libjpeg-dev libavformat56 libavformat-dev libavcodec56 libavcodec-dev libavutil54 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5 libpq-dev
>sudo apt-get install nginx
>sudo apt-get install apache2-utils
>sudo htpasswd -c /home/pi/.htpasswd admin
Add a cronjob to check if the motion camera is online add this to the bottom of the file
>sudo crontab -e
*/1 * * * * pgrep motion || /home/pi/mmal/startmotion
You wont even need to start it
Nginx Configuration in Raspberry Pi
>sudo apt-get install nginx sudo apt-get install apache2-utils
>sudo htpasswd -c /home/pi/.htpasswd admin
>vi /etc/nginx/sites-available/default
Add the following code below to it
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
auth_basic “Restricted”;
auth_basic_user_file /home/pi/.htpasswd;
proxy_pass http://127.0.0.1:8081/img/video.mjpeg;
}
And start the service
>sudo service nginx start
FreeDNS Configuration in Raspberry Pi
Create an account if you don't have it
>vi ~/updatedns.sh
Copy the below content to it.
#!/bin/sh
wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?XXXXXXXXXXXXX >> /tmp/XXXXXXXXXXXXX.log
>crontab -e
*/1 * * * * ~/updatedns.sh
ราสเบอร์รี่ Pi การตรวจสอบระยะไกลจะสามารถที่จะเชื่อมต่อกับกล้อง Raspberry Pi ของคุณใน environemnt ที่เชื่อถือได้
โปรแกรมนี้จะเชื่อมต่อกับการเคลื่อนไหว เท่านั้น โดยใช้การตรวจสอบสิทธิ์ขั้นพื้นฐานสำหรับข้อมูลเพิ่มเติมเกี่ยวกับการกำหนดค่าหรือคำถามกรุณา Referer https://github.com/danidomi/motion หรือ daniel .alexandre.domingues @ gmail.com
การกำหนดค่า
การตั้งค่าคอนฟิกการเคลื่อนไหวในราสเบอร์รี่ Pi
ดาวน์โหลดเฉพาะสำหรับ Windows - https://sourceforge.net/projects/win32diskimager
ดาวน์โหลดลิงค์ raspbian - https://downloads.raspberrypi.org/raspbian_lite_latest
หลังจาก writting ภาพลงใน SD Card จากบรรทัดคำสั่งเข้าสู่ระบบโดยใช้ปี่ชื่อผู้ใช้และราสเบอร์รี่เป็นรหัสผ่าน
> wget https://github.com/danidomi/motion/releases/download/release/motion.zip
> motion.zip เครื่องรูด
> MMAL cd
> sudo apt-get install -y libjpeg-dev libavformat56 libavformat-dev libavcodec56 libavcodec-dev libavutil54 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5 libpq-dev
> sudo apt-get install Nginx
> sudo apt-get install apache2-utils
> sudo htpasswd -c /home/pi/.htpasswd ผู้ดูแลระบบ
เพิ่ม cronjob เพื่อตรวจสอบว่ากล้องของการเคลื่อนไหวที่มีการออนไลน์เพิ่มนี้ไปที่ด้านล่างของแฟ้ม
> sudo crontab -e
* / 1 * * * * * * * * * * * * * * * * เคลื่อนไหว pgrep || / home / ปี่ / MMAL / startmotion
คุณเคยแม้จะต้องเริ่มต้นมัน
Nginx การกำหนดค่าในราสเบอร์รี่ Pi
> sudo apt-get install Nginx sudo apt-get install apache2-utils
> sudo htpasswd -c /home/pi/.htpasswd ผู้ดูแลระบบ
> vi / etc / Nginx / ไซต์ใช้ได้ / การเริ่มต้น
เพิ่มรหัสต่อไปด้านล่างเพื่อมัน
สถานที่ตั้ง / {
# ความพยายามครั้งแรกที่จะทำหน้าที่เป็นไฟล์คำขอแล้ว
# เป็นไดเรกทอรีแล้วถอยกลับไปแสดง 404
try_files $ $ URI URI / = 404;
auth_basic“จำกัด”;
auth_basic_user_file /home/pi/.htpasswd;
proxy_pass http://127.0.0.1:8081/img/video.mjpeg;
}
และเริ่มให้บริการ
> เริ่มต้น sudo บริการ Nginx
การกำหนดค่า
FreeDNS ในราสเบอร์รี่ Pi
สร้างบัญชีถ้าคุณไม่ได้
> vi ~ / updatedns.sh
คัดลอกเนื้อหาด้านล่างเพื่อมัน
#! / bin / ดวลจุดโทษ
-O wget --no-check-ใบรับรอง - https://freedns.afraid.org/dynamic/update.php?XXXXXXXXXXXXX >> /tmp/XXXXXXXXXXXXX.log
> อี crontab
* / 1 * * * * * * * * * * * * * * * * ~ / updatedns.sh
Raspberry Pi Remote Monitor will be able to connect to your Raspberry Pi Camera in a secure environemnt.
This application will connect to Motion only using Basic Authentication for more information about configuration or questions please referer to https://github.com/danidomi/motion or daniel.alexandre.domingues@gmail.com
Configuration
Motion Configuration in Raspberry Pi
Download only for WINDOWS - https://sourceforge.net/projects/win32diskimager
Download raspbian link - https://downloads.raspberrypi.org/raspbian_lite_latest
After writting the image to SD Card, from the command line login using pi as username and raspberry as password
>wget https://github.com/danidomi/motion/releases/download/release/motion.zip
>unzip motion.zip
>cd mmal
>sudo apt-get install -y libjpeg-dev libavformat56 libavformat-dev libavcodec56 libavcodec-dev libavutil54 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5 libpq-dev
>sudo apt-get install nginx
>sudo apt-get install apache2-utils
>sudo htpasswd -c /home/pi/.htpasswd admin
Add a cronjob to check if the motion camera is online add this to the bottom of the file
>sudo crontab -e
*/1 * * * * pgrep motion || /home/pi/mmal/startmotion
You wont even need to start it
Nginx Configuration in Raspberry Pi
>sudo apt-get install nginx sudo apt-get install apache2-utils
>sudo htpasswd -c /home/pi/.htpasswd admin
>vi /etc/nginx/sites-available/default
Add the following code below to it
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
auth_basic “Restricted”;
auth_basic_user_file /home/pi/.htpasswd;
proxy_pass http://127.0.0.1:8081/img/video.mjpeg;
}
And start the service
>sudo service nginx start
FreeDNS Configuration in Raspberry Pi
Create an account if you don't have it
>vi ~/updatedns.sh
Copy the below content to it.
#!/bin/sh
wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?XXXXXXXXXXXXX >> /tmp/XXXXXXXXXXXXX.log
>crontab -e
*/1 * * * * ~/updatedns.sh