Christian Hesse
9295d06fe2
global-functions.d/inspectvar: add $InspectVar...
...
to inspect variables. This is useful for variables with (nested) arrays,
for example inspecting $NetwatchNotify (from netwatch-notify):
[admin@Mikrotik] > $InspectVar $NetwatchNotify
-type-> array
-key-> quad-one
-type-> array
-key-> count
-type-> num
-value-> 0
-key-> notified
-type-> bool
-value-> false
-key-> parent
-type-> nothing
-key-> resolve-failed
-type-> nothing
-key-> since
-type-> nothing
-key-> example.com
-type-> array
-key-> count
-type-> num
-value-> 0
-key-> notified
-type-> bool
-value-> false
-key-> parent
-type-> str
-value-> quad-one
-key-> resolve-failed
-type-> nothing
-key-> since
-type-> nothing
2021-09-21 21:26:13 +02:00
Christian Hesse
012db05a93
global-functions: move $ScriptRunOnce to optional module
2021-09-21 21:26:13 +02:00
Christian Hesse
8b05d25487
global-functions: move $IPCalc to optional module
2021-09-21 21:26:13 +02:00
Christian Hesse
70f9c7926b
global-functions*: syntax for ROS 7.x
...
Strings with escape sequence have to be enclosed in parentheses. Looks
like RouterOS 7.x is stricter here...
2021-09-08 14:33:02 +02:00
Christian Hesse
772e66b622
global-functions.d/notification-telegram: for syntax for ROS 7.x
...
Strings with escape sequence have to be enclosed in parentheses. Looks
like RouterOS 7.x is stricter here...
2021-08-25 00:35:08 +02:00
Christian Hesse
574c50908b
global-functions.d/notification-telegram: subject in bold & underline
...
This makes the subject visually delimited.
2021-07-09 21:21:30 +02:00
Christian Hesse
50d1706a06
global-functions: make Telegram notifications a module
2021-06-08 21:07:25 +02:00
Michael Gisbers
8375673d93
global-functions: implement notifications via Matrix
...
Matrix is an open network for secure, decentralized communication - and
it has a web api.
A warning on message type: Using 'm.notice' breaks rendering on Element
for Android (no fixed width font) and does not pop up desktop
notification. Thus we use 'm.text'. Should be safe as we do not send the
messages in response to other messages.
https://matrix.org/
2021-06-08 21:07:25 +02:00