Commit graph

2167 commits

Author SHA1 Message Date
Christian Hesse
7a1ffb659c global-functions: $ScriptInstallUpdate: rename variable 2023-10-17 14:05:03 +02:00
Christian Hesse
c0a734fa21 global-functions: $ScriptInstallUpdate: use pushpin as bullet 2023-10-17 14:05:03 +02:00
Christian Hesse
cfc8c4f1ea global-functions: $SymbolForNotification: support fallback without symbols 2023-10-17 14:05:03 +02:00
Christian Hesse
d3992c13a0 mod/notification-ntfy: check for root certificate availability
... at least with default server.
2023-10-17 14:05:03 +02:00
Christian Hesse
5932586ee4 introduce mod/notification-ntfy...
... for sending notifications via Ntfy (https://ntfy.sh/).

TODO: use proper formatting once supported in Android app:
https://github.com/binwiederhier/ntfy/issues/889
2023-10-17 14:05:03 +02:00
Christian Hesse
5fbf584d4c sms-forward: pass phone number and message to hook
These are available as $Phone and $Message in hook.
2023-10-17 14:05:03 +02:00
Christian Hesse
f6e65dd68c log-forward: add 'packet' in default filter...
... which is used when logging raw packets from dns and ssh,
and possibly others.
2023-10-17 14:05:03 +02:00
Christian Hesse
24823441c3 log-forward: use colorful bullets to indicate severity 2023-10-17 14:05:03 +02:00
Christian Hesse
ef3b8f8ddd gps-track: http-header-field expects an array 2023-10-17 14:05:03 +02:00
Christian Hesse
1b00f93fc6 global-functions: $ScriptInstallUpdate: http-header-field expects an array 2023-10-17 14:05:03 +02:00
Christian Hesse
da0a37802d global-functions: $CertificateDownload: http-header-field expects an array 2023-10-17 14:05:03 +02:00
Christian Hesse
80c0e47649 Merge branch 'telegram' into next 2023-10-17 14:05:03 +02:00
Christian Hesse
bcc10c8285 telegram-chat: make messages silent...
... at least those not indicating an error.
2023-10-17 14:05:03 +02:00
Christian Hesse
73194b92cf telegram-chat: use $ParseJson for all JSON 2023-10-16 23:43:58 +02:00
Christian Hesse
c0aab0fead global-functions: $ParseJson: properly handle array 2023-10-16 23:43:58 +02:00
Christian Hesse
3b9df48721 global-functions: $ParseJson: prepare elif-workaround 2023-10-16 23:43:58 +02:00
Christian Hesse
140ec1a3a2 global-functions: $ParseJson: use temporary variables 2023-10-16 23:43:58 +02:00
Christian Hesse
fed7f2da46 mod/notification-telegram: drop support for non-fixed width font 2023-10-16 15:27:14 +02:00
Christian Hesse
c9233773b3 telegram-chat: do not act on foreign reply...
... even if active!
2023-10-16 15:27:14 +02:00
Christian Hesse
bc4839f611 telegram-chat: rename variable 2023-10-16 15:27:14 +02:00
Christian Hesse
1b62545d8c telegram-chat: answer question mark with short notice 2023-10-16 15:27:14 +02:00
Christian Hesse
15873e2fdb telegram-chat: restore indention 2023-10-16 15:27:14 +02:00
Christian Hesse
555461c612 telegram-chat: do not nest conditions 2023-10-16 15:27:14 +02:00
Christian Hesse
adca33cc5b telegram-chat: act on reply without delay 2023-10-16 13:11:20 +02:00
Christian Hesse
399d952ac2 telegram-chat: act on reply from self 2023-10-16 13:11:20 +02:00
Christian Hesse
fd1263324d doc/telegram-chat: update screenshots 2023-10-16 13:11:20 +02:00
Christian Hesse
8ecde47a78 mod/notification-telegram: remember ids of sent messages 2023-10-16 11:51:04 +02:00
Christian Hesse
7df4f9e78c global-functions: $ParseJson: handle outher curly brackets 2023-10-16 11:51:04 +02:00
Christian Hesse
bb899b1fb0 global-functions: $ParseJson: drop superfluous substraction 2023-10-16 11:51:04 +02:00
Christian Hesse
080b3cbf9d global-functions: make $ParseJson global 2023-10-16 11:51:04 +02:00
Christian Hesse
8e9734347e telegram-chat: parse (one level of) JSON into array 2023-10-16 11:51:04 +02:00
Christian Hesse
4c51b2fe52 telegram-chat: do not cover existing variable 2023-10-16 11:51:04 +02:00
Christian Hesse
65d05a757b update list of contributors 2023-10-16 11:50:10 +02:00
Christian Hesse
87b136f3a9 mod/notification-email: handle new property name...
... which changed in RouterOS 7.12rc1.
2023-10-06 21:42:00 +02:00
Christian Hesse
702abd2a5d log-forward: add 'raw' in default filter...
... which is used when logging raw packets or commands.
2023-10-05 22:20:32 +02:00
Christian Hesse
fedda2a946 collect-wireless-mac: ignore remote aps...
... which are listed here in station mode.
2023-10-05 22:08:26 +02:00
Christian Hesse
eef0662aa7 netwatch-notify: allow to give different origin for hosts...
... to use differing notification settings.

Add an origin name in netwatch configuration:

    /tool/netwatch/add comment="notify, name=dns-google, origin=netwatch-notify-google" address=8.8.8.8;
    /tool/netwatch/add comment="notify, name=dns-cloudflare, origin=netwatch-notify-cloudflare" address=1.1.1.1;

Then configure the notification settings in `global-config-overlay`:

    :global EmailGeneralToOverride {
      "netwatch-notify-google"="google@example.com";
      "netwatch-notify-cloudflare"="cloudflare@example.com";
    }

I think it is best to handle this as a hidden setting...
Handle with care!
2023-09-29 14:15:41 +02:00
Christian Hesse
4c6c30550f collect-wireless-mac: filter on dns type 2023-09-22 12:29:15 +02:00
Christian Hesse
57c5c3f704 collect-wireless-mac: add CNAME(s) in notification 2023-09-20 12:26:49 +02:00
Christian Hesse
4ddc6be585 global-functions: split off $FormatMultiLines ...
... to format multiple lines from an array.
2023-09-18 07:55:05 +02:00
Christian Hesse
557823c5c1 telegram-chat: create status files with /file/add
We have no content, thus no issues with file size.
2023-09-15 09:54:59 +02:00
Christian Hesse
66ebcf2bbd telegram-chat: use the full command name :execute 2023-09-15 09:54:59 +02:00
Christian Hesse
5349c9b52e global-functions: $EitherOr: properly handle time values 2023-09-15 09:54:59 +02:00
Christian Hesse
2a10f43acc drop dummy scripts used for wifiwave2 migration
This now causes expected warnings on first run of $ScriptInstallUpdate.
2023-09-13 16:08:59 +02:00
Christian Hesse
110bb793b6 check-routeros-update: do not match the channel on neighbor update
While this works for stable, it does not for testing: The testing
channel can have "testing" in the string for rc releases, but also
"development" for beta releases... and possibly more.
Instead match on version string only, with word boundary.
2023-09-13 16:08:59 +02:00
Christian Hesse
46e48497d5 lease-script: match on word boundary 2023-09-13 16:08:59 +02:00
Christian Hesse
8b8bc7cf2d packages-update: match on word boundary 2023-09-13 16:08:59 +02:00
Christian Hesse
5d80b63f36 doc/packages-update: mention and link all backup scripts 2023-09-13 16:08:59 +02:00
Christian Hesse
66813d83a0 packages-update: drop order from message 2023-09-13 16:08:59 +02:00
Christian Hesse
c3f9ad1df7 packages-update: implement backup script order 2023-09-13 01:14:27 +02:00