mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-14 12:04:29 +02:00
doc/mod/notification-matrix: describe how to declare functions...
... to use them in own scripts.
This commit is contained in:
parent
8284035ad8
commit
c0aeee3d3e
1 changed files with 8 additions and 2 deletions
|
@ -90,8 +90,8 @@ Usage and invocation
|
||||||
There's nothing special to do. Every script or function sending a notification
|
There's nothing special to do. Every script or function sending a notification
|
||||||
will now send it to your Matrix account.
|
will now send it to your Matrix account.
|
||||||
|
|
||||||
But of course you can send notifications directly or use a function in your
|
But of course you can use the function to send notifications directly. Give
|
||||||
own scripts. Give it a try:
|
it a try:
|
||||||
|
|
||||||
$SendMatrix "Subject..." "Body..."
|
$SendMatrix "Subject..." "Body..."
|
||||||
|
|
||||||
|
@ -100,6 +100,12 @@ methods:
|
||||||
|
|
||||||
$SendNotification "Subject..." "Body..."
|
$SendNotification "Subject..." "Body..."
|
||||||
|
|
||||||
|
To use the functions in your own scripts you have to declare them first.
|
||||||
|
Place this before you call them:
|
||||||
|
|
||||||
|
:global SendMatrix;
|
||||||
|
:global SendNotification;
|
||||||
|
|
||||||
See also
|
See also
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue