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
Raspberry Pi Remote Monitor будет иметь возможность подключения к Raspberry Pi камеры в безопасном environemnt.
Это приложение будет подключаться к Motion только с помощью обычной проверки подлинности для получения дополнительной информации о конфигурации или вопросы, пожалуйста, Referer к https://github.com/danidomi/motion или DANIEL .alexandre.domingues @ gmail.com
Конфигурация
Конфигурация движения в Raspberry Pi
Скачать только для WINDOWS - https://sourceforge.net/projects/win32diskimager
Скачать raspbian ссылку - https://downloads.raspberrypi.org/raspbian_lite_latest
После того, как сочинительство изображения на SD-карту, от входа в командной строке с помощью пи в качестве имени пользователя и пароль, как малины
> Wget https://github.com/danidomi/motion/releases/download/release/motion.zip
> Распакуйте motion.zip
> CD MMAL
> Sudo APT-получить установку -y libjpeg-DEV libavformat56 libavformat-DEV libavcodec56 кодеком-DEV libavutil54 libavutil-DEV libc6-DEV zlib1g-DEV libmysqlclient18 libmysqlclient-DEV libpq5 libpq-DEV
> Sudo APT-получить установку Nginx
> Sudo APT-получить установку apache2-утилиты
> Судо Htpasswd -c /home/pi/.htpasswd админ
Добавьте cronjob, чтобы проверить, если камера движения онлайн добавить это к нижней части файла
> Sudo кронтаб -e
* / 1 * * * * движение pgrep || / Главная / пи / MMAL / startmotion
Вы не будете даже нужно, чтобы запустить его
Nginx конфигурации в Raspberry Pi
> Sudo APT-получить установку Nginx SUDO APT-получить установку apache2-утилиты
> Судо Htpasswd -c /home/pi/.htpasswd админ
> VI / и т.д. / Nginx / сайты-доступные / по умолчанию
Добавьте следующий код в нем
место нахождения / {
# Первая попытка служить запрос в файл, а затем
# В каталоге, а затем падают обратно на отображение 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;
}
И запустить службу
> Запуск Sudo службы Nginx
Конфигурация в своем Free DNS Raspberry Pi
Создайте учетную запись, если вы не имеете его
> VI ~ / updatedns.sh
Скопируйте нижеприведенный содержание в нем.
#! / Bin / ш
Wget --no-чек-сертификат -О - https://freedns.afraid.org/dynamic/update.php?XXXXXXXXXXXXX >> /tmp/XXXXXXXXXXXXX.log
> Кронтаб -e
* / 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