Modernine TV
ͼ : ͼ駢 admin     ʶҹ admin      ҷ駢 ѹ : 29 ѹ¹ 2560 21:03:07      ١Դҹ 47   47 / 0    ŴҴѡ ŴҴѡ 
: [ ]      Raspberry Pi      Raspberry Pi      Raspberry Pi
ͧ : Դ WebCAM on Raspberry pi with Motion

ԡٻʹٻ˭

WebCam USB ҡѺ RaspberryPi ͷӡõԴ Motion кԺѵԡ Debain öҾͧҹҧ



ԡٻʹٻ˭



@ ͹º USB WebCAM öǨͺҡ

 lsusb

ҡٻѧ WebCAM USB




ԡٻʹٻ˭

º USB ͧ WebCAM ҡѺ Raspberry




Ǩͺ USB Device о
....
Bus 001 Device 025: ID 1e4e:0102 Cubeternet GL-UPC822 UVC WebCam





ʴ´ػó Video USB

 dmesg | tail





ʴ´ /dev/video*

 ls /dev/video*




ԡٻʹٻ˭


 dmesg






 sudo apt-get update





 sudo apt-get install motion





Ѻ觡ҹ Config ͧ motion.conf

 sudo nano /etc/motion/motion.conf


駤ҵ

daemon on
width 640
height 480
framerate 30

stream_port 8081
stream_quality 100
stream_localhost off










 sudo nano /etc/default/motion


¹
start_motion_daemon=yes





ҹҹ㹡ʵҾԴͼҹ͢ Network Թ ҹöԴҾҡͧ ˹ Web Browser

ԴҾ  Browser IP  ͧ Raspberry Port 8081 Դ
http://ip-raspberry:8081

ԴʵҾ

 sudo service motion start



ԴʵҾ

 sudo service motion stop




ԡٻʹٻ˭



˹ Raspi ʴҾҡͧ ǷӻԴԴͧҹ˹




õ駤 Config Motion ҹ Browser


@ motion.conf

 sudo nano /etc/motion/motion.conf

¹ͤ÷Ѵ webcontrol_localhost on
webcontrol_localhost off



@ Ƿӡʵ

 sudo service motion restart





öԴ駤 Port 8080






ԡ All > config > list





ԡٻʹٻ˭

سѵԢͧͧ




Ѵ ˹ҷѷ ӡѴ ( Ҫ ) ͡ͺ෤մԨԵ ȭ