Execute a Program


Note

The option Execute a Program is an interface for configurable command-line operations. This option requires advanced programming skills! Please consult an expert if necessary.

By selecting the option Execute a Program (e.g. SMS, Twitter, Modbus address, ...), you have the option of executing a configurable command-line operation for each alarm event. In the following we have selected an example that sends a message via X (Twitter).


If the alarm management should publish notifications on X (Twitter), proceed as follows:

  1. Create X (Twitter) account.

  2. Download twt file.

  3. Unpack twt file to c:\Programme\twt.

  4. Configure twt (twt -config). Here, a window in the browser will open.

  5. Configure the alarm plan with the action Execute a Program.



  • After selecting the option Execute a Program in the first step of the window New Action click on the button Continue.

  • In the window New Action the second step, Enter Command Line and Working Directory, will appear.


images/download/attachments/251037130/AM_NeuenAlarmplan_AeP_01_EN-version-1-modificationdate-1518776797000-api-v2.png

  • For a Twitter message, configure the entry fields Command Line, Parameter and Working Directory as depicted.

  • Click on the button Continue.

  • In the window New Action the third step, Title and Description, will appear.


images/download/attachments/251037130/AM_NeuenAlarmplan_AeP_02_EN-version-1-modificationdate-1518776838000-api-v2.png


  • Enter into the entry field Title the title of the program and into the entry field Description a description of the program.

  • Click on the button Done.


images/download/attachments/251037130/AM_NeuenAlarmplan_AeP_03_EN-version-1-modificationdate-1518776869000-api-v2.png


In the dialog box Create New Alarm Configuration under Actions to be Executed, the previously entered title will appear with the 3 buttons:

1

Edit

Click on the button to edit the action Execute a Program anew.

2

Copy

Click on the button to copy the settings of your action Execute a Program to the cache.

The settings of your action Execute a Program in the cache can be added to new actions by clicking on Copy again.

3

Delete

Single-clicking on the button Delete deletes the action.

4

images/download/attachments/251037130/plus-version-1-modificationdate-1517402591000-api-v2.png

Single-clicking on the button creates a new action.

5

images/download/attachments/251037130/kopierteAktion-version-1-modificationdate-1517402591000-api-v2.png

Single-clicking on the button inserts new actions from the cache.

Note

The above-described Actions to be Executed can be configured for each alarm event (4 tabs).

  • Click on the button Continue.

  • In the window New Alarm Plan Configuration, the second step, Title and Description (for the alarm plan in the alarm plan overview), will appear.



images/download/attachments/251037130/AM_NeuenAlarmplan_AeP_04_EN-version-1-modificationdate-1518776911000-api-v2.png


  • Enter into the entry field Title the title of your alarm plan (appears as Name in the alarm plan overview).

  • Enter into the entry field Description the description of your alarm plan (appears as Description in the alarm plan overview).

  • Then, finally click on the button Done.


images/download/attachments/251037130/AM_NeuenAlarmplan_AeP_05_EN-version-1-modificationdate-1518776987000-api-v2.png


  • In the window (Alarm) Configuration (alarm plan overview), the alarm plan you created will appear in the list, ready to be connected with an alarm source (cf. Alarm Sources ).


images/download/attachments/251037130/AM_NeuenAlarmplan_AeP_06_EN-version-1-modificationdate-1518777022000-api-v2.png