12 063
правки
(Новая страница: «== = Pre-setting for sending SMS== Make sure you insert the SIM card and connect the GSM antenna. == = Configure the notification module== #Go to the "Configs - A…») |
(Новая страница: «==How to set up notifications with more complex conditions== The notification module is designed to quickly configure simple notifications. If you need more compl…») |
||
Строка 54: | Строка 54: | ||
</div> | </div> | ||
== | ==How to set up notifications with more complex conditions== | ||
The notification module is designed to quickly configure simple notifications. If you need more complex notification scripts, they can be programmed via [[Движок правил wb-rules/en | rules engine]]. To send a message, call the function from the rule | |||
<syntaxhighlight lang=" | <syntaxhighlight lang="JavaScript"> | ||
Notify.sendEmail(to, subject, text); // | Notify.sendEmail(to, subject, text); //sends mail to the specified recipient (to), with the specified subject and content (text) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
or | |||
<syntaxhighlight lang=" | <syntaxhighlight lang="JavaScript"> | ||
Notify.sendSMS(to, text); // | Notify.sendSMS(to, text); //sends SMS to specified number (to) with specified content (text) | ||
</syntaxhighlight> | </syntaxhighlight> |
правки