Executing batch file or script via soft trigger

Answered

Comments

3 comments

  • Avatar
    Andrey Terentyev

    Hello Tuli Dem,

    You could place your script on an external HTTP server and configure the "Do HTTP request" action with parameters for the "Soft Trigger" event.

    In this way, clicking a Soft Trigger icon will cause an HTTP request to be sent to your script on an external server, which in turn will trigger power cycle

    0
    Comment actions Permalink
  • Avatar
    Tuli Dem

    Hi Andrey,

    I want the batch file to execute on the NX server. Is there a simpler way to do this without setting up IIS on the server?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi,

    You could install any HTTP server, which supports your script execution, on the NX server. If IIS is your choice, that's fine.

    At the moment, there is no possibility to execute a script inside the NX server process.

    However, I could offer you a workaround.

    You could create an analytics plugin, which won't do any video processing and analysis, but instead will listen for commands sent via HTTP on a certain TCP port.

    Your "Do HTTP request" will send commands to the plugin via HTTP, the plugin will run a script, which in turn will trigger power cycles.

    You can start with sample_analytics_plugin of the Metadata SDK.

    Here is the manual.

    https://support.networkoptix.com/hc/en-us/sections/360010787254-How-to-Create-a-Video-Analytics-Plugin

    0
    Comment actions Permalink

Please sign in to leave a comment.