ソスト趣ソスソスJソスソスソスソスソスVソスXソスeソスソスソス\ソスz(Motion)

ソスナ終ソスXソスVソスソスソスF 2023.02.23

ソスソスソスTソスv

Motionソスソスソスgソスpソスソスソスト監趣ソスソスJソスソスソスソスソスVソスXソスeソスソスソスソスソス\ソスzソスソスソスソスBソスソスソスソスソスナは、ソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソス(ソスLソスソスLANソスワゑソスソスヘ厄ソスソスソスLANソスoソスRソスナアソスNソスZソスXソスナゑソスソスソスJソスソスソスソス)ソスワゑソスソスソスUSBソスJソスソスソスソス(ソスTソス[ソスoソス[ソス@ソスソスソスフゑソスUSBソスレ托ソスソスソスソスソスJソスソスソスソス)ソスソスソスト趣ソスソスJソスソスソスソスソスニゑソスソスト使ソスpソスソスソスAソスト趣ソスソスJソスソスソスソスソスソスソスソスソスソスソスソスソスソスソスmソスソスソスソスソス鼾ソスノ趣ソスソスソスソスナ録ソスソスソスソスJソスnソスソスソスAソスソスソスフ鯉ソスソスmソスソスソスソスソス[ソスソスソスナ通知ソスソスソスソス謔、ソスノゑソスソスソスBソスト趣ソスソスJソスソスソスソスソスフ映ソスソスソスソスWebソスuソスソスソスEソスUソスナソスソスAソスソスソス^ソスCソスソスソスノ趣ソスソスソスソスツ能ソスニゑソスソスソスBソスワゑソスソスAソス^ソス謔オソスソスソスソスソスソスソスWindowsソスNソスソスソスCソスAソスソスソスgソスソスソス邇具ソスソスソスツ能ソスニゑソスソスソスB

ソスyUSBソスJソスソスソスソスソスz

ソスyソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスz

ソスソスソスLソスAソスvソスソスソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソスソスソスXソス}ソスzソスナゑソスソスソス
ソスyiPhoneソスz
ipCam - Mobile IP Camera


ソスyAndroidソスz
IP Webcam
Google Play で手に入れよう


ソスソスMotionソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmソス@ソスソスソス@EPELソスソスソス|ソスWソスgソスソスソスCソスソスソスXソスgソス[ソスソスソスソスCentOS7ソスフ場合

[root@centos ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpmソス@ソスソスソス@nux-dextopソスソスソス|ソスWソスgソスソスソスCソスソスソスXソスgソス[ソスソスソスソスCentOS7ソスフ場合

[root@centos ~]# yum -y install ffmpeg ffmpeg-devel libjpeg-turbo libjpeg-turbo-develソス@ソスソスソス@MotionソスCソスソスソスXソスgソス[ソスソスソスノ必ソスvソスネパソスbソスPソス[ソスWソスソスソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# git clone https://github.com/Motion-Project/motion.gitソス@ソスソスソス@Motionソス_ソスEソスソスソスソスソス[ソスh

[root@centos ~]# cd motion/ソス@ソスソスソス@Motionソス_ソスEソスソスソスソスソス[ソスhソスソスfソスBソスソスソスNソスgソスソスソスヨ移難ソス

[root@centos motion]# autoreconf -fiv && ./configure && make && make installソス@ソスソスソス@MotionソスCソスソスソスXソスgソス[ソスソス

[root@centos motion]# cdソス@ソスソスソス@ソスzソス[ソスソスソスfソスBソスソスソスNソスgソスソスソスヨ戻ゑソス

[root@centos ~]# rm -rf motion/ソス@ソスソスソス@Motionソス_ソスEソスソスソスソスソス[ソスhソスソスfソスBソスソスソスNソスgソスソスソスソスソス除

ソスソスMotionソスン抵ソス

ソスiソスPソスjMotionソスン抵ソスiソスソス{ソスj
[root@centos ~]# cp /usr/local/etc/motion/motion-dist.conf /usr/local/etc/motion/motion.confソス@ソスソスソス@Motionソスン抵ソスtソス@ソスCソスソスソスソスソスTソスソスソスvソスソスソスソスソスRソスsソス[ソスソスソスト作成

[root@centos ~]# vi /usr/local/etc/motion/motion.confソス@ソスソスソス@Motionソスン抵ソスtソス@ソスCソスソスソスメ集
# Start in daemon (background) mode and release terminal (default: off)
daemon onソス@ソスソスソス@ソス駐ソスソスソス[ソスhソスノゑソスソスソス

# The video norm to use (only for video capture and TV tuner cards)
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
norm 1ソス@ソスソスソス@ソスfソスソスソスKソスiソスソス1(NTSC)ソスノゑソスソスソス

# Draw the number of changed pixed on the images (default: off)
# Will normally be set to off except when you setup and adjust the motion settings
# Text is placed in upper right corner
text_changes onソス@ソスソスソス@ソスソスソスソスフ右ソスソスノ変更ソスsソスNソスZソスソスソスソスソスソスソスソスソスソスソスソスソスソスソスソスソス{ソスIソスvソスVソスソスソスソスソスソスonソスノゑソスソスソスソスソスヤの難ソスソスフ鯉ソスソスmソスソスソスハゑソスソスAソスソスソスmソスソスソスト欲ソスソスソスソスソスナ擾ソスソスlソスソスソスソスqソスソスソス體ョソスフ鯉ソスソスm閾値(thresholdソスIソスvソスVソスソスソスソス)ソスノ指ソス閧キソスソス

# Threshold for number of changed pixels in an image that
# triggers motion detection (default: 1500)
threshold 1500ソス@ソスソスソス@ソスソスソスフ鯉ソスソスm閾値ソスソスソスwソスソスソスソスtext_changesソスIソスvソスVソスソスソスソスソスナ抵ソスソスソスソスソスソスソス

# Output 'normal' pictures when motion is detected (default: off)
# Valid values: on, off, first, best, center
# When set to 'first', only the first picture of an event is saved.
# Picture with most motion of an event is saved when set to 'best'.
# Picture with motion nearest center of picture is saved when set to 'center'.
# Can be used as preview shot for the corresponding movie.
output_pictures offソス@ソスソスソス@ソスハ真ソスヘ保托ソスソスソスソスネゑソス

# Draws the timestamp using same options as C function strftime(3)
# Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock
# Text is placed in lower right corner
text_right %Y-%m-%d\n%Tソス@ソスソスソス@ソスソスソスソスフ右ソスソスソスソスYYYY-MM-DD\nhh:mm:ssソスフ形ソスソスソスナ撮ソスeソスソスソスソスソスソスソスソスソスソスソスソスソスソス

# Draw a user defined text on the images using same options as C function strftime(3)
# Default: Not defined = no text
# Text is placed in lower left corner
text_left CAMERA %tソス@ソスソスソス@ソスソスソスソスフ搾ソスソスソスソスソスCAMERA xソスフ形ソスソスソスナカソスソスソスソスソスヤ搾ソスソスソスソスソスソスソスソスソスソスソス

# Target base directory for pictures and films
# Recommended to use absolute path. (Default: current working directory)
#target_dir /tmp/motion
target_dir /var/motionソス@ソスソスソス@ソスソスソスソスロ托ソスソスソスfソスBソスソスソスNソスgソスソスソスソスソスwソスソス

# File path for motion triggered ffmpeg films (movies) relative to target_dir
# Default: %v-%Y%m%d%H%M%S
# File extensions(.mpg .avi) are automatically added so do not include them
movie_filename CAMERA%t_%Y%m%d%H%M%Sソス@ソスソスソス@ソスソスソスソスロ托ソスソスtソス@ソスCソスソスソスソスソスソスCAMERAx_YYYYMMDDHHMMSS.aviソスフようソスネ形ソスソスソスノゑソスソスソス

# Restrict stream connections to localhost only (default: on)
stream_localhost offソス@ソスソスソス@ソスJソスソスソスソスソスfソスソスソスソスソスソスソスzソスXソスgソスネ外ソスノゑソスソスzソスM

# Restrict control connections to localhost only (default: on)
webcontrol_localhost offソス@ソスソスソス@WebソスCソスソスソス^ソスtソスFソス[ソスXソスナの撰ソスソスソスソスソスソスソスzソスXソスgソスネ外ソスノゑソスソスソスソスソス

# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)
# To give the filename as an argument to a command append it with %f
on_movie_start /usr/local/bin/motion_notify.sh %f %tソス@ソスソスソス@ソスソスソスソスBソスeソスJソスnソスソスソスノ難ソスソスフ鯉ソスソスmソスハ知ソスXソスNソスソスソスvソスgソスソスソスNソスソスソスソスソスXソスNソスソスソスvソスgソス成ソスヘ鯉ソスq

##############################################################
# Camera config directory
# Any files ending in '.conf' in this directory will be read
# as a camera config file.
##############################################################

camera_dir /usr/local/etc/motion/conf.dソス@ソスソスソス@ソスJソスソスソスソスソスソスソスニ設抵ソスtソス@ソスCソスソスソスiソス[ソスソスfソスBソスソスソスNソスgソスソスソスソスソスwソスソス

[root@centos ~]# mkdir /var/motionソス@ソスソスソス@ソスソスソスソスロ托ソスソスソスfソスBソスソスソスNソスgソスソスソス成

[root@centos ~]# mkdir /usr/local/etc/motion/conf.dソス@ソスソスソス@ソスJソスソスソスソスソスソスソスニ設抵ソスtソス@ソスCソスソスソスiソス[ソスソスfソスBソスソスソスNソスgソスソスソス成

ソスiソスQソスjMotionソスン抵ソスiソスJソスソスソスソスソスソスソスニ)
ソスJソスソスソスソスソスソスソスニに設抵ソスtソス@ソスCソスソスソスソスソス成ソスソスソスソスBソスソスソスソスソスナは、USBソスJソスソスソスソス(ソスソスソスWソスNソス[ソスソス ソスLソスソスソス[ソスJソスソス ソスIソス[ソスrソスbソスg AF QCAM-200R)ソスAソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソス(Vstarcam IP camera-C7823WIPソスAipCamソスAソスvソスソスソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソスソスiPhoneソスAIP WebcamソスAソスvソスソスソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソスソスAndroidソスXソス}ソスz)ソスソスソスト趣ソスソスJソスソスソスソスソスニゑソスソスソスB
USBソスJソスソスソスソスソスソスソスTソス[ソスoソス[ソスヨ接托ソス

[root@centos ~]# lsusbソス@ソスソスソス@USBソスJソスソスソスソスソスFソスソスソスmソスF
Bus 002 Device 003: ID 046d:08c2 Logitech, Inc. QuickCam PTZ

[root@centos ~]# ll /dev/video0ソス@ソスソスソス@ソスrソスfソスIソスfソスoソスCソスXソスmソスF
crw-rw---- 1 root video 81, 0 11ソスソス  9 18:36 /dev/video0

[root@centos ~]# vi /usr/local/etc/motion/conf.d/camera1.confソス@ソスソスソス@ソスJソスソスソスソスソスソスソスニ設抵ソスtソス@ソスCソスソスソス成(camera1)ソスソスUSBソスJソスソスソスソスソスフ暦ソス
# USBソスJソスソスソスソスソスソス`
videodevice /dev/video0

# ソスtソスソスソス[ソスソスソスソス
width 640

# ソスtソスソスソス[ソスソスソスソス
height 480

# ソスtソスソスソス[ソスソスソスソスソス[ソスg
framerate 30

# ソスJソスソスソスソスソスfソスソスソスzソスMソスpソス|ソス[ソスgソスヤ搾ソス
stream_port 8081ソス@ソスソスソス@ソス|ソス[ソスgソスヤ搾ソスソスヘカソスソスソスソスソスソスソスニに変更ソスソスソス驍アソスソス

# ソスソスソスソスzソスMソスpソスtソスソスソス[ソスソスソスソスソス[ソスgソスソスframerateソスIソスvソスVソスソスソスソスソスニ難ソスソスソスソスlソスソスソスwソスソス
stream_maxrate 30

[root@centos ~]# vi /usr/local/etc/motion/conf.d/camera2.confソス@ソスソスソス@ソスJソスソスソスソスソスソスソスニ設抵ソスtソス@ソスCソスソスソス成(camera2)ソスソスソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスフ暦ソス
# ソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスソスURL(iPhoneソスソスipCamソスAソスvソスソスソスフ場合)
# ソスソスソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスソスURLソスソスソスソス(http://www.ispyconnect.com/sources.aspx)
netcam_url http://ipCamソスAソスvソスソスソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソスソスiPhoneソスソスIPソスAソスhソスソスソスX/video.mjpg

# ソスtソスソスソス[ソスソスソスソス
width 480

# ソスtソスソスソス[ソスソスソスソス
height 360

# ソスtソスソスソス[ソスソスソスソスソス[ソスg
framerate 15

# ソスJソスソスソスソスソスfソスソスソスzソスMソスpソス|ソス[ソスgソスヤ搾ソス
stream_port 8082ソス@ソスソスソス@ソス|ソス[ソスgソスヤ搾ソスソスヘカソスソスソスソスソスソスソスニに変更ソスソスソス驍アソスソス

# ソスソスソスソスzソスMソスpソスtソスソスソス[ソスソスソスソスソス[ソスgソスソスframerateソスIソスvソスVソスソスソスソスソスニ難ソスソスソスソスlソスソスソスwソスソス
stream_maxrate 15

[root@centos ~]# vi /usr/local/etc/motion/conf.d/camera3.confソス@ソスソスソス@ソスJソスソスソスソスソスソスソスニ設抵ソスtソス@ソスCソスソスソス成(camera3)ソスソスソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスフ暦ソス
# ソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスソスURL(AndroidソスソスIP WebcamソスAソスvソスソスソスフ場合)
# ソスソスソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスソスURLソスソスソスソス(http://www.ispyconnect.com/sources.aspx)
netcam_url http://IP WebcamソスAソスvソスソスソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソスソスAndroidソスXソス}ソスzソスソスIPソスAソスhソスソスソスX:8080/videofeed

# ソスtソスソスソス[ソスソスソスソス
width 640

# ソスtソスソスソス[ソスソスソスソス
height 480

# ソスtソスソスソス[ソスソスソスソスソス[ソスg
framerate 30

# ソスJソスソスソスソスソスfソスソスソスzソスMソスpソス|ソス[ソスgソスヤ搾ソス
stream_port 8083ソス@ソスソスソス@ソス|ソス[ソスgソスヤ搾ソスソスヘカソスソスソスソスソスソスソスニに変更ソスソスソス驍アソスソス

# ソスソスソスソスzソスMソスpソスtソスソスソス[ソスソスソスソスソス[ソスgソスソスframerateソスIソスvソスVソスソスソスソスソスニ難ソスソスソスソスlソスソスソスwソスソス
stream_maxrate 30

[root@centos ~]# vi /usr/local/etc/motion/conf.d/camera4.confソス@ソスソスソス@ソスJソスソスソスソスソスソスソスニ設抵ソスtソス@ソスCソスソスソス成(camera4)ソスソスソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスフ暦ソス
# ソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスソスURL(Vstarcam IP camera-C7823WIPソスフ場合)
# ソスソスソスlソスbソスgソスソスソス[ソスNソスJソスソスソスソスソスソスURLソスソスソスソス(http://www.ispyconnect.com/sources.aspx)
netcam_url rtsp://admin:ソスpソスXソスソスソス[ソスh(ソスソスソスソスソスlソスソス888888)@C7823WIPソスソスIPソスAソスhソスソスソスX:10554/tcp/av0_0

# ソスtソスソスソス[ソスソスソスソス
width 640

# ソスtソスソスソス[ソスソスソスソス
height 480

# ソスtソスソスソス[ソスソスソスソスソス[ソスg
framerate 30

# ソスJソスソスソスソスソスfソスソスソスzソスMソスpソス|ソス[ソスgソスヤ搾ソス
stream_port 8084

# ソスソスソスソスzソスMソスpソスtソスソスソス[ソスソスソスソスソス[ソスgソスソスframerateソスIソスvソスVソスソスソスソスソスニ難ソスソスソスソスlソスソスソスwソスソス
stream_maxrate 30

ソスiソスRソスjソスソスソスフ鯉ソスソスmソスハ知ソスXソスNソスソスソスvソスgソス成
[root@centos ~]# yum -y install nkfソス@ソスソスソス@nkfソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# vi /usr/local/bin/motion_notify.shソス@ソスソスソス@ソスソスソスフ鯉ソスソスmソスハ知ソスXソスNソスソスソスvソスgソス成
#!/bin/bash

# ソスソスソス[ソスソスソスハ知ソスソスソス`
MAILTO=ソスソスソスフ鯉ソスソスmソスハ知ソス諠ソス[ソスソスソスAソスhソスソスソスX

# ソスソスソス[ソスソスソス{ソスソスソスソス`
MESSAGE=`mktemp`
echo "ソスト趣ソスソスJソスソスソスソス(${2})ソスナ難ソスソスソスソスソスソスソスソスmソスソスソスワゑソスソスソス" >> ${MESSAGE}

# ソスソスソスソスソスソスTソスソスソスlソスCソスソスソス鞫懶ソス成
THUMB=`basename ${1} | sed 's/\.[^\.]*$//'`
/usr/bin/ffmpeg -y -i ${1} -ss 0 -vframes 1 -f image2 /tmp/${THUMB}.jpg > /dev/null 2>&1

# ソスソスソス[ソスソスソスハ知
cat ${MESSAGE} | mail -a /tmp/${THUMB}.jpg -s `echo ソスト趣ソスソスJソスソスソスソス\(${2}\)ソスソスソスフ鯉ソスソスmソスハ知 | nkf -M` ${MAILTO}

# ソスソスnソスソス
rm -f ${MESSAGE} /tmp/${THUMB}.jpg

[root@centos ~]# chmod +x /usr/local/bin/motion_notify.shソス@ソスソスソス@ソスソスソスフ鯉ソスソスmソスハ知ソスXソスNソスソスソスvソスgソスヨ趣ソスソスsソスソスソスソスソスtソスソス

ソスiソスSソスjソスBソスeソスソスソスソスソスソスソスソスソスソスソス除ソスン抵ソス
[root@centos ~]# yum -y install tmpwatchソス@ソスソスソス@tmpwatchソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# vi /etc/cron.daily/motion_cleanソス@ソスソスソス@ソスBソスeソスソスソスソスソスソスソスソスソスソスソス除ソスXソスNソスソスソスvソスgソス成
#!/bin/bash

# ソスBソスeソスソスソスソスロ托ソスソスソスソスソスソスソス`(ソスソス:7ソスソス)
KEEP_DAYS=7

# ソスロ托ソスソスソスソスソスソス超ゑソスソスソスソスソスソスソスソスソス除
tmpwatch -m $((${KEEP_DAYS}*24)) /var/motion

[root@centos ~]# chmod +x /etc/cron.daily/motion_cleanソス@ソスソスソス@ソスBソスeソスソスソスソスソスソスソスソスソスソスソス除ソスXソスNソスソスソスvソスgソスノ趣ソスソスsソスソスソスソスソスtソスソス

ソスソスMotionソスNソスソス

ソスiソスPソスjMotionソスNソスソスソスソスCentOS7ソスフ場合
[root@centos ~]# cp /usr/local/share/motion/examples/motion.service /usr/lib/systemd/system/ソス@ソスソスソス@MotionソスNソスソスソスソス`ソスソスソスソスソスソスフデソスBソスソスソスNソスgソスソスソスヨコソスsソス[

[root@centos ~]# systemctl enable motionソス@ソスソスソス@MotionソスソスソスソスソスNソスソスソスン抵ソス

[root@centos ~]# systemctl start motionソス@ソスソスソス@MotionソスNソスソス


ソスiソスQソスjソス|ソス[ソスgソスJソスソス
ソスyソスtソス@ソスCソスAソスEソスHソス[ソスソスソスz
ソスTソス[ソスoソス[ソスソスソスソスソスtソス@ソスCソスAソスEソスHソス[ソスソスソスン抵ソスソスナ、TCP8080ソスヤポソス[ソスgソスAソスJソスソスソスソスソスfソスソスソスzソスMソスpソス|ソス[ソスgソスヨのアソスNソスZソスXソスソスソスソスソスツゑソスソスソス謔、ソスノゑソスソスソスB

ソスソスMotionソスmソスF

ソスソスhttp://ソスTソス[ソスoソス[IPソスAソスhソスソスソスX:8080/ソスノアソスNソスZソスXソスソスソスソスMotionソスソスソスソスyソス[ソスWソスAソスJソスソスソスソスソスfソスソスソスソスソス\ソスソスソスソスソスソス驍アソスソスソスソスIEソスナはカソスソスソスソスソスfソスソスソスヘ表ソスソスソスソスソスソスネゑソス(ChromeソスAEdgeソスAFirefoxソスナは表ソスソスソスソスソスソスソス)
ソスソスhttp://ソスTソス[ソスoソス[IPソスAソスhソスソスソスX:8081/ソスノアソスNソスZソスXソスソスソスト監趣ソスソスJソスソスソスソス1ソスフ映ソスソスソスソスソスソスソスソスソスナゑソスソス驍アソスソスソスソスIEソスAEdgeソスナは趣ソスソスソスソスナゑソスソスネゑソス(ChromeソスAFirefoxソスナは趣ソスソスソスソスナゑソスソスソス)
ソスソスソスソスソスフ鯉ソスソスmソスソスソスノソスソス[ソスソスソスハ知ソスソスソスソス驍アソスソス



ソスソスMotionソスソスソスソス

ソスyソスト趣ソスソスJソスnソスz
http://ソスTソス[ソスoソス[IPソスAソスhソスソスソスX:8080/0/detection/startソスヨアソスNソスZソスX

ソスyソスト趣ソスソスソス~ソスz
http://ソスTソス[ソスoソス[IPソスAソスhソスソスソスX:8080/0/detection/pauseソスヨアソスNソスZソスX

ソスyソスト趣ソスソスソスヤ確ソスFソスz
http://ソスTソス[ソスoソス[IPソスAソスhソスソスソスX:8080/ソスJソスソスソスソスID(ソスソス:1)/detection/statusソスヨアソスNソスZソスX
ソスソスACTIVEソスフ場合ソスヘ監趣ソスソスソスソスソスソス
ソスソスPAUSEソスフ場合ソスヘ監趣ソスソスソス~ソスソスソス

ソスソスMotionソスソスソスソスソスト趣ソスソスン抵ソス

ソスソスソスソスフ難ソスソスソスソスノ趣ソスソスソスソスナ監趣ソスソスJソスnソス^ソスソス~ソスソスソスソス謔、ソスノゑソスソスソスBソスソスソスソスソスナは、jpholidaypソスソスソスgソスpソスソスソスト包ソスソスソスソスyソスソスソスjソスソスソス判別ゑソスソスト、ソスソスソスソスソスワゑソスソスヘ土ソスソスソスjソスソスソスフ難ソスソス闔橸ソスヤ帯ゑソスソスソスソスソスソスナ監趣ソスソスソスソスソス謔、ソスノゑソスソスソスB
[root@centos ~]# yum -y install PyYAMLソス@ソスソスソス@PyYAMLソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# git clone https://github.com/emasaka/jpholidaypソス@ソスソスソス@jpholidaypソス_ソスEソスソスソスソスソス[ソスh

[root@centos ~]# mv jpholidayp/jpholidayp /usr/local/bin/ソス@ソスソスソス@jpholidaypソスソスソスソスソスソスフデソスBソスソスソスNソスgソスソスソスヨ移難ソス

[root@centos ~]# rm -rf jpholidayp/ソス@ソスソスソス@ソス_ソスEソスソスソスソスソス[ソスhソスソスソスソスソスtソス@ソスCソスソスソスソスソス除

[root@centos ~]# jpholidayp ; echo $?ソス@ソスソスソス@jpholidaypソスmソスF
0ソス@ソスソスソス@ソス{ソスソスソスソスソスyソスソスソスjソスソスソスフ場合
1ソス@ソスソスソス@ソス{ソスソスソスソスソスソスソスソスソスフ場合

[root@localhost ~]# vi /etc/cron.d/motionMotionソス@ソスソスソス@ソスソスソスソスソスト趣ソスソスン抵ソスtソス@ソスCソスソスソス成
# ソスソスソスソスソスソスソスソスソスソス(ソスソス:8:00ソス`17:00)ソスト趣ソスソスソスソスソス鼾
# ソスソスソスソスソスソス8:00ソスノ監趣ソスソスJソスnソスソスソスト包ソスソスソス17:00ソスノ監趣ソスソスソス~
0  8 * * * root /usr/local/bin/jpholidayp || (wget -q -O - http://localhost:8080/0/detection/start > /dev/null && echo Motion Detection started | logger -t motion.cron)
0 17 * * * root /usr/local/bin/jpholidayp || (wget -q -O - http://localhost:8080/0/detection/pause > /dev/null && echo Motion Detection stopped | logger -t motion.cron)

# ソスソスソスソスソスソスヤ托ソス(ソスソス:17:00ソス`8:00)ソスニ土ソスソスソスjソスソス24ソスソスソスヤ監趣ソスソスソスソスソス鼾
# ソスソスソスソスソスソス17:00ソスノ監趣ソスソスJソスnソスソスソスト包ソスソスソス8:00ソスノ監趣ソスソスソス~ソスソスソスyソスソスソスjソスソスソスヘ抵ソス~ソスソスソスネゑソス
0 17 * * * root /usr/local/bin/jpholidayp || (wget -q -O - http://localhost:8080/0/detection/start > /dev/null && echo Motion Detection started | logger -t motion.cron)
0  8 * * * root /usr/local/bin/jpholidayp || (wget -q -O - http://localhost:8080/0/detection/pause > /dev/null && echo Motion Detection stopped | logger -t motion.cron)

ソスソスApacheソスン抵ソスソスソスソスト趣ソスソスJソスソスソスソスソスfソスソスソスソスソスOソスソスソスソスソス邇具ソスソスソスソスソスソス鼾

ソスト趣ソスソスJソスソスソスソスソスfソスソスソスソスソスOソスソスソスソスソスソスWebソスuソスソスソスEソスUソスナ趣ソスソスソスソスナゑソスソスソス謔、ソスノゑソスソスソスB
ソスソスApacheソスAソステ搾ソスソスソスソスハ信ソスAソスpソスXソスソスソス[ソスhソスFソスソスソスソスソスソスソスソスソスマでゑソスソス驍アソスソス
[root@localhost ~]# vi /etc/httpd/conf.d/motion.confソス@ソスソスソス@ApacheソスpMotionソスン抵ソスtソス@ソスCソスソスソス成
# ソスソスソスソスソスワゑソスソスソスBASICソスFソスリ済の場合ソスフみアソスNソスZソスXソスソスソスソス
<Location /motion>
    SSLRequireSSL
    AuthUserFile /etc/httpd/conf/.htpasswd
    AuthName "secret page"
    AuthType Basic
    require valid-user
    <RequireAny>
        Require all denied
        Require ip 10.0.0.0/8
        Require ip 172.16.0.0/12
        Require ip 192.168.1.0/24
        Require valid-user
    </RequireAny>
</Location>

# CAMERA1
ProxyPass /motion/camera1/ http://127.0.0.1:8081
ProxyPassReverse /motion/camera1/ http://127.0.0.1:8081

# CAMERA2
ProxyPass /motion/camera2/ http://127.0.0.1:8082
ProxyPassReverse /motion/camera2/ http://127.0.0.1:8082

# CAMERA3
ProxyPass /motion/camera3/ http://127.0.0.1:8083
ProxyPassReverse /motion/camera3/ http://127.0.0.1:8083

# CAMERA4
ProxyPass /motion/camera4/ http://127.0.0.1:8084
ProxyPassReverse /motion/camera4/ http://127.0.0.1:8084

[root@centos ~]# systemctl reload httpdソス@ソスソスソス@Apacheソスン定反ソスfソスソスCentOS7ソスフ場合

ソスソスソスソスソスソスソスソスソスソスhttps://ソスTソス[ソスoソス[ソスソス/motion/camera1/ソスノアソスNソスZソスXソスソスソスト認ソスリなゑソスソスナ監趣ソスソスJソスソスソスソス1ソスフ映ソスソスソスソスソスソスソスソスソスナゑソスソス驍アソスソス
ソスソスソスOソスソスソスソスソスソスhttps://ソスTソス[ソスoソス[ソスソス/motion/camera1/ソスノアソスNソスZソスXソスソスソスト認ソスリなゑソスソスナ監趣ソスソスJソスソスソスソス1ソスフ映ソスソスソスソスソスソスソスソスソスナゑソスソスネゑソスソスソスソスソス
ソスソスソスOソスソスソスソスソスソスhttps://ソスTソス[ソスoソス[ソスソス/motion/camera1/ソスノアソスNソスZソスXソスソスソスト認ソスリゑソスソスソスナ監趣ソスソスJソスソスソスソス1ソスフ映ソスソスソスソスソスソスソスソスソスナゑソスソス驍アソスソス

ソスソスSambaソスン抵ソスソスソスソス^ソスソスソスWindowsソスソスソス邇具ソスソスソスソスソスソス鼾

ソス^ソスソスソスWindowsソスソスソス邇具ソスソスソスナゑソスソスソス謔、ソスノゑソスソスソスB
ソスソスSambaソスソスソスソスソスマでゑソスソス驍アソスソス
[root@centos ~]# vi /etc/samba/smb.confソス@ソスソスソス@Sambaソスン抵ソスtソス@ソスCソスソスソスメ集
ソスソスソスLソスソスヌ会ソス
[motion]
   comment = Motion
   path = /var/motion
   valid users = user1ソス@ソスソスソス@user1ソスソスソス[ソスUソス[ソスフみアソスNソスZソスXソスソスソスツゑソスソスソス鼾
   
[root@centos ~]# systemctl reload smbソス@ソスソスソス@Sambaソスン定反ソスfソスソスCentOS7ソスフ場合

ソスソス\\ソスTソス[ソスoソス[IPソスAソスhソスソスソスX\motionソスノアソスNソスZソスXソスソスソストフソスHソスソスソス_ソスソスソスフ録ソスソスソスソスソスソスソスソスナゑソスソス驍アソスソス
ソスソスソスソスソスソスソスソスソスソスソスソスナゑソスソスネゑソスソス鼾ソスソスVLC media playerソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソス驍アソスソス


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com