Replies: 1 comment 1 reply
-
Well, I put some code inside: First I cloned url management for eventstart and make my own eventfire url in webu.c
Then in mlp_actions, after checking emulate_motion (old code) if this variable is greater than 0, I decrement, so, it works like a temporal emulate_motion. in motion.c
Still have to test if real motion is detected into this time frame (about 8 seconds using a value of 100) the event keep fired besides emulate_motion already reach value of 0. In a future, what I need to reach is: Disable motion detection, trigger motion by external sensor, but let motion determine when the motion ends (Maybe having motion paused, then on sensor signal, resume motion, fire motion and pause motion again, don't know if motion keep the already fired event in case of motion pause). |
Beta Was this translation helpful? Give feedback.
-
I need an external way to trigger motion to let motion start the event and stop the event when no more motion is detected.
At the moment I start the event but I HAVE to stop the event, I need a way to trigger motion so the event is started when I call the trigger and stopped when no more motion is detected without calling eventend.
Im not asking for: http://motionsrv:8000/00105/action/eventstart
Because I have to: http://motionsrv:8000/00105/action/eventend
Any clue is this is already implemented? Im asking because I got very confused about versions/docs/pr and new things that I can't find in documents.
Or is there any way to do it?
Just joking, my possible solutions: Open a water conduct directed to the cam, turn on a motor that move a tree in front of the camera, Turn on a laser beam or a flashlight directed to the cam.
Besides Jokes (used as examples), need a way to fire motion calling a function or url.
Maybe related to: #1627
Beta Was this translation helpful? Give feedback.
All reactions