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/
This commit is contained in:
Michael Gisbers 2021-05-28 17:30:37 +02:00 committed by Christian Hesse
parent 7a43bfbc6a
commit 8375673d93
15 changed files with 186 additions and 18 deletions

View file

@ -8,7 +8,7 @@
# https://git.eworm.de/cgit/routeros-scripts/about/
# expected configuration version
:global ExpectedConfigVersion 52;
:global ExpectedConfigVersion 53;
# global variables not to be changed by user
:global GlobalFunctionsReady false;