Applies to: SPS-A100M
Summary
This article describes how to configure LED commands using the Hanwha SPS-A100M Audio Beacon API.
Creating LED Presets
To create LED presets:
- Log in to Audio Beacon web interface.
- Select Settings > Event > LED Preset > Add.
- Enter the Name for the LED preset.
- Under Initial action, select the initial action Mode, Color, and Duration.
- Under Post-duration action, select the Mode and Color. In the example, a Blue Constant Preset is configured for ten seconds, followed by the LED turning off.
- Click OK.
API Script
Upon completion of file uploads, the files are recognized in the SUNAPI API as Index numbers (1-5) in the top-to-bottom order they appear in the list. The API script format is in HTTP/HTTPS format and as follows:
http://<IP-ADDRESS>/stw-cgi/eventrules.cgi?msubmenu=ledpreset&action=control&LEDPresetIndex=1
In the script, replace <IP ADDRESS> with the address of the Audio Beacon. The Index number is the LED Preset number to be played.
To test this command, copy/paste into a web browser.
Using the API Command in BLAZE
To create an HTTP(S) command in BLAZE:
- Log in to BLAZE.
- Navigate to Settings > Rules > Add rule.
- Click + Add action, and select Send HTTP request.
- For the URL, select GET and enter the string.
For example: http://192.168.254.107/stw-cgi/eventrules.cgi?msubmenu=ledpreset&action=control&LEDPresetIndex=1
In the example, a soft trigger is created on a camera that will trigger LED Preset 1.
- Select the authentication method. In the example, Digest Authentication is being used, and the device’s credentials have been supplied.
Using the API Command in WAVE
To create an HTTP(S) command in WAVE:
- Log in to WAVE.
- Navigate to System Administration > Event Rules > Add new rule. In the example, a soft trigger is created on a camera that will trigger the LED.
When: Soft Trigger
At: Select the camera
Name: Name the Event
Icon: Select icon to be displayed on the camera
Action: Do HTTP(S) request
Interval: Select interval of time event is not to repeat
HTTP(S) URL: Paste the script
Login/PW: Credentials of the Audio Beacon
- Click Apply.
- Open the camera and engage the soft trigger to test.