-
Notifications
You must be signed in to change notification settings - Fork 25
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
Use SynoAI as a trigger for recording #102
Comments
Possibly, the code isn't really designed at the moment to detect when motion isn't detected though. |
That's why a propose a timer so no detection is needed. |
Hi pinomat81 You can set the action rule in SSS to interruptible and tell it to stop recording after x seconds. If you trigger the webhook once, it'll start recoding and stop after x seconds. But if you trigger the webhook multiple times during the x seconds, it effectively 'restarts' the action rule, adding another x seconds to the recording. So if SynoAI triggers for each motion detected, if it's within x seconds you should have a constant recording for the entire motion duration. Only thing I'm sure sure of is if SSS splits the recoding/timeline into a file for each action rule trigger. You could always set the delay on success in SynoAI to a few seconds less than the action rule so it doesn't trigger so frequently. Maybe give this a try and see if it works for you? |
I will when I have time. |
Hey @p-u-a , Thank you for your answer. I tried using an interruptible rule (if I understood correctly what you proposed) but I still get almost a perfect constant clip duration . The action rule can trigger every 15s and it records for 20s. It seems that the action rule continue recording and waits that the rule stops then restart a new record. That's annoying... |
Hello djdd87,
I had a look to my problems about launching recording using the SSS integrated cache recording.
The SSS API allows to start (and stop) to record (and use the cache) by using the webhook :
GET /webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalRecording&method=Record&version=1&cameraId=x&action=start
But it needs to be authenticated and it needs two webhooks (one for start/another for stop) !
I would like to use SynoAI to automatically stops if no motion has been detected during the x seconds.
That would be :
Do you thing this is doable ?
Thank you
The text was updated successfully, but these errors were encountered: