-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add eventstart and eventend actions. #2691
base: dev
Are you sure you want to change the base?
Conversation
Many thanks for your contribution. Since motion v4.5.1 is installed by default with
So isn't continuous recording what you wanted in your particular case 😄? However, I agree, this should trigger whatever is configured to happen when a motion event is detected. |
I'm not sure what the I'll adjust the locales update to run only when head branch is from our repo. Even that the workflow is triggered from this repo, secrets seem to be used from the head repo, where they can be missing. A security precaution, to not allow anyone pulling secrets from other repos via PR, I guess. Makes sense. |
Co-authored-by: MichaIng <[email protected]>
Co-authored-by: MichaIng <[email protected]>
I have the same behavior when I start an event using the motion webcontrol (using http://127.0.0.1:7999/1/action/eventstart).
If I want continuous recording I change the |
I found that this motion commit introduce the bug : 262b6b0ac62f92fa2410bdc556a10daacb28e7f3 I open a motion issue : Motion-Project/motion#1625 |
Co-authored-by: MichaIng <[email protected]>
To be sure I understand it correctly:
I would expect motion to behave on If you really want a single snapshot/picture created via trigger, I however would just use the Btw, I solved the CI errors on base branch, and your code basically looks very fine. I'm just not sure about the use case. We shouldn't add actions if there is not really a use case which cannot be addressed better with the snapshot action, a definit recording start/end action that does not rely on motion detection events, and for external API/webhook calls: If this cannot be better done via motion directly, instead of going the loop through motionEye first. |
No, I want to start the record of a movie with an external trigger. I use the event functionality of motion.
My changes are doing what is expected : start and end an event in motion. |
Ah I think I understand now: Until v4.4, there was a single Why not sending Further questions regarding the need of this PR:
|
Yes this is the change since 4.4.
Yes this is my solution.
Because I use the motionEye frontend and I use motioneye_client inside a SCADA system plugin.
Yes but I don't see how to do it using motion web control commands |
Valid points. We should then also remove the Adding some other reviewers, just in case, but good to merge from my side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
I didn't do the due digging, but the existence of actions record_start
and record_stop
is rather odd as they both seem to be no-ops, at least currently. IMO they should be (eventually) removed unless someone figures out some use for them (in which case they should be wired to some action in the code, too). #1248 looks like the code really never was written for that kind of thing.
Hello,
I needed to manually start recording movies using actions but 'record_start' and 'record_end' actions don't do nothing. (see actions.py)
I add the eventstart and eventend action to available actions (copying the snapshot action).
This works with motion 4.3.2.
With motion 4.5.1 it doesn't work as expected because eventstart action makes motion create records continuously as if recording mode is set to 'Continuous recording' (but it is not).