Looking for suggestions regarding a button in Milestone Smart Client (or otherwise easily accessible from all Milestone viewing devices) that will either directly trigger an IP Relay or will send an HTTP Command to a web-based relay.
Site has a Milestone XProtect VMS, as well as an Alarm Lock access control system. Site recently had a gate installed on the property that is now triggered from the Alarm Lock long-range reader. Would like to add a virtual button that allows anyone with camera view of the gate and proper permissions to open the gate from Milestone Smart Client (or as easy as using Smart Client).
Original intent was to utilize a Web-Based IP Relay with an HTTP command, but after a discussion with Milestone Support found that Milestone is incapable of adding a button trigger HTTP commands in Smart Client.
I see two ways of solving it, let me explain both:
In the Smart Client there is functionality to put a button on a camera view. You can in this way have a user-defined event as a button. The user-defined event can be used in a rule to trigger an action. What I propose is that you develop an action to send the HTTP command.
We have a sample for such an action but doing something different: BatAction sample.
https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/bataction/readme.html&tree=tree_1.html
There is a more direct approach. You can develop a button that can send the HTTP command directly from a Smart Client plugin. The ActiveElements plugin sample shows how to make such a button.
https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/activeelementsoverlay/readme.html&tree=tree_1.html