Trigger Action when Continuous Capture Starts/Stops
Is is possible to trigger an action whenever continuous capture is started or stopped for a camera?
We would like to be able to run a script or shell command whenever we start or stop recording for a particular camera. I can see trigger options for motion or object detection, but nothing for when we turn continuous capture on or off.
Comments
-
This isn't a built-in feature, but it's possible to start/stop continuous capture from an AppleScript:
tell app "SecuritySpy" set schedule "Armed 24/7" camera number 1 mode ContinuousCapture end tell
Or shell script:
curl "http://USER:PASS@ADDRESS:PORT/setSchedule?cameraNum=1&schedule=1&mode=C"
So perhaps you can create two scripts that you invoke to start and stop recording, which also contain the extra functionality that you want?
-
Thanks, Ben. That's helpful to know what our options are.
