Knowledge Base Article
Article Type: How To
Product: Symphony
Product Version:
Component:
Device Brands:
Created: 2-May-2016 1:23:03 PM
Last Updated:

SDK: WebserviceConsole.exe – How to set a camera to start recording/stop recording

WebserviceConsole is a command app that can be used to perform many different actions in Symphony.

Usage

WebServiceConsole <farm address> SetRecord <username> <password> <camera ID> <record value>

Where

<farm address> is the IP Address (e.g. 10.234.1.153)

<username> is the Administrator account user name

<password> is the Password for the Administrator account

<camera ID> is the ID of the camera in Symphony

<record value> is 0 (stop recording) or 255 (start recording)

Examples

In this particular example we will set the record mode of a camera.

To set camera 1 to record always:

WebServiceConsole 10.234.1.153 SetRecord admin admin 1 255

To set camera 1 to record never:

WebServiceConsole 10.234.1.153 SetRecord admin admin 1 0

In the Symphony server configuration interface, create an action set that includes the Run Program functionality with the WebServiceConsole command.

Example of the run program parameters to set the camera to always record:

  • Working Directory: c:\windows\system32
  • Executable Name: c:\windows\system32\cmd.exe
  • Arguments: /C "WebServiceConsole.exe" 10.234.1.153 SetRecord admin admin 1 255

Example of the run program parameters to override the camera recording setting:

  • Working Directory: c:\windows\system32
  • Executable Name: c:\windows\system32\cmd.exe
  • Arguments: /C "WebServiceConsole.exe" 10.234.1.153 SetRecordOverride admin admin 2 -1 ""

For information on creating rules and action sets, see Rules.

SetRecord Options

0RECORD_NEVER
1RECORD_VIDEO_ONLY
2RECORD_AUDIO_ONLY
3RECORD_AUDIO_AND_VIDEO
8RECORD_ON_MD_CAMERA: Motion detection by camera.
12RECORD_ON_MD_CAMERA_SCHEDULE: Motion detection by camera and schedule.
16RECORD_ON_MD_ALGORITHM: Tracked motion by algorithm.
32RECORD_ON_PIXEL_CHANGE: Pixel changes by algorithm.
36RECORD_ON_PIXEL_SCHEDULE: Pixel changes by algorithm and schedule.
64RECORD_ON_SCHEDULE: Schedule.
128RECORD_ON_MD_SCHEDULE: Tracked motion by algorithm and schedule.
132RECORD_AUDIO_ON_ALARM: Audio record mode.  If you select "record on alarms."
255RECORD_ALWAYS

Average rating:
Please log in to rate.
Rated by 1, Viewed by 2988