How to create real-time monitoring with motion and raspberry pie
This article introduces motion plus raspberry pie how to create real-time monitoring, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Sudo apt-get install motion
Sudo nano / etc/default/motion
Change the no inside to yes, so that motion can always run in the background: start_motion_daemon=yes
Sudo nano / etc/motion/motion.conf
# start in daemon (background) mode and open the terminal by 2 (default: off)
Daemon on
# output a "normal" picture after motion is detected (default: on)
[...]
Output_normal off
# the file that stores the process number, also known as the pid file. (default: not defined).
Process_id_file / var/run/motion/motion.pid
# Image width (pixels). Valid range: depending on the camera, default: 352 pixels
Width 640
# Image height (pixels). Valid range: depending on the camera, default: 288 pixels
Height 480
# the maximum number of frames taken per second.
# valid range: 2-100. The default is 100 (almost unlimited).
Framerate 7
# if you use the URL to be used by the webcam, the size will be automatically detected (including http://, ftp:// or file:///)
# must be a URL that returns a single JPEG image or the original MJPEG stream. Default: undefined
Netcam_url value http://http://192.168.10.250:8080/videostream.cgi
# username and password of the webcam (as long as needed). Default: undefined
# Syntax is user: password
Netcam_userpass admin:mypassword
# basic target directory for storing pictures and clips
# the recommended absolute path. (default: current working directory)
Target_dir / home/carla/motion-images
# ffmpeg codec for video compression.
[...]
Ffmpeg_video_codec mpeg4
Create a directory to store PID files because it indicates in motion.conf:
$sudo mkdir / var/run/motion
Start motion
Sudo motion
Exit motion
Killall-TERM motion
Or
Service motion stop about motion plus raspberry pie how to create real-time monitoring here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.