Read the statement by Michael Teeuw here.
MMM-voice ugly hdmi banner
-
also just noticed that the execute bit is not set on the script… SO
cd modules/MMM-SleepWake
chmod +x external_motion -
@sdetweil so is it just this part i need to put on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started
-
@dazza120 correct… and right below it the same with ended as the parm for the motion ended notice
-
@sdetweil im leaving it with the ; in the command line?
-
@dazza120 the example doesn’t have ;
on_event_start /home/{userid}/MagicMirror/modules/MMM-SleepWake/external_motion started
-
@sdetweil no it this is what its like i hope this is correct?
# Command to be executed when an event starts. (default: none) # An event starts at first motion detected after a period of no motion defined $ ; on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion sta$ # Command to be executed when an event ends after a period of no motion # (default: none). The period of no motion is defined by option event_gap. ; on_event_end value /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion$ -
ok, that ; is a comment in the motion conf file, just like #… have to remove it
note that the on event end has an extra token there that neds to be removed
on_event_end value -
@sdetweil yes it is do i have to remove the # aswell?
-
@dazza120 no, there is no # on those two lines
-
@sdetweil no on the two lines above it
-
@dazza120 no, those are comments to explain what these lines do
-
@sdetweil ok cool so this is how i have it now
# Command to be executed when an event starts. (default: none) # An event starts at first motion detected after a period of no motion defined by event_gap on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started # Command to be executed when an event ends after a period of no motion # (default: none). The period of no motion is defined by option event_gap. on_event_end /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended -
@dazza120 looks good
-
@sdetweil thanks ive done this command chmod +x external_motion but i don’t see an outcome it just re turns to pi@raspberrypi:~/MagicMirror/modules/MMM-SleepWake
whole commandline below
pi@raspberrypi:~/MagicMirror/modules/MMM-SleepWake $ chmod +x external_motion
-
@dazza120 right. That makes my script executable, so motion can execute it
Now u will see files appear in the MMM-SleepWake/motion folder
When the motion module detects motion, and when it ends.
My module uses those files
-
@sdetweil u start the motion tool with sudo motion &
And u can see it’s actions in /var/log/motion/motion.log
The tail command will show you the last few lines (default 20) of a file
-
@sdetweil i’ll have a look tomorrow, thanks very much for your help much appreciated for your help
-
@sdetweil not sure its supposed to look like this
pi@raspberrypi:~ $ sudo motion & [1] 28276 pi@raspberrypi:~ $ [0:motion] [ALR] [ALL] conf_load: could not open configfile /usr/local/etc/motion/motion.conf: No such file or directory [0:motion] [CRT] [ALL] conf_load: No config file to process, using default values [0:motion] [NTC] [ALL] motion_startup: Using default log level (NTC) (6) [0:motion] [NTC] [ALL] motion_startup: Logging to syslog [0:motion] [NTC] [ALL] motion_startup: Motion 4.2.1+git20181209-7bd179c Started [0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL) [0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC) [0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 57.64.101 libavformat version 57.56.101 [0:motion] [NTC] [ALL] translate_init: Language: English [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0 [0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 28281 [1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1 [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE [1:ml1] [NTC] [VID] v4l2_device_capability: - READWRITE [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING [1:ml1] [NTC] [VID] v4l2_input_select: Name = "ov534"- CAMERA [1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support specifying PAL/NTSC norm [1:ml1] [NTC] [VID] v4l2_pixfmt_select: Configuration palette index 17 (YU12) for 640x480 doesn't work. -
@dazza120 Hey Dazza. Post it in the code-block you can use in the editor. Otherwise it’s hard to read your code/output.
-
@mdhenriksen not sure why it came out like that but i am doing it via vnc on my phone lol thank you that should be sorted now
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login