Creating an Automated HTTP Request in IP Cameras

Creating an Automated HTTP Request in IP Cameras

This guide will outline how CHeKT Portal Users can use the "HTTP Request" option in the CHeKT Automation Rule programming menu to activate camera functions such as relays or lights. 

Automation Rules Require the CHeKT Professional Dealer Plan: https://support.chekt.com/portal/en/kb/articles/automation-rules

This should work for any camera that can take local API Requests, but the user will need to have the correct URL available. The example below is a CHeKT camera. We have that URL and other verified examples listed here: https://support.chekt.com/portal/en/kb/articles/list-of-known-and-tested-http-commands-for-camera-functions

Setting up the Rule:

In the Dealer Portal configuration menu for automation rules, start by selecting your Source Event. This is the event that will initiate the API Request. We will use Arming Change as our source event for the example. The Site Armed will cause the rule to take place when the state of the system is changed to armed:

For Action, Select HTTP Request:
 

In the expanded menu, you will need to select the type of request, enter the correct URL for the API request and the required login credential:



This example is from a CHeKT AI Series Bullet. The command  http://xxx.xxx.xxx/cgi-bin/admin/io.cgi?msubmenu=relay&action=apply&idlestate=0 will close the relay on the camera. The method and URL request may be different depending on the brand/model you are working with. Ensure you verify these details with the camera manufacturer or support team.

Choose a conditional filter if applicable. 



Armed Status is not a filter option as the arming change is already selected as our initial source event
We will use no Operational Condition for our example:

Name your rule and add any additional helpful notes for your other Dealer Portal Users:



And click next:


Testing the Rule

When the source event is activated, that HTTP request should go out to the defined IP address automatically. You can see the record of the request in the site activity logs:




For each instance of your Source Event in the logs, you should see an HTTP Request.

In our example, arming was our source event. You can see the log of the HTTP request and success after the arming:


The log items can be expanded for more granular details. 

In the request line, you can see the API request details:


For your test, you are looking for the success message:


In the event the request comes back with a failure:
  1. Ensure the bridge has local area network access to the IP range of the target camera
  2. Check the validity for the HTTP URL
  3. Ensure the correct security method has been selected
  4. Verify the presented authentication credentials are valid 


With our CHeKT Camera Example:

  1. When our Arm Request is successful and the state is changed to 0 (Closed) the DO+ and DO - terminals will have continuity. 
  2. When our disarm Request is successful and the state is changed to 1 (open) the DO+ and DO - terminals will not have continuity.



This state-change can be manually toggled in the camera for troubleshooting in the "Trigger Actions" menu:



When the HTTP command from the bridge is working correctly, users will see the state change on this page between opened and closed as the associated Source Event is executed. 





    • Related Articles

    • List of known and Tested HTTP Commands for Camera Functions

      Dealers can use CHeKT Automation Rules to create web requests on local devices out the the field. The chart below lists HTTP URLs that have been verified to work with the listed model. If you are looking for a CHeKT Camera URL request that is not ...
    • OPTEX InSight Cameras

      OPTEX InSight Cameras The Optex InSight series are the new members of the OPTEX sensor family of outdoor detection. By combining the dual-tech sensors of an OPTEX sensor and a full HD 1080 camera, you now have a powerful Visual Verification PIR ...
    • Adding an IP User to a Dealer Account

      Authorized users have the option of adding an "IP user" account in their Dealer Portal. An IP user will allow access to the Dealer and Monitoring Portals without a username and password to connections sourced from the listed Public Domain.  Adding an ...
    • CHeKT Pro AI Camera Series - Analytics Manual

      The latest licenced plug-in is a set of analytical tools loaded on our cameras that provides the means to perform advanced analytics, reduce false alerts and customize when events occur. This article will describe how to enable and configure the ...
    • Mounting LTS Recorders and IP Cameras

      The LTS brand of IP cameras and HD over Coax Recorders support the ONVIF protocol and work with the CHeKT Bridge, However, there are a couple of settings that must be changed before attempting to mount the DVR Channels or IP Cameras. Once these steps ...