Publish
MIKE OPERATIONS – Publish¶
The Publish ribbon tab displays either the Alert Mail or Alert SMS windows for sending alerts.
Mail and SMS messages will automatically be generated according the alert setup and the current selection.
The following parameters will change the generated message:
Item | Description |
---|---|
Current Date/Time The Current Date/Time is shown as a red line in the Chart Control and on the maps time slider. Change the current date by clicking on the chart or by moving the time slider of the map. |
|
Time Series Evaluation Period The Time Series Evaluation Period of the observation period specifies the period used for instantaneous time series and for accumulated time series when calculating the current threshold level for points, lines or polygons. |
|
Active Threshold Time Series For each dynamic feature layer, the active threshold time series must be set so that the current threshold level can be determined. Click on the caption button of the ribbon group of where the button of the feature type is placed. Select the threshold time series of the dynamic feature layer (feature type). By default, the first time series definition of the feature type is used for threshold calculation. |
|
Selected Thresholds When opening the mail and SMS alert windows, thresholds selected in the threshold setup is selected by default. Click on the check box to select or deselect thresholds. |
After changing parameters, click on the Generate button to create the new mail or SMS message.
Messages can be changed manually after generation.
Send Mail¶
MIKE OPERATIONS can be configured to send email messages.
Select the recipients in the contacts window.
Click on the Send button to send the mail or SMS message.
Publish using SMS¶
As with mails, MIKE OPERATIONS can be configured to send SMS messages.
When MIKE OPERATIONS has been configured to send SMS messages, the user interface can be used to send alert mails.
In order to send SMS messages, a SMS Service Provider (SMS Gateway Provider) must be selected.
An SMS service provider is a business entity that provides SMS messaging services but is not a mobile network operator. It acts as a middleman between mobile network operators and SMS service users. An SMS service provider signs agreements with many mobile network operators to obtain their permission to exchange SMS messages with their mobile networks, offering an interface for users to send and receive SMS messages
When an SMS Service provider has been selected, a batch file must be prepared for sending SMS messages using the API of the SMS Gateway Provider e.g. the simple HTTP protocol.
The batch file must take 2 arguments:
-
Message text
-
List of recipient phone numbers
The following sample shows a batch file sending an SMS using HTTP.
Specify the batch file to use in “General Settings”.
Schedule Alert Mails¶
Alert mails can be scheduled by setting up a Python script in MIKE Workbench, which generates the alert mail or even alert SMS messages.
In order to access the API of MIKE OPERATIONS, load the Real-time module. Refer to the FAQ section on how to load the API from a script.
Refer to the API help file of the MIKE OPERATIONS installation found in the “apihelp” folder.