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. Re: Triggering of recording for multiple cameras (Alexander Schulte) ---------------------------------------------------------------------- Message: 1 Date: Mon, 1 Aug 2022 14:51:51 +0200 From: Alexander Schulte <alex.schu...@gmx.net> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Triggering of recording for multiple cameras Message-ID: <trinity-8ade1e90-438d-4fcb-b6eb-c54b1ea6b044-1659358311399@3c-app-gmx-bs24> Content-Type: text/plain; charset=UTF-8 Thanks genius3000 & kirjoitti for your suggestions using web control. If I got your right you are suggesting something like this: ## Start Configfile snippet # add at configfile of camera-1: (camera-1 is Motion-detect-master-camera) # At Start of event of camera-1: # Start with "motion web control" event for camera-2: # {IP}:{port}/{camid}/action/eventstart Trigger a new event. on_event_start??? curl http://localhost:8080/2/config/eventstart # At ende of event of camera-1: # Stop with "motion web control" event for camera-2: # {IP}:{port}/{camid}/action/eventend Trigger the end of a event. on_event_end? curl http://localhost:8080/2/config/eventend ## End Configfile snippet As I am only interested in events of camera-2 that get triggered by webcontrol, I could configure the motion-detection of camera-2 that it is never starting a event from its own, maybe by giving it a mask-image that is completely black.... mask_file /etc/motion/Mask_kamera2.pgm What I didn't understood is the "multiple triggers logic" that genius3000 is mentioning. Does it means a logic that avoids that the event gets triggered multiple times ? e.g. that cam-2 is starting a event on its own and gets additionally via webcontrol a signal to start cam-2 event ? Anyway, I will test it out, but the suggested sollutions sounds already great, thanks a lot!!! genius3000: I am actively using this with the scripts. Not through on_event_start though, I am utilizing inotify - i.e. Script trigger to the first image stored by motion. Using inotify I can avoid multiple triggers logic that is needed with on_event_start. I am using ALL for the url {IP}:{port}/ALL/action/eventstart1.8.2022 6.23 kirjoitti: I have never done this but in theory you should be able to use the mentioned "on_event_start" and "on_event_end" along with the webcontrol (interface set to 1). Have a read through the guide section - https://motion-project.github.io/motion_config.html#OptDetail_Webcontrol. Snippets of the event start and end using this: ? {IP}:{port}/{camid}/action/eventstart Trigger a new event. ? {IP}:{port}/{camid}/action/eventend Trigger the end of a event. Safest thought would be to have camera1 trigger the event start/end of camera2 in this manner. I'm not sure how motion may react if you happen to externally trigger an event while one is already happening (could test it out). With some external scripting one could track motion/event states and react accordingly, still using the webcontrol. </genius3000> ? ? An:?motion-user@lists.sourceforge.net Betreff:?Re: [Motion-user] Triggering of recording for multiple cameras >> Problem: >> >> I have two connected IP-cameras that are configured individually. >> Both cameras point to same direction. >> >> My wish is: >> >> - Any motion at camera1 OR camera2 should trigger the recording process of >> BOTH cameras. >> >> - Get after the end of the event two videos with the same start-time and >> end-time. >> >> I thought that it is maybe possible with parameter "on_event_start", >> but so far I have not found any way of solving the problem. >> Appreciate every suggestion! Thanks! Alex A alternative to the above would be: - Any motion at camera1 should trigger the recording process of BOTH cameras (camera1 and camera2) . ? ------------------------------ ------------------------------ 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 194, Issue 2 *******************************************