Commit graph

199 commits

Author SHA1 Message Date
Christian Hesse
cdfb086b49 mod/notification-telegram: fix override quirk
IDs for chat and thread can be overridden. Overriding the chat probably
makes the thread invalid - so ignore that then.
2025-04-01 17:39:50 +02:00
Christian Hesse
0c4fb42616 mod/notification-telegram: $GetTelegramChatId: give thead id...
... if message was sent to group's topic.
2025-02-27 10:52:52 +01:00
Christian Hesse
e2fe653035 mod/notification-telegram: $GetTelegramChatId: use last message 2025-02-27 10:52:52 +01:00
Christian Hesse
53b13b295a mod/notification-telegram: introduce $GetTelegramChatId 2025-02-25 22:37:30 +01:00
Christian Hesse
a22b62f588 mod/notification-telegram: support sending to group's topic...
... when a group has enabled the "Topics" feature.
2025-02-25 17:55:12 +01:00
Christian Hesse
cad104879c mod/notification-telegram: simplify the queue...
... and pass http-data as a complete sting.
2025-02-24 15:18:53 +01:00
Christian Hesse
5715bc7b57 mod/scriptrunonce: always give proper return code 2025-02-12 17:40:27 +01:00
Christian Hesse
1c957dbc6d mod/scriptrunonce: resolve nested conditions 2025-02-12 17:40:27 +01:00
Christian Hesse
b7b3b43f3b mod/scriptrunonce: use $FetchHuge 2025-02-12 17:40:27 +01:00
Christian Hesse
0fea300fea mod/ssh-keys-import: use $RmDir 2025-02-10 15:23:50 +01:00
Christian Hesse
4bfb591fa0 bump required RouterOS version for all scripts 2025-02-07 17:44:41 +01:00
Christian Hesse
59c9d0ce4b mod/scriptrunonce: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
378a8978df mod/notification-telegram: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
9f2f54b479 mod/notification-ntfy: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
9a12934202 mod/notification-matrix: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
370e81321f mod/notification-email: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
ed18444578 mod/ssh-keys-import: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
66ab2a8511 mod/scriptrunonce: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
27144a428a mod/notification-telegram: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
6e7f311269 mod/notification-ntfy: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
6567a94a4f mod/notification-matrix: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
631f63836b mod/notification-email: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
828f68be3c mod/ipcalc: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
078d5368fb mod/inspectvar: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
d5a50d824f mod/bridge-port-vlan: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
6920842d15 mod/bridge-port-to: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
9e3729c279 update copyright for 2025 2025-01-02 00:04:06 +01:00
Christian Hesse
6bee467550 mod/notification-ntfy: add basic authentication in headers
This makes it a bit easier and straight forward as we pass the
headers anyway.
2024-12-17 13:21:59 +01:00
Christian Hesse
d1b9b1b410 mod/notification-ntfy: support authentication with bearer token
Closes: https://github.com/eworm-de/routeros-scripts/issues/86
2024-12-17 13:21:19 +01:00
Christian Hesse
b66332eb46 mod/notification-email: $FlushEmailQueue: just return on empty queue 2024-12-17 13:21:14 +01:00
Christian Hesse
8c8c75ca66 mod/notification-email: $FlushEmailQueue: move the check up...
... as this needs to be done before creating a scheduler. 😜

Also remove the scheduler and return.
2024-12-17 11:20:09 +01:00
Christian Hesse
1e2ca3d214 mod/notification-email: $FlushEmailQueue: create scheduler if missing...
... as it is required to be modified several times below.
2024-12-17 11:20:09 +01:00
Christian Hesse
5310673152 mod/notification-email: $FlushEmailQueue: return on purge 2024-12-17 11:20:09 +01:00
Christian Hesse
009a6bd762 mod/notification-email: $FlushEmailQueue: return on success 2024-12-17 11:20:09 +01:00
Christian Hesse
42bcc63d29 mod/notification-email: increase retry interval on failure 2024-12-17 11:20:09 +01:00
Christian Hesse
bceabebf9c mod/notification-email: drop useless safeguard
Guess it was useful back in the day. Now the function exits early if the
queue is empty... So this can never be zero.
2024-12-17 11:19:57 +01:00
Christian Hesse
210ef26b93 mod/ssh-keys-import: $SSHKeysImportFile: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
1788c05998 mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
73e0ac75f1 mod/scriptrunonce: $ScriptRunOnce: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
4968b79fc1 mod/notification-telegram: $SendTelegram: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
e89867be15 mod/notification-telegram: $FlushTelegramQueue: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
e76ae11b02 mod/notification-ntfy: $SendNtfy: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
aac723e2a1 mod/notification-ntfy: $FlushNtfyQueue: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
de9dee83be mod/notification-matrix: $SendMatrix: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
1994b23e46 mod/notification-matrix: $FlushMatrixQueue: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
1927dc505a mod/notification-email: $SendEMail: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
5450618723 mod/notification-email: $FlushEmailQueue: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
34172e4c78 mod/ipcalc: $IPCalc: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
05cb87f475 mod/inspectvar: $InspectVar: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
495232b299 mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00