rwupson Posted December 18, 2012 Share Posted December 18, 2012 I had the control 4 gents come up and install a few yale locks today a GE Security system and SecuritySpy Extra Vegetables driver. With this all in mind, what I would like to do is, make the SecuritySpy camera active when the system is armed(for motion detection) and passive when the system is disarmed.Any help would be much appreciated!!!Thanks in advance!Rob Link to comment Share on other sites More sharing options...
wappinghigh Posted December 18, 2012 Share Posted December 18, 2012 I had the control 4 gents come up and install a few yale locks today a GE Security system and SecuritySpy Extra Vegetables driver. With this all in mind, what I would like to do is, make the SecuritySpy camera active when the system is armed(for motion detection) and passive when the system is disarmed.Any help would be much appreciated!!!Thanks in advance!RobYeh I'd like to know how to do this as well. I'm not sure it can be done at the moment. So I leave the cameras on active all the time with motion detection recording to a daily movie. This then gets back'd up off site to an FTP server... Link to comment Share on other sites More sharing options...
rwupson Posted December 19, 2012 Author Share Posted December 19, 2012 Ok some research on SecuritySpy website you can download a script show below - now all I need to do is come up with an "if'" statement - something like "if security system is armed run script". Any help with this conditional if statement would be welcome!!! Couple options:Option one:Camera Settings ChangeThe camera settings can be set via SecuritySpy's built-in web server, and so to set the settings from AppleScript, simple scripts can be written that post data to the web server. The example below turn motion detection off and on for camera 0.In this way, you can have a quick script that changes some key settings for a camera - and if required, this can be scheduled on a regular basis using CronniX. If you have enable password protection for your SecuritySpy web server, you will have to enter the username and password in the "PathToServer" URL. The IP address "127.0.0.1" used in the above script universally refers to "this computer", so should work in all circumstances, no matter what your actual computer's IP address is. Many settings are available, here are a few of the most useful ones:camEnabledCheck 0 or 1 Disables or enables a cameramdCheck 0 or 1 Turns motion detection off or onmdSensitivityText 0-100 The motion detection sensitivitymdSoundTriggerText 0 or 1 Whether sound triggers motion detectiontlCaptureMovieCheck 0 or 1 Whether this camera captures timelapse moviesplaySoundCheck 0 or 1 Whether this camera plays a sound on motion detectionrunScriptCheck 0 or 1 Whether this camera runs a script on motion detectionsendEmailCheck 0 or 1 Whether this camera sends an email on motion detectionhttp://www.bensoftware.com/securityspy/applescript/camerasettings.zipOption two:Triggering Motion-Detected RecordingThis script simulates motion on camera 0. This could be useful to trigger a recording based on an external sensor such as a switch, infra-red sensor or doorbell.Enabling and disabling a camera, and setting camera settingsThis script enables camera 0. To instead disable camera 0, change the "camEnabledCheck=1" parameter to "camEnabledCheck=0". This uses the camera settings HTTP request in SecuritySpy, so SecuritySpy's web server must be enabled. Make sure to modify the "formURL" address with the correct IP address and port of your SecuritySpy web server. If you have enabled authentication you can additionally add this to the url as follows:http://username:password@<ip-address>:<port>/++camerasetupAll camera settings can be set in this way - to see the parameter names, have a look at the source code for the ++camerasetup HTML page available through the web server.Note: SecuritySpy 2.0.10 or later is requred for this to work properly.Download the “Enabling and disabling” AppleScript file. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.