@elleclouds ok…
the motion module needs a video device…
run these two commands
sudo apt-get install v4l-utils
v4l2-ctl --list-devices
find the ‘camera’ device in the list
mine shows
odroid@odroid:~/MagicMirror$ v4l2-ctl --list-devices
s5p-mfc-dec (platform:11000000.codec):
/dev/video10
/dev/video11
s5p-jpeg encoder (platform:11f50000.jpeg):
/dev/video30
/dev/video31
s5p-jpeg encoder (platform:11f60000.jpeg):
/dev/video32
/dev/video33
exynos-gsc gscaler (platform:13e00000.video-scaler):
/dev/video20
exynos-gsc gscaler (platform:13e10000.video-scaler):
/dev/video21
UVC Camera (046d:0825) (usb-xhci-hcd.3.auto-1.2):
/dev/video0
the last is the camera…
so, in the motion.conf,
set the line videodevice to the value returned for the camera, in my case /dev/video0
# Videodevice to be used for capturing (default /dev/video0)
# for FreeBSD default is /dev/bktr0
videodevice /dev/video0
after changing the config file
either do
ps -ef | grep motion
get the process id (pid) use below
kill -s SIGHUP pid
mine is
odroid@odroid:~/MagicMirror$ ps -ef | grep motion
root 7756 1 0 Mar08 ? 00:14:21 motion
pid = 7756
or reboot