Access Control that is integrated with a Security Camera System is proving to be one of the highest demanded integrations. Pdk has a full-fledged integration with Digital-Watchdog. This integration allows a user to create and view bookmarked videos of access events, create text overlays, and even use soft-triggers to initiate events in the access control software, such as unlocking a door.
Pdk io provides greater opportunities for third-party integration. Pdk’s open API allows customers to integrate their access control system with many other third-party platforms. Integration helps provide an attractive turn-key solution to end-users because it simplifies their security operations while providing a higher level of protection.
ProdataKey and Digital Watchdog, a leader in digital recorders, surveillance cameras, and related management software, are offering an integration between pdk io access control and the DW Spectrum IPVMS video management platform. This seamless, integrated solution allows DW Spectrum users to review all pdk io event data from within the IPVMS interface and enables more efficient and effective security monitoring through automated responses to access-related events. For example, activity at a door reader or a door propped open can activate the movement of a PTZ (Pan-Tilt-Zoom) camera to provide corresponding coverage, initiate the pop-up of a video layout, send e-mail notifications to designated users, generate an audio alarm at the monitoring workstation, and create a bookmark within the recorded video stream at the time of the event. A flexible rules engine makes it easy for installing dealers, integrators, and system administrators to program these and other sequences.
The integration also allows DW Spectrum users to send commands back to the pdk io system to open or close doors, enable or disable certain features like “do not disturb,” and even trigger a lockdown. The result is a comprehensive security solution, accessible through a single interface, which delivers more features and functionality than two systems operating independently.
For DW customers wishing to add a pdk io system to their site, installation is fast and affordable thanks to a cloud platform that reduces upfront investment in on-premise hardware and management. Together, the DW and PDK integrated solution offers one of the most affordable, feature-rich unified video/access control platforms industry-wide, both in terms of initial expense and long-term, total-cost-of-ownership.
Table of Contents
Triggering Actions in PDK.io from DW Spectrum
Installing the NVR Integration Tool
Filtering and Sorting the Event Rule List
Editing Rules from the Advanced Settings Form
Adding an Event Rule from the Form
Selection Lists in Event Rules
Instant, Interval, or Fixed Duration Actions
Configuring Mail Server for Email Notifications
Simple Outgoing Email Settings
Advanced Outgoing Email Settings
To Set a Schedule for an Event
Configuring Mail Server for Email Notifications
Simple Outgoing Email Settings
Advanced Outgoing Email Settings
Selection Lists in Event Rules
ProdataKey’s NVR Integration Tool (Network Video Recorder) works in conjunction with DW (Digital Watchdog), a leading provider of video surveillance solutions, that brings together the best technology and features of two security application companies to provide more powerful security solutions. Digital Watchdog’s DW Spectrum is a customizable IP video management platform that works in conjunction with ProdataKey’s powerful PDK io products to provide users with the ability to create tailored networked video surveillance projects that anyone can use on any device. See how these two platforms work together to create a seamlessly integrated experience: door activity, video pop-up, bookmarking, lock/unlock/lockdown doors, and more from one synchronized platform.
Driver Installation
Using Generic Events
Soft Trigger Creation
It is recommended to use dpkg to install the package.
1 # dpkg -i nvr-integration-tool_0.0.3_all.deb
debconf will ask you to set the following configuration parameters during installation:
- Command Server Port - NVR Integration Tool starts an HTTP server that will listen to commands on this port (default is 9191).
- Panel ID - Identifier of Cloud Node to connect. For specifying multiple Cloud Nodes, IDs should be separated by a semicolon ( ; ).
- Spectrum username - Username in Spectrum system
- Spectrum password - Password in Spectrum system
- Spectrum URI - URL where Spectrum is listening for events (http://localhost:7001/api/createEvent by default)
If you want to modify these parameters after installation, you will need to edit the /etc/nvr-integration-tool/nvr-integration-tool.env file and restart the service.
The installer also asks to open a link in the browser. It is necessary in order to authenticate the system.
Commands and Scripts
There is a system service NVR Integration Tool. You can use this service to start, stop, or check the status of the NVR Integration Tool.
For example:
1 # systemctl status nvr-integration-tool
Use journalctl to get logs:
1 # journalctl -u nvr-integration-tool.service
If you see error messages in the logs that contain "Unable to find refresh token locally", or "Failed to connect to a panel because of an invalid token", or if you just want to get the new token to have access to the system, then you have to run the script /usr/local/bin/nvr-get-token.sh. This script asks to open a link in a browser. After a successful login, it starts the NVR Integration Tool service with the new token.
Generic Event
Prior to getting into the instructions of downloading and installing the tool, an explanation of how the NVR Integration Tool works and how it integrates with DW Spectrum is necessary. These two applications function with each other with what is called Generic Events.
A Generic Event occurs when the server receives an HTTP request from an external system such as an alarm, access control device, or a monitoring system. This is a default event and allows commands to be sent from DW Spectrum to third-party systems such as pdk.io.
DW Spectrum allows pdk.io devices to send an HTTP string known as a CreateEvent API call. The CreateEvent request must follow the proper format in order to be read by the server. In addition, the event fields in the rule must match the corresponding fields in the HTTP request to be acted upon. The full server API documentation is accessed on any installed server from:
http://<serveripaddress>:<servernetworkport>/static/api.xml
NOTE: Values in the Event field are case-sensitive, and an empty string functions as a wildcard, where any value is considered a match.
When a Generic Event is created in the DW Spectrum System, there are three basic parameters associated with each event; each HTTP request contains these three parameter data pieces: the Source, Caption, and Description.
These three data events are searched and filtered by the DW System. This can be leveraged in the Bookmark Log (Ctrl-B) when bookmarks are created from events, and when creating Event Rules (Ctrl-E).
Source
The resource that initiates the event: device (motion detection, input signal, etc.) or server (storage failure, server failure, etc.). The source parameter of the Generic Event is the name of the device in the pdk.io system that generated the PDK io event.
Caption
Caption is an optional class value used to identify an object type. Entries in this field should match the corresponding field in the HTTP request and is case sensitive. If the field is empty, it will always be considered a match. The caption parameter of the Generic Event is determined by the corresponding pdk.io event type that was generated. This can be any of the following values:
PDK.io Event Type | DW Spectrum IPVMS Generic Event Caption | Description |
Open (DPS) | door.input.dps.opened | Door position sensor detected the door open. |
Close (DPS) | door.input.dps.closed | Door position sensor detected the door closed. |
AutoOpen Enabled | door.autoopen.on | Auto open became active on the device. |
AutoOpen Disabled | door.autoopen.off | Auto open became deactivated on the device. |
Door Propped Alarm | door.alarm.propped.on | Door propped alarm has triggered the device. |
Door Propped Alarm Clear | door.alarm.propped.off | Door propped alarm has been cleared for the device. |
All Prop Clear | door.alarm.propped.alloff | All door propped alarms have been cleared. |
Door Forced Alarm | door.alarm.forced | Door forced alarm has triggered the device. |
Communication Loss | endpoint.alarm.commloss.on | Communication with the connection has been lost. |
Communication Loss Clear | endpoint.alarm.commloss.off | Communication with the connection has been re-established. |
No Person Associated with Credentials | door.request.unknown | An unknown credential was scanned and access was implicitly denied. |
Access Allowed | door.request.allowed | A known credential was scanned and access was allowed. |
Access Denied | door.request.denied | A known credential was scanned and access was denied. |
Duress PIN Entered | door.request.duress | A duress PIN was used to authenticate at the reader. |
Request to Exit Open | door.input.rex.on | Request to exit was triggered on the door. |
Request to Exit Closed | door.input.rex.off | Request to exit was cleared on the door. |
Card Scan Error | error.card.parse | Bad data was received from the card reader connected to the door. |
Description
Description is an optional attribute value used to distinguish objects within a class. Entries in this field should match the corresponding field in the HTTP request and is case sensitive. The description parameter of the Generic Event is the same text that is generated for the info text of the Live Events in pdk.io.
NOTE: Generic Events created by pdk.io do not have the following parameters defined; Metadata and Occurs are parameters defined only in DW Spectrum.
Metadata
- Metadata, strictly a DW Spectrum parameter and not defined in PDK.io, is used to pass a device identifier that will specify devices the event is limited to.
IMPORTANT: PDK does not define the Metadata parameter; the Force Acknowledgement option cannot be used when using the Show Notification action as part of a rule event.
Occurs
- Occurs is a DW Spectrum parameter and not defined in PDK.io. This is an optional field in DW Spectrum for the State. If there is no State field in the HTTP request, the event is considered instant. All Generic Events created by pdk.io are considered instant Generic Events.
IMPORTANT: If a continuous action such as “device recording” or “repeat sound” is bound to an instant Generic Event (one without a State field) the rule will not work.
Triggering Actions in PDK.io from DW Spectrum
After installing the NVR Integration Tool you will be able to trigger specific actions in pdk.io from the DW Spectrum interface using Event rules with the Soft Trigger Event and Do HTTP Request Action.
The parameters of the Do HTTP Request Action must be populated as shown below for the actions to complete successfully in pdk.io.
NOTE: Refer to the fields in the right-side Action panel above for an example of how the content should appear in each of the fields described below.
- Do - Click on this field (or the Action panel in the list) to select from a menu of Actions.
- Interval of action - Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered.
- HTTP URL - This is the HTTP link to the external system that will receive the request. It can also contain the request itself. The URL should be formatted as follows:
http://localhost:9191/commands/{command-name}
The {command-name} must be one of the following Command Names in the table below and the parameter /commands/ (as shown in the s example above) precedes the command name(s) in the string of text. If more than one command name is used, each command name is separated by a comma (no spaces).
Command Names
NOTE: The {command-name} is case sensitive and must be exactly as shown in this table.
{command-name} | Action Performed in pdk.io |
open | Changes the relay associated with the device to the open state. |
close | Changes the relay associated with the device to the closed state. |
dnd | Toggles the do-not-disturb flag on the device. |
forceToggle | Forces the relay associated with the device into the opposite of its current state regardless of holds or auto opens. |
tryOpen | Performs an Open/Close action on the device which is the same as an access allowed scan in that it will:
|
commands | Used to specify multiple other commands to be used. |
- HTTP content - The HTTP content should be formatted as follows:
{“panelId”:“{Cloud Node Serial Number}”,“doors”:[{Device ID number(s)}]}
as in the following:
{“panelId”:“1070ECB”,“doors”:[1]}
Note the use and placement of colons ( : ) commas ( , ) and brackets [ ] and that each parameter is enclosed in “double-quotes” with {curly brackets} at each end of this HTTP content string of text.
- {Cloud Node Serial Number} - This is the serial number labeled on the inside door of the pdk.io appliance or it can also be found on the pdk.io website. It will be something similar to 1070XXX (where XXX is a unique three-character alphanumeric designation).
- {Device ID number(s)} - This is a comma-separated list of the Device IDs that you would like the action performed on (no spaces). If performing the action on a single device, no comma is needed. The Device ID is found by navigating to the device’s configuration screen in pdk.io and look in the browser URL bar. The number at the end is the Device ID.
For example: in pdk.io/appliances/1070ECB/configuration/devices/1 the Device ID is 1.
- Content type - Must be left at Auto.
- Login and Password - Leave these two fields blank.
- Authentication type - Must be left at Auto.
- Request type - Must be left at Auto.
Click OK to accept the input changes for this screen.
Advanced Use Cases
It is possible to have multiple actions triggered in pdk.io using a single Soft Trigger Event. To do so in the Do HTTP Request Action, you will use the commands {command-name} in the HTTP URL and format the HTTP content similar to the following.
{“PanelId”:“{Cloud Node Serial Number}”,“doors”:[{Device ID number(s)}],“commands”:[“{command-name},{command-name}”]}
- {command-name} - This value is a comma-separated list of the Command Name options listed above that you would like to have triggered. Each command name is surrounded by double-quotes. Multiple commands can be used, separated by a comma (no spaces), and must be preceded by “commands” as illustrated here. This command string format would be entered in the HTTP content field.
{“panelId”,“1070ECB”,“doors”:[1],“commands”:[“close”,“dnd”]}
Using Event Rules
When the DW event engine is used, many interesting things can be done in response to access control events.
As an example: To trigger a bookmark in the timeline if the value of the source is "Front Door", you can put "Front", "Door", "Front D", etc. in the Source contains filter to match on it (the single word "Door" will get all events with the word "Door" in source). Most of the time the full name of the door is used in this field.
Caption Filter
The caption filter is used to choose which access control events trigger the creation of a bookmark. Leave this blank if all events from the pdk io system should execute the rule action.
If you only want to trigger an action on an Allow event, the appropriate caption value is
door.request.allowed
Put that full value in the Caption contains field.
If you want to trigger an action any time an access is attempted, whether that attempt succeeds or fails, you can put a partial value such as
door.access
in the Caption contains a field to capture all events that start with that.
Using the Event Rules List
There are several ways to open the Event Rules dialog.
- Use the Event Rules icon in the Notification Panel (shortcut Ctrl+E).
- Open System Administration (shortcut Ctrl+Alt+A) > General tab and click the Event Rules button.
- Use the device context menu and select Device Rules to list the rules that apply to that specific device.
- Click the Device Rules button in the Device Settings dialog.
Each row in the Event Rules list is a rule.
Invalid Rules
If a rule is not configured correctly, it will have a red background indicating it is invalid.
A small dot in the left-most # column indicates that an event has unsaved changes.
Filtering and Sorting the Event Rule List
You can click each of the column headers to sort rules in ascending or descending order by the values in that column.
The Filter field applies to devices (Source column) only. Filter results refresh as characters are entered and will include rules that apply to multiple devices if any one of the devices matches the criteria.
Rules that apply to <Any Device> will never be filtered out. To disable filtering, clear the field.
Editing Rules from the List
The Event Rules list provides basic editing functions. A click on any parameter in the list opens a pull-down menu where you can edit the parameter value for the selected rule. A right-click on any parameter opens a context menu where you can add a New rule, Delete the selected rule, or set a Schedule for the selected rule.
Editing Rules from the Advanced Settings Form
You can also configure rule parameters using the Advanced Settings form on the lower half of the dialog.
Using the Event Rules Form
The form opens in the lower half of the Event Rules dialog when you select a rule in the list or when you click the Add button. Often it includes parameters that are not available in the Event Rules list.
Adding an Event Rule from the Form
- Click the Add button (or right-click an existing rule in the list and click New in the context menu). The form will open and a new line for the rule is added to the list.
- Select the Event to be monitored and the Action to execute when that event occurs. Each requires one or more of these parameters.
For Events
- When – Click on this field in the form (or the Event field in the list) to select from the menu of events.
- Starts or Stops – Events that can occur continuously, such as a motion on a camera, require a state definition of either Starts or Stops.
- Device(s) – Click on the at field in the form (or double-click the Source field in the list) to select one or more devices.
For Actions
- Do – Click on this field in the form (or the Action field in the list) to select from a menu of Actions.
- Device(s) – Click on the at field (or the Target field in the list) to select one or more devices that will execute the action. At least one device must be selected for a rule to be valid.
- User(s) – Click on the To field in the form (or the Target field in the list) to select one or more user roles as the recipient of the action. NOTE: At least one user must be selected for a rule to be valid.
- Schedule – Click this button to open a calendar for Setting up Schedule for Tracking Events.
- Comments – Enter any desired remarks.
- Interval of action and Fixed duration – Check this option to specify how long an action will last, typically in response to a continuous event. Enter the duration, in seconds; zero is not a valid entry, and depending on the action, there may be an upper limit to the duration.
Click Apply to accept changes and keep the dialog open. Click OK.
NOTE: If one or more rules are not correctly defined, you will get the error message: Some rules are not valid. Disable them?
- Click Yes to disable the invalid rules. Invalid rules will remain in the list but their On checkbox will not be checked.
- Click No to allow invalid rules to be active. The On checkbox will be checked and the rule will be highlighted in red.
In the Event Rule list, set or clear the On checkbox to enable or disable the rule.
IMPORTANT: Make sure notification for the event type is turned on in Global Notifications.
Selection Lists in Event Rules
Event rules use selection lists to choose devices and users. Selection and filtering behavior, described in the next topic, is consistent in both.
Continuous or Instant Events
Some events may be continuous, some can only be instant, and some may be either (Generic or Analytics Events).
- Continuous – Events that can occur continuously, such as motion on a camera, require a State definition of either Starts or Stops.
- Instant – These are events that occur instantly, without duration, such as a device being disconnected or a server starting. For Generic and Analytics events, instant events are labeled Occurs.
Instant, Interval, or Fixed Duration Actions
The following parameters are available for most Actions, depending on their intended behavior.
- Interval of action – Check this option to limit the frequency with which an Action will occur in response to an Event. Enter an integer value (1 - 999) in the No more than once per field, and select a corresponding time increment (sec, min, hrs, days). This feature is useful, for example, with an action such as show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
- Instant – Uncheck this option so the Action will execute every time the Event occurs.
- Fixed duration – Check this option to specify how long an Action will last, typically in response to a continuous Event. Enter the duration, in seconds; zero (0) is not a valid entry. Depending on the Action, there may be an upper limit to the duration.
Relevant Events
Generic Event
This occurs when the server receives an HTTP request from an external system such as an alarm system, access control device, or monitoring system. This is a default Event.
DW Spectrum allows third-party systems and devices to send an HTTP string known as a CreateEvent API call. The CreateEvent request must follow the proper format in order to be read by the server, and the Event fields in the rule must match the corresponding fields in the HTTP request to be acted upon. Full server API documentation is accessed on any installed server from
http:// <serveripaddress>:<servernetworkport>/static/api.xml.
NOTE: Values in the Event field are case-sensitive; an empty string functions as a wildcard, where any value is considered a match.
When a Generic Event is created in the DW Spectrum System, there are three basic parameters associated with each event; each HTTP request contains these three parameter data pieces: the source, caption, and description.
These three data events are searched and filtered by the DW System. This can be leveraged in the Bookmark Log (Ctrl-B) when bookmarks are created from Events, and when creating Event Rules (Ctrl-E).
Source
The source parameter of the Generic Event is the name of the device in the pdk.io system that generated the PDK io event.
Caption
The caption parameter of the Generic Event is determined by the corresponding pdk.io event type that was generated. This can be any of the following values:
PDK.io Event Type | DW Spectrum IPVMS Generic Event Caption | Description |
Open (DPS) | door.input.dps.opened | The door position sensor detected the door open. |
Close (DPS) | door.input.dps.closed | The door position sensor detected the door closed. |
AutoOpen Enabled | door.autoopen.on | Auto open became active on the device. |
AutoOpen Disabled | door.autoopen.off | Auto open became deactivated on the device. |
Door Propped Alarm | door.alarm.propped.on | The door propped alarm has triggered for the device. |
Door Propped Alarm Clear | door.alarm.propped.off | The door propped alarm has been cleared for the device. |
All Prop Clear | door.alarm.propped.alloff | All door propped alarms have been cleared. |
Door Forced Alarm | door.alarm.forced | The door forced alarm has triggered for the device. |
Communication Loss | endpoint.alarm.commloss.on | Communication to the connection has been lost. |
Communication Loss Clear | endpoint.alarm.commloss.off | Communication to the connection has been re-established. |
No Person Associated with Credentials | door.request.unknown | An unknown credential was scanned and access was implicitly denied. |
Access Allowed | door.request.allowed | A known credential was scanned and access was allowed. |
Access Denied | door.request.denied | A known credential was scanned and access was denied. |
Duress PIN Entered | door.request.duress | A duress PIN was used to authenticate at the reader. |
Request to Exit Open | door.input.rex.on | The request to exit was triggered on the door. |
Request to Exit Closed | door.input.rex.off | The request to exit was cleared on the door. |
Card Scan Error | error.card.parse | Bad data was received from the card reader connected to the door. |
Description
The description parameter of the Generic Event is the same text that is generated for the info text of the Live Events in pdk.io.
Generic Events created by pdk.io do not have the following parameters defined (Metadata and Occurs). These are parameters that are defined in DW Spectrum.
Metadata
Metadata, a DW Spectrum parameter, is used to pass a device identifier that will specify devices the event is limited to.
IMPORTANT: PDK does not define the Metadata parameter; the Force Acknowledgement option cannot be used when using the Show Notification Action as part of a rule Event.
Occurs
Occurs is a DW Spectrum parameter and is not defined in PDK.io. This is an optional field in DW Spectrum for the State. If there is no State field in the HTTP request, the Event is considered instant. All Generic Events created by pdk.io are considered instant Generic Events.
IMPORTANT: If a continuous action such as “device recording” or “repeat sound” is bound to an instant Generic Event (one without a State field) the rule will not work.
Soft Trigger
The Soft Trigger Event type adds a button to one or more devices in layout. When a user clicks on a Soft Trigger button, the associated action is triggered. The Event can be instant (when the button is clicked), or continuous (triggers as long as the button is held). Soft Trigger buttons appear as a circular overlay in the lower-right region of an item and will display the contents of the Name field when the mouse cursor hovers over it.
For example, a Soft Trigger button can be created to start and stop a Bookmark recording when an operator sees suspicious activity. It can also be a panic button that starts a siren when an emergency situation is detected.
In addition to making it possible for a user to initiate an action from layout, a Soft Trigger that has a Perform HTTP Request action makes it possible to integrate third-party systems and devices, and to bundle multiple actions within an event.
For example, a Soft Trigger can be created with an HTTP request to a third-party device that initiates one or more of the actions the device is capable of, such as "if temperature that exceeds 110°F is detected, close door."
Basic Parameters
- at – Click in this field to select the device(s) that will have the Soft Trigger button. Note that if you choose to, the button will be placed on offline devices as well.
- Available to – Click in this field to select the users or user roles that are allowed to use the Trigger.
IMPORTANT: To be able to trigger an event on a device, the user or user role must have input permission on the device. If they do not, the following warning appears.
- Name – Enter a brief description of the event that will be triggered. Contents of this field are displayed on the layout when the mouse cursor hovers over the button.
- Icon – Select from the menu of available icons.
Available Actions
The reaction to an Event is an Action. Each Action has its own parameters. The common parameters Interval of action, Instant, and Fixed duration are described here.
- Interval of action – Check this box to limit the frequency with which an action will occur in response to an event. Enter an integer value (1 - 999) in the No more than once per field, and select a corresponding time increment (sec, min, hrs, days). This feature is useful, for example, with an action like show notification where the triggering event may be continuous but it is only necessary to be notified periodically. If unchecked, the action is instant and will occur whenever the event is triggered.
- Instant – These are events that occur instantly, without duration, such as a device being disconnected or a server starting. For Generic and Analytics events, instant events are labeled Occurs. By unchecking this option, the Action will execute every time the Event occurs.
- Fixed duration – The duration of the Bookmark. Applies to continuous events only (those with Starts and Stops attributes). It can be unchecked for continuous events such as motion on a camera, an input signal on a device, etc. If not checked, the Bookmark will continue until the event ends. Check this option to specify how long an Action will last, typically in response to a continuous Event. Enter the duration, in seconds; zero (0) is not a valid entry. Depending on the Action, there may be an upper limit to the duration.
Bookmark
Creates a Bookmark in the archive of one or more cameras when an event occurs.
NOTE: Recording must be enabled on the selected cameras for Bookmarks to be saved. A Bookmark is automatically named with this syntax: <Event> on <Device>
Basic Parameters
- at – Camera(s) for which Bookmarks will be recorded. To specify cameras see Selection Lists in Event Rules. At least one device must be selected.
Advanced Parameters
- Fixed duration – The duration of the Bookmark. Applies to continuous events only (those with Starts and Stops attributes). It can be unchecked for continuous events such as motion on camera, an input signal on a device, etc. If not checked, the Bookmark will continue until the event ends.
- Pre-Recording – If checked, used to specify an amount of time to include in the Bookmark before the event occurs.
- Post-Recording – If checked, used to specify an amount of time to include in the Bookmark after the event occurs.
- Tags – Optional descriptors that can be added to help identify and search for Bookmarks.
May be caused by
- All Events
- Notifications with Force Acknowledgment enabled will create the Bookmark when an acknowledgment is complete.
Why Action may work incorrectly
- Recording is not enabled on a selected camera.
- The event is not configured properly.
Device Output
Generates output on a device when an event occurs, starts, or stops.
IMPORTANT: Output must be supported on the selected devices.
Basic Parameters
- at – Device(s) on which output will be triggered. To specify devices see Selection Lists in Event Rules. At least one device must be selected.
NOTE: A warning notification will open if one or more of the selected devices does not have an output relay. These devices will be highlighted in red.
Advanced Parameters
Output ID – The I/O Module port ID to route the signal to.
May be caused by
- Any Event
- Generic Event
- Soft Trigger
- Input Signal on Device - Synchronous output. Output stops when motion or input stops.
Why Action may work incorrectly
- Output is not supported on some devices.
- The event is not configured properly.
Device Recording
Starts recording on selected cameras when the event occurs.
Basic Parameters
- at – Devices to record. To specify cameras see Selection Lists in Event Rules. At least one device must be selected.
- Click on the at field to open the Select Devices dialog.
- Optionally, use the filter field to locate cameras.
- Check specific cameras to record, or select all cameras on a server by checking the corresponding box. (It is also possible to drag-and-drop the selected cameras from the Resource Tree into this field.
- Click OK.
IMPORTANT: At least one camera must be selected, and recording must be enabled on the selected cameras for this rule to be functional.
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time, or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action such as show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
Advanced Parameters
- Quality – Select the desired recording parameter for these options: Lowest, Low, Medium, High, Best.
- FPS – Enter a value for frames per second (up to 30). The camera's maximum FPS will be used if the FPS value entered exceeds the camera's capability.
Select one of the following:
- Post-recording – For continuous events (those with Starts and Stops attributes), you can enter the number of seconds that recording will continue after the triggering event.
or
- Fixed duration – Records for a specified amount of time in seconds when the event occurs.
May be caused by:
Why Action may work incorrectly
- The recording is not enabled on the camera.
- Event is not configured properly
Do HTTP Request
A Do HTTP Request is an Action that would be done when creating a rule event in DW Spectrum in order to send a command to PDK io. The Do HTTP Request sends an HTTP request to a targeted external device or system (a floodlight switch, access control trigger, or an alarm system, for example) which can then be used in those devices or systems to trigger additional actions. The request must follow the proper format in order to be read by the receiving device.
This action generates an HTTP GET, POST, PUT, or DELETE request in response to any event triggered in DW Spectrum. Together with the Generic Event, which can receive an HTTP request as an event, a bi-directional API communication can be created between DW Spectrum and PDK io.
For example, a manufacturer has a restricted area with an ACS card reader at the entry point and cameras that monitor the area surrounding the entry point. DW Spectrum has a standard rule to send a notification when abnormal duration motion is detected in the entry area. If someone tampers with the card reader in an unauthorized attempt to enter the restricted area, DW Spectrum triggers one action to notify the surveillance center that motion is detected in the area, and a second HTTP request action to the manufacturer's call center server, which in turn runs a security procedure to activate an alarm and generate a phone call to the factory floor security personnel.
Example
http://123.12.8.1:7001/api.clickandcall.com/http/sendmsg?user=WitnessVMS&password=123456& api_id=3612726$MO=1&from15554567890&to=15551234567$text=Visitor+is+outside+front+door
This example sends an API request to the clickandcall system to send an SMS message to the specified phone number (15551234567 in the example above). It could be coupled, for example, with a Generic Event that can trigger a third-party device to unlock the front door. Refer to the example above for use of each of the following parameters.
- sendmsg – Sends data to a server at IP Address 123.12.8.1 port 7001
- user and password – Credentials required by the receiver to allow the request access to their system
- api_id – Required account number with receiving entity
- from – Phone number from which the message will be sent
- to – Phone number to which the message is sent
- text – The message text, in this case, "Visitor is outside front door"
Basic Parameters
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered.
- HTTP URL – The HTTP link to the external system that will receive the request. It can also contain the request itself.
- HTTP content – The body of the HTTP request, if needed
- Login and Password – If required by the external system, enter credentials for authentication
- Content type – Enter the body of the request. Select from Auto, text/plain, text/html, application/html, application/json, or application/xml format according to the requirements of the receiving system. Auto selects the best format based on your entry.
- Authentication type – Level of authentication required (Auto or Basic)
- Request type – Type of request (Auto, GET, POST, PUT or DELETE)
Why the Action may work incorrectly
- The event is not configured properly.
- HTTP request syntax is incorrect or does not meet receiver requirements.
- The external system requires authorization; no credentials or incorrect credentials were specified.
Execute PTZ Preset
Activates a PTZ (Pan, Tilt, Zoom) Preset on a specific camera. PTZ Tours cannot be activated by an event.
IMPORTANT: At least one PTZ position must be defined on the selected camera for this action to be valid.
Basic Parameters
- at – Select one camera on which to activate preset.
Advanced Parameters
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered.
- PTZ Preset – Choose from the PTZ (Pan, Tilt, Zoom) presets defined for the selected camera. If no presets are configured, the menu will be empty.
May be caused by
- All events.
Why Action may work incorrectly
- The event is not configured properly.
- Interval of action is too long, try "instant".
Panic Recording
Triggers Panic Recording mode when the event occurs. Panic Recording switches recording settings for all cameras to maximum FPS and highest possible quality.
NOTE: If the recording is not enabled for a camera, Panic Recording cannot be activated.
Basic Parameters
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action like show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
Advanced Parameters
- None
Why Action may work incorrectly
- The event is not configured properly. See the event description for details.
Play Sound
It plays a sound when the event occurs.
Basic Parameters
- at – Device to play the sound on. (The device should support 2-way audio.)
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action like show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
- Play to users – If checked, the sound will be played in the client application of the selected users. From the drop-down menu, select a sound from the available options.
IMPORTANT: Either Play to user or a camera for 2-way audio (at) must be enabled for this rule to be valid.
Advanced Parameters
- Manage – Click to open the Notification Sounds dialog where the library of available sounds can be customized by adding, renaming, or deleting sounds.
To add a sound:
- Click Add... and select the desired audio file. WAV, MP3, OGG, and WMA formats are supported.
- Use Clip sound up to to set the duration of the audio file, in seconds.
- Choose Custom Title to name the selected sound. If not specified, the file name will be used by default.
- To rename the selected sound, click Rename and enter a new title.
- To test the sample, click Play.
- To delete the sample, click Delete.
- Click OK.
May be caused by
- All events
Why Action may work incorrectly
- The event is not configured properly.
- Sound is muted. Open any item in layout and check if the sound is muted. Volume settings are applied globally.
- Too long interval of action is set. Try "instant".
- Neither Play to the user or a camera for two-way audio is checked.
Repeat Sound
It plays a sound repeatedly when an event occurs. (Note that if the user closes the notification, the sound will stop playing even if the event continues.)
Basic Parameters
- at – Device on which to play the sound. (The device should support 2-way audio.)
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time, or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered.
- Play to users – If checked, the sound will be played in the client application of the selected users. Those users are sent a special notification in the Notification Panel. Note that if the user closes the notification, the sound will stop playing even if the event continues.
From the Sounds drop-down menu, select a sound from the available options.
IMPORTANT: Either Play to user or a camera for two-way audio ("at") must be enabled for this rule to be valid.
Advanced Parameters
- Manage – Click to open the Notification Sounds dialog where you can customize the library of available sounds by adding, renaming, or deleting sounds.
To add a sound:
- Click Add... and select the desired audio file. (WAV, MP3, OGG, and WMA formats are supported.)
- Use Clip sound up to to set the duration the audio file will be played, in seconds.
- Choose Custom Title to name the selected sound. If not specified, the file name will be used by default.
- To rename the selected sound, click Rename and enter a new title.
- To test the sample, click Play.
- To delete the sample, click Delete.
- Click OK.
May be caused by
Why Action may work incorrectly
- The event is not configured properly.
- Sound is muted. Open any item in the layout and check if the sound is muted. Volume settings are applied globally.
- Too long interval of action is set. Try "instant".
- Neither Play to user or camera for 2-way audio is checked.
Send Email
Sends email to one or more users, or to additional email addresses, when an event occurs. An email server must be configured for DW Spectrum to send emails (see Configuring Mail Server for Email Notifications) and the users must have a valid email address in the DW Spectrum System.
Basic Parameters
Users the email should be sent to:
Use the Search field to filter names.
Advanced Parameters
- Additional Recipients – Additional email addresses to send notifications. Use a semicolon ( ; ) to separate multiple addresses (no spaces).
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action such as show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
- Global Email Settings... – Click to configure email server parameters.
Why Action may work incorrectly
- Email Server is not Configured - A notification is generated in this case. See Configuring Mail Server for Email Notifications for more details.
- Email is not Set for Users - A notification is generated in this case.
- The event is not configured properly.
- The Interval of action is set too long.
Configuring Mail Server for Email Notifications
An email server must be configured for the System to be able to send emails. DW Spectrum can automatically provide server settings for certain email carriers, in which case you can enter just basic information using the simple entry form. If your email carrier is not recognized (warning message: "No preset found. Use 'Advanced' option"), you will need to enter the required settings manually using the Advanced entry form.
Simple Outgoing Email Settings
- Open Main Menu > System Administration (shortcut Ctrl+Alt+A) > Email tab.
- If advanced settings (see Advanced Outgoing Email Settings) are properly configured you can simply enter the following:
- Email – Email address to use for outgoing mail
- Password – Password for the outgoing email account
- System Signature – User-defined System description that will identify the System in outbound emails
- Support Signature – Support website for the DW Spectrum installation
Click the Test button to confirm all settings are valid. If the test fails, use the Advanced form to configure the server manually. Possible failure results:
- Cannot test such parameters – The domain name is not supported.
- No preset found – Email and/or password is invalid.
If the test is successful, click Apply to accept or OK to save and close.
Advanced Outgoing Email Settings
Check Advanced settings in Main Menu > System Administration (shortcut Ctrl+Alt+A) > Email tab.
Enter the following:
- Email – Email address to use for outgoing mail
- SMTP Server – Email server address
- User – Email address of person entering the information
- Password – Password for the user email account
- System Signature – User-defined System description that will identify the System in outbound emails
- Support Signature – Support website for the DW Spectrum installation
- Port – SMTP port. Select Auto, 25, 465, or 587
- Connection type – Select Secure connection using TLS, Secure connection using SSL, or Unsecure connection.
Click Test to confirm all settings are valid. If the test fails:
- Try a different connection type
- Try a different SMTP port
If the test is successful, click Apply to accept or OK to save and close.
NOTE: Even when Advanced settings are properly configured and emails are working as desired, the simple entry form may display an error.
Show Notification
Sends a notification to the selected user(s).
Basic Parameters
- Users – Select users who will see the notification.
Advanced Parameters
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered.
- Force Acknowledgment – Prompts the recipient to acknowledge the notification. When checked, a notification will remain in the Notification Panel until the recipient responds by clicking the Acknowledge button. Hovering over the Acknowledge button opens a thumbnail that shows the device name and timestamp of the event. Clicking the Acknowledge button opens a Bookmark form.
The Name field is pre-populated with an event description but may be edited. A Description is required, Tags are optional.
Click OK.
Why Action may work incorrectly
- Some notifications are disabled.
- The event is not configured properly.
- Interval of action is too long. Reduce length or try "instant".
- Global notification for this event is disabled.
Show on Alarm Layout
DW Spectrum provides the ability to dynamically create Alarm Layouts. An Alarm Layout opens certain cameras when a specific event occurs, with a special Alarm title and icon.
For example, a rule can be configured as follows:
- If motion occurs on cameras 1 or 2, open cameras 2, 3, and 4 in an Alarm Layout.
Basic Parameters
Camera(s) to show on Alarm Layout. To specify:
Click on Select at least one camera in the at field on the Alarm/Event Rules form.
Check the cameras to display. Click OK.
To select all cameras on a specific server, check the corresponding box. To filter search, use the Filter field. Filter criteria are the same as the search criteria. It is possible to drag-and-drop the selected cameras from Resource Tree onto the action's advanced settings form.
Advanced Parameters
- Interval of action – Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action such as show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
- Users to show alarm to – It is possible to show the Alarm Layout only to certain users. If several events are configured to show different cameras on Alarm Layout for the same user, the corresponding cameras will be added upon the Event occurrence. If several Events are configured to show different cameras on Alarm Layout for different users, each user will see the separate Alarm Layout.
- Force Alarm Layout opening – If checked, when Event occurs, Alarm Layout will show up immediately. If not, the Alarm Layout will be created, but the user will still be watching the current layout and will be able to switch to Alarm Layout.
- Also show source camera – Available only if Event is bound to cameras. If checked, when Event occurs Alarm Layout will contain the camera that created the Event.
For example, if a rule is set up to show cameras 2 and 3 and motion occurs on Camera 1, Alarm Layout will contain cameras 1, 2 and 3. If unchecked, it will contain only cameras 2 and 3.
Why Action may work incorrectly
- Alarm Layout is not showing to a certain user
- The event is not configured properly. See the Event description for details
- Interval of action is set too long. Try "instant".
Show Text Overlay
Displays text overlay on specific cameras when an event occurs.
Basic Parameters
Camera(s) to display text overlay on. To specify:
- Click on Select at least one camera in the desired row on the Alarm/Event Rules form.
- Check the cameras to display. Click OK.
To select all cameras on a specific server, check the corresponding box. To filter search, use the Filter field. Filter criteria are the same as search criteria. It is possible to drag-and-drop the selected cameras from Resource Tree onto the Action’s advanced settings form.
Advanced Parameters
- Also show on source camera – Available only if the event is bound to cameras. If checked, when an event occurs, the text will be displayed on the source camera too.
For example, if a rule is set up to show cameras 2 and 3 and an event occurs on camera 1, the text will display on all 3 cameras. If unchecked, it will display only on cameras 2 and 3.
- Display text for ... Seconds – If checked, the text will be visible for the specified amount of time. It can be unchecked for the following continuous events: Motion on Camera, Input Signal on Device, or Generic Event. If unchecked, the text will be displayed until the event stops.
For example, the text will be displayed on a specific camera while the motion is going on.
- Use custom text – If not specified, the event description will be used.
Why Action may work incorrectly
The event is not configured properly. See the Event description for details.
Speak
Pronounces specific text when an event occurs.
Basic Parameters
- Speak the following – Enter the text to be pronounced.
- at – Camera to pronounce the text on. The camera should support 2-Way Audio.
- Speak to users – If checked, the text will be pronounced to the selected users in the Client application.
IMPORTANT: Either Speak to users should be checked, or at least one camera should be selected for two-way audio, otherwise the rule will be invalid.
Advanced Parameters
- Interval of action - Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action such as show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
May be caused by
- All Events
Why Action may work incorrectly
- The event is not configured properly. See the Event description for details.
- Sound is muted. Open any item in layout and check if the sound is muted. Volume settings are applied globally.
- Interval of action is set too long. Try "instant" instead.
- Either Play to user should be checked or camera for two-way audio should be selected.
Write to Log
Writes a record to the event log when an event occurs. By default, all events mentioned in rules are written to the log; however, if all notifications are turned off, you can use the Write to Log action for a specific event.
Advanced Parameters
- Interval of action - Check this option to aggregate the number of times the action will be triggered. For No more than once per a given amount of time or instance, enter an integer value (1 - 999) and select a time interval from the menu (seconds, minutes, hours, or days). If unchecked, the action is instant and will occur whenever the event is triggered. This feature is useful, for example, with an action such as show notification where the triggering event may be continuous but it is only necessary to be notified periodically.
May be caused by
- All Events
Why Action may work incorrectly
- Event is not configured properly
- Interval of action is set too long. Try "instant" instead.
Other Spectrum Settings
Notification of a particular event type or System alert can be turned on or off globally. The notification setting does not affect Event detection or Action execution, just whether or not notifications are sent to the Notification Panel.
To Show or Hide Notifications
- Click Main Menu and go to Local Settings > Notifications or click the button on the Notifications panel (on the right).
- In the Notification panel, check Show all notifications so that all events will display, or select the individual notification types to be displayed.
- Click Apply to accept changes and keep the dialog open. Click OK to save and close.
Event Scheduling
By default, event monitoring is active 24 hours a day, 7 days a week. If you only want to monitor for an event at certain times, you can assign a schedule for the event. Note that System-generated events cannot be placed on a schedule since they should always be on.
NOTE: It is possible to disable a rule entirely by unchecking the On box in the Event Rules list.
To Set a Schedule for an Event
When an event is editable (because it is new or it is selected in the Event Rules list), click the Schedule button to open the Schedule dialog.
Click the On or Off button to determine monitoring behavior in specific one-hour cells.
NOTE: The 0 column in this 24-hour calendar represents Midnight to 1:00 AM.
- Click on a cell to apply the selected schedule setting to that particular time cell, or use these shortcuts to apply a schedule to multiple cells:
- Click-and-drag to select multiple cells.
- Click an hour heading to select that hour’s entire column.
- Click a day of the week to select that day’s entire row.
- Click All to select all cells.
NOTE: The above example shows an event that will be tracked on Monday through Friday from 7 AM to 6 PM.
Click OK.
Configuring Mail Server for Email Notifications
An email server must be configured for the System to be able to send emails. DW Spectrum can automatically provide server settings for certain email carriers, in which case you can enter just basic information using the simple entry form. If your email carrier is not recognized (warning message: "No preset found. Use 'Advanced' option"), you will need to enter the required settings manually using the Advanced entry form.
Simple Outgoing Email Settings
Open Main Menu > System Administration (shortcut Ctrl+Alt+A) > Email tab.
If Advanced Settings are properly configured you can simply enter the following:
- Email – Email address to use for outgoing mail
- Password – Password for the outgoing email account
- System Signature – User-defined System description that will identify the System in outbound emails
- Support Signature – Support website for the DW Spectrum installation
Click the Test button to confirm all settings are valid. If the test fails, use the Advanced form to configure the server manually. Possible failure results:
- Cannot test such parameters – The domain name is not supported
- No preset found – Email and/or password is invalid
If the test is successful, click Apply to accept or OK to save and close.
Advanced Outgoing Email Settings
Check Advanced Settings in Main Menu > System Administration (shortcut Ctrl+Alt+A) > Email tab.
Enter the following:
- Email – Email address to use for outgoing mail
- SMTP Server – Email server address
- User – Email of person entering the information
- Password – Password for the user email account
- System Signature – User-defined System description that will identify the System in outbound emails
- Support Signature – Support website for the DW Spectrum installation
- Port – SMTP port. Choose Auto, 25, 465, or 587
- Connection type – Choose Secure connection using TLS, Secure connection using SSL, or Unsecure connection
Click Test to confirm all settings are valid. If the test fails:
- Try a different connection type
- Try a different SMTP port
If the test is successful, click Apply to accept or OK to save and close.
NOTE: Even when Advanced settings are properly configured and emails are working as desired, the simple entry form may display an error.
Selection Lists in Event Rules
Selecting Devices
For Events, choose the device(s) that will trigger the rule. If no devices are selected (shown as <Any Device>), the rule will apply to all devices.
For Actions, choose the device(s) that will respond to the event. At least one device must be selected for a rule to be valid.
- Drag-and-drop devices from the Resource Tree into the at field.
- Alternately, use the Select Devices dialog which lists all servers in the System, and all devices attached to them.
- Click in the at field in the Advanced Settings form to open the Select Devices dialog.
- Check the desired individual devices, or click a server's check box to select all devices on that server.
- Optionally, use the Filter field to search for specific devices. All device parameter values (name, firmware, vendor, etc.) are searched. The results update immediately as characters are entered in the field.
- Click OK.
Selecting Users
For Events, choose the user(s) the event will be available to. At least one user must be selected for a rule to be valid.
For Actions, choose the user(s) who will be recipients of the action. At least one user must be selected for a rule to be valid.
Use the Select Users dialog to select one or more users.
- Click on the To field (alternately labeled For, Available to, Play to users, or Speak to users) in the Advanced settings form to open the Select Users dialog.
- Check one or more User Roles, or check All users to open a list of all individuals active in the System.
- To see individual user names, enable Show all users (green) and check the desired individuals.
- Use the Search field to locate user names or roles that contain the characters entered. Filter results refresh as characters are entered.
Technical Support
Should you require any technical assistance, please contact our knowledgeable ProdataKey Support staff. Your support queries covering hardware, software installation, trouble tickets, troubleshooting, return merchandise authorization (RMA), or any other questions are addressed as immediately as possible.
Support:
- Phone: 801.317.8802 option #2 or direct at: 801.206.4086
- Email: support@prodatakey.com
- Direct Dealer Support Line: 801.206.4086
ProdataKey, LLC - 67 West 13490 South, Draper, Utah 84020 United States
Copyright
© 2021 ProdataKey, LLC. All rights reserved. ProdataKey, the ProdataKey logo, and other ProdataKey marks are owned by ProdataKey, LLC and may be registered. All other trademarks are the property of their respective owners. ProdataKey assumes no responsibility for any errors that may appear in this manual. Information contained herein is subject to change without notice.
NVR Digital Watchdog Integration Tool
© 2021 ProdataKey, LLC.
Ver: 20191108
Doc No. NVR-IM-001
Comments
0 comments
Please sign in to leave a comment.