Security Spy - Enable / disable camera

Posted on
Fri Jun 05, 2020 4:01 am
raoul offline
Posts: 13
Joined: Jun 11, 2019

Security Spy - Enable / disable camera

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.

Posted on
Fri Jun 05, 2020 7:21 am
Korey offline
User avatar
Posts: 617
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Security Spy - Enable / disable camera

Use the "Arm Camera" command:
Attachments
Screen Shot 2020-06-05 at 6.20.55 AM.png
Screen Shot 2020-06-05 at 6.20.55 AM.png (361.21 KiB) Viewed 299 times

--
Korey

Posted on
Fri Jun 05, 2020 7:51 am
raoul offline
Posts: 13
Joined: Jun 11, 2019

Re: Security Spy - Enable / diable camera

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.
Attachments
Screenshot 2020-06-05 at 14.46.23.png
Screenshot 2020-06-05 at 14.46.23.png (164.84 KiB) Viewed 290 times

Posted on
Fri Jun 05, 2020 8:40 am
Korey offline
User avatar
Posts: 617
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Security Spy - Enable / diable camera

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
Attachments
Untitled.png
Untitled.png (144.14 KiB) Viewed 276 times

--
Korey

Posted on
Sun Jun 07, 2020 1:36 pm
raoul offline
Posts: 13
Joined: Jun 11, 2019

Re: Security Spy - Enable / disable camera

Thanks so much. That worked a treat.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest