Page 1 of 1

Security Spy - Enable / disable camera

PostPosted: Fri Jun 05, 2020 4:01 am
by raoul
Could anyone tell me if it is possible to (remotely) enable / disable a camera within security spy?

I only want this camera activated at certain times due to it's location. While I can physically enable and disable the camera, when done this way I get error messages from Security Spy that it can't connect to the camera. As such I figure the best option might be to disable the camera within the setup controls when not needed and enable when needed.

Would it be possible to do this with a python script and if so would anyone have an example?

Many thanks.

Re: Security Spy - Enable / disable camera

PostPosted: Fri Jun 05, 2020 7:21 am
by Korey
Use the "Arm Camera" command:

Re: Security Spy - Enable / diable camera

PostPosted: Fri Jun 05, 2020 7:51 am
by raoul
Thank you for the suggestion. However I'm actually looking to enable the camera within Security Spy rather than use Motion, Action or any of the recording settings. I enclose a screenshot below with the setting highlighted in red to demonstrate.

Thanks.

Re: Security Spy - Enable / diable camera

PostPosted: Fri Jun 05, 2020 8:40 am
by Korey
Fire an external apple script:



Disable:

Code: Select all
property thePath : "http://user:pass@127.0.0.1:8000/++camerasetup"

-- Disable camera 2:
do shell script "curl -d " & "'cameraNum=2&camEnabledCheck=0&action=save' " & thePath


enable:

Code: Select all
property thePath : "http://pass:user@127.0.0.1:8000/++camerasetup"

-- Enable camera 2:
do shell script "curl -d " & "'cameraNum=2&camEnabledCheck=1&action=save' " & thePath

Re: Security Spy - Enable / disable camera

PostPosted: Sun Jun 07, 2020 1:36 pm
by raoul
Thanks so much. That worked a treat.