Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. ON_MOTION_DETECTED multiple triggering (anonymousa...@gmail.com) 2. Re: ON_MOTION_DETECTED multiple triggering (tosiara) 3. Re: ON_MOTION_DETECTED multiple triggering (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Thu, 23 May 2019 10:14:43 +0400 From: "anonymousa...@gmail.com" <anonymousa...@gmail.com> To: motion-user@lists.sourceforge.net Subject: [Motion-user] ON_MOTION_DETECTED multiple triggering Message-ID: <CANRHOh+DnU-nAq0N+Ct=Ymndr5HhLAe1qx7hXjzC4uayb=7...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi everyone! I have a problem with my motion on Raspberry 2B. I coded a shell script that sends an MQTT message as an ON_MOTION_DETECTED triggering. My problem is that this shell script gets executed for several seconds in a roll, and I would like just one event to be triggered... I use this feature to switch lights off at home when nobody moves for at least 1 hour, so I would like that event to be triggered just once and then to stop motion detection for (let's say) 2 seconds before detecting a new movement Thanks! Please find my motion.conf file here below daemon on process_id_file /var/run/motion/motion.pid setup_mode off logfile /tmp/motion.log log_level 6 log_type all videodevice /dev/video0 v4l2_palette 17 input -1 norm 0 frequency 0 rotate 270 width 240 height 320 framerate 10 minimum_frame_time 0 netcam_keepalive off netcam_tolerant_check off auto_brightness off brightness 0 contrast 0 saturation 0 hue 0 roundrobin_frames 1 roundrobin_skip 1 switchfilter off threshold 1500 threshold_tune off noise_level 32 noise_tune on despeckle_filter EedDl smart_mask_speed 0 lightswitch 0 minimum_motion_frames 1 pre_capture 0 post_capture 0 event_gap 0 max_movie_time 0 emulate_motion off output_pictures center output_debug_pictures off quality 75 picture_type jpeg ffmpeg_output_movies off ffmpeg_output_debug_movies off ffmpeg_timelapse 0 ffmpeg_timelapse_mode daily ffmpeg_bps 500000 ffmpeg_variable_bitrate 0 ffmpeg_video_codec mpeg4 ffmpeg_deinterlace off sdl_threadnr 0 use_extpipe off snapshot_interval 0 locate_motion_mode preview locate_motion_style redbox text_right %Y-%m-%d\n%T-%q text_changes on text_event %Y%m%d%H%M%S text_double off target_dir /var/lib/motion snapshot_filename %v-%Y%m%d%H%M%S-snapshot picture_filename %v-%Y%m%d%H%M%S-%q movie_filename %v-%Y%m%d%H%M%S timelapse_filename %Y%m%d-timelapse ipv6_enabled off stream_port 8081 stream_quality 50 stream_motion off stream_maxrate 10 stream_localhost off stream_limit 0 stream_auth_method 0 webcontrol_port 8080 webcontrol_localhost off webcontrol_html_output on track_type 0 track_auto off track_iomojo_id 0 track_step_angle_x 10 track_step_angle_y 10 track_move_wait 1 track_speed 255 track_stepsize 40 quiet on on_motion_detected /etc/motion/on_motion_detect.sh -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Thu, 23 May 2019 13:41:57 +0300 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] ON_MOTION_DETECTED multiple triggering Message-ID: <CACHTdwT7DmNRYt7Go_CEw2V=wvw6eo_fjck6y85oimmdsrb...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Run motion with debug logging and check the output why your script is executed multiple times On Thu, May 23, 2019, 09:15 anonymousa...@gmail.com <anonymousa...@gmail.com> wrote: > Hi everyone! I have a problem with my motion on Raspberry 2B. > I coded a shell script that sends an MQTT message as an ON_MOTION_DETECTED > triggering. My problem is that this shell script gets executed for several > seconds in a roll, and I would like just one event to be triggered... I use > this feature to switch lights off at home when nobody moves for at least 1 > hour, so I would like that event to be triggered just once and then to stop > motion detection for (let's say) 2 seconds before detecting a new movement > > Thanks! Please find my motion.conf file here below > > > daemon on > process_id_file /var/run/motion/motion.pid > setup_mode off > logfile /tmp/motion.log > log_level 6 > log_type all > videodevice /dev/video0 > v4l2_palette 17 > input -1 > norm 0 > frequency 0 > rotate 270 > width 240 > height 320 > framerate 10 > minimum_frame_time 0 > netcam_keepalive off > netcam_tolerant_check off > auto_brightness off > brightness 0 > contrast 0 > saturation 0 > hue 0 > roundrobin_frames 1 > roundrobin_skip 1 > switchfilter off > threshold 1500 > threshold_tune off > noise_level 32 > noise_tune on > despeckle_filter EedDl > smart_mask_speed 0 > lightswitch 0 > minimum_motion_frames 1 > pre_capture 0 > post_capture 0 > event_gap 0 > max_movie_time 0 > emulate_motion off > output_pictures center > output_debug_pictures off > quality 75 > picture_type jpeg > ffmpeg_output_movies off > ffmpeg_output_debug_movies off > ffmpeg_timelapse 0 > ffmpeg_timelapse_mode daily > ffmpeg_bps 500000 > ffmpeg_variable_bitrate 0 > ffmpeg_video_codec mpeg4 > ffmpeg_deinterlace off > sdl_threadnr 0 > use_extpipe off > snapshot_interval 0 > locate_motion_mode preview > locate_motion_style redbox > text_right %Y-%m-%d\n%T-%q > text_changes on > text_event %Y%m%d%H%M%S > text_double off > target_dir /var/lib/motion > snapshot_filename %v-%Y%m%d%H%M%S-snapshot > picture_filename %v-%Y%m%d%H%M%S-%q > movie_filename %v-%Y%m%d%H%M%S > timelapse_filename %Y%m%d-timelapse > ipv6_enabled off > stream_port 8081 > stream_quality 50 > stream_motion off > stream_maxrate 10 > stream_localhost off > stream_limit 0 > stream_auth_method 0 > webcontrol_port 8080 > webcontrol_localhost off > webcontrol_html_output on > track_type 0 > track_auto off > track_iomojo_id 0 > track_step_angle_x 10 > track_step_angle_y 10 > track_move_wait 1 > track_speed 255 > track_stepsize 40 > quiet on > on_motion_detected /etc/motion/on_motion_detect.sh > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Thu, 23 May 2019 13:44:13 +0300 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] ON_MOTION_DETECTED multiple triggering Message-ID: <cachtdwqytzerf3ewoyevjnxpd0txyqrd0d7tkbkv9hy0qut...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" And second, set event gap. This is time period when motion is treated as single event. If you specify 0, pretty every changed frame will be a new event and fire the script On Thu, May 23, 2019, 13:41 tosiara <tosi...@gmail.com> wrote: > Run motion with debug logging and check the output why your script is > executed multiple times > > On Thu, May 23, 2019, 09:15 anonymousa...@gmail.com < > anonymousa...@gmail.com> wrote: > >> Hi everyone! I have a problem with my motion on Raspberry 2B. >> I coded a shell script that sends an MQTT message as an >> ON_MOTION_DETECTED triggering. My problem is that this shell script gets >> executed for several seconds in a roll, and I would like just one event to >> be triggered... I use this feature to switch lights off at home when nobody >> moves for at least 1 hour, so I would like that event to be triggered just >> once and then to stop motion detection for (let's say) 2 seconds before >> detecting a new movement >> >> Thanks! Please find my motion.conf file here below >> >> >> daemon on >> process_id_file /var/run/motion/motion.pid >> setup_mode off >> logfile /tmp/motion.log >> log_level 6 >> log_type all >> videodevice /dev/video0 >> v4l2_palette 17 >> input -1 >> norm 0 >> frequency 0 >> rotate 270 >> width 240 >> height 320 >> framerate 10 >> minimum_frame_time 0 >> netcam_keepalive off >> netcam_tolerant_check off >> auto_brightness off >> brightness 0 >> contrast 0 >> saturation 0 >> hue 0 >> roundrobin_frames 1 >> roundrobin_skip 1 >> switchfilter off >> threshold 1500 >> threshold_tune off >> noise_level 32 >> noise_tune on >> despeckle_filter EedDl >> smart_mask_speed 0 >> lightswitch 0 >> minimum_motion_frames 1 >> pre_capture 0 >> post_capture 0 >> event_gap 0 >> max_movie_time 0 >> emulate_motion off >> output_pictures center >> output_debug_pictures off >> quality 75 >> picture_type jpeg >> ffmpeg_output_movies off >> ffmpeg_output_debug_movies off >> ffmpeg_timelapse 0 >> ffmpeg_timelapse_mode daily >> ffmpeg_bps 500000 >> ffmpeg_variable_bitrate 0 >> ffmpeg_video_codec mpeg4 >> ffmpeg_deinterlace off >> sdl_threadnr 0 >> use_extpipe off >> snapshot_interval 0 >> locate_motion_mode preview >> locate_motion_style redbox >> text_right %Y-%m-%d\n%T-%q >> text_changes on >> text_event %Y%m%d%H%M%S >> text_double off >> target_dir /var/lib/motion >> snapshot_filename %v-%Y%m%d%H%M%S-snapshot >> picture_filename %v-%Y%m%d%H%M%S-%q >> movie_filename %v-%Y%m%d%H%M%S >> timelapse_filename %Y%m%d-timelapse >> ipv6_enabled off >> stream_port 8081 >> stream_quality 50 >> stream_motion off >> stream_maxrate 10 >> stream_localhost off >> stream_limit 0 >> stream_auth_method 0 >> webcontrol_port 8080 >> webcontrol_localhost off >> webcontrol_html_output on >> track_type 0 >> track_auto off >> track_iomojo_id 0 >> track_step_angle_x 10 >> track_step_angle_y 10 >> track_move_wait 1 >> track_speed 255 >> track_stepsize 40 >> quiet on >> on_motion_detected /etc/motion/on_motion_detect.sh >> _______________________________________________ >> Motion-user mailing list >> Motion-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/motion-user >> https://motion-project.github.io/ >> >> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user > > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 155, Issue 18 ********************************************