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: commandline to turn specific camera ON or OFF (Yves) ---------------------------------------------------------------------- Message: 1 Date: Sun, 26 Nov 2023 13:29:04 +0100 From: Yves <theyiny...@yalis.fr> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] commandline to turn specific camera ON or OFF Message-ID: <f9abec21-6ac8-4aa6-94ea-cdbf62d9c...@yalis.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Hello Le 25/11/2023 ? 17:09, mylinux a ?crit?: > What is the commandline to turn specific camera ON or OFF - using Linux > curl ? I have a working configuration for ON/OFF here: https://yalis.fr/git/yves/home-server/src/branch/master/roles In short: 1. You need to choose a webcontrol port: https://yalis.fr/git/yves/home-server/src/branch/master/roles/motion_back/tasks/main.yml#L62 In my case, this control port is localhost-only, but I forward to it from a Unix socket, using socat: https://yalis.fr/git/yves/home-server/src/branch/master/roles/motion_back/tasks/main.yml#L233 This does not change the general idea. 2. You send a GET request (https://yalis.fr/git/yves/home-server/src/branch/master/roles/dmz_motion_front/templates/index.html.j2#L42) without any parameters, to the URL where your webcontrol port is listening (https://yalis.fr/git/yves/home-server/src/branch/master/roles/dmz_motion_front/tasks/main.yml#L29) with a link that contains the ID of your camera, and then `detection/pause` (https://yalis.fr/git/yves/home-server/src/branch/master/roles/dmz_motion_front/templates/index.html.j2#L18) or `detection/start` (https://yalis.fr/git/yves/home-server/src/branch/master/roles/dmz_motion_front/templates/index.html.j2#L19). Now, I realize, this is not quite ON/OFF _of the camera_, but of the movement capture instead. But if you turn the camera really OFF, I?m not sure it would respond to an ON signal, if that even exists? > Thanks, > > Martin Yves. (N.B. don?t try and reuse the whole playbook: many things broke over time for a 1st-time install, and I am currently working on fixing everything) ------------------------------ ------------------------------ 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 207, Issue 14 ********************************************