Christian Hesse
20987221d9
mod/notification-email: ignore errors (for now...)
...
Errors are returned since RouterOS 7.21beta2.
We keep the current logic for now, as we want to support older
RouterOS versions. This is something to be reworked later...
2025-10-26 19:19:13 +01:00
Christian Hesse
b80b872e55
mod/ipcalc: support IPv6
...
Well, some of these values do not make a lot of sense for IPv6...
Something to be cleaned up later.
2025-10-19 19:55:12 +02:00
Christian Hesse
9fa11cb79a
mod/ipcalc: use $NetMask4
2025-10-16 13:03:54 +02:00
Christian Hesse
6630d35eea
mod/notification-telegram: $FlushTelegramQueue: check for cert, again
...
Chances are that messages have been queued before system was fully up or
connected. Thus the certificate may be missing, and it should be checked
again for on flush.
2025-10-13 12:06:01 +02:00
Christian Hesse
5ffa85f8bf
mod/ssh-keys-import: handle new parameter
...
With RouterOS 7.21beta2 the user SSH keys "key-owner" field was
renamed to "info".
Either of both is displayed in red by syntax highlighting, but it
works anyway.
2025-10-08 18:42:26 +02:00
Miquel Bonastre
2c715096b9
mod/ssh-keys-import: $SSHKeysImportFile: fix file exists condition...
...
... which broke in commit 80aed200fd .
2025-09-25 10:24:07 +02:00
Christian Hesse
80aed200fd
mod/ssh-keys-import: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:42 +02:00
Christian Hesse
2d81984aed
mod/notification-email: use $RmFile
2025-06-04 22:30:42 +02:00
Christian Hesse
e3284ca770
mod/notification-email: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:39 +02:00
Christian Hesse
e78c71948d
mod/notification-telegram: fix indention
2025-05-22 10:13:52 +02:00
Christian Hesse
2a95687477
mod/notification-email: add the link symbol
2025-05-22 10:13:52 +02:00
Christian Hesse
74dc809b98
mod/notification-email: properly truncate the body
...
Truned out that the size limit for e-mail message/body is anywhere just
below 64kB... So truncate at about 62.000 bytes.
2025-05-22 10:13:52 +02:00
Christian Hesse
ff218e4ce5
mod/notification-email: add error handling when sending mail
2025-05-22 10:13:52 +02:00
Christian Hesse
bd3cc3bbd4
mod/inspectvar: replace only when matching
2025-05-22 10:13:52 +02:00
Christian Hesse
36f155ce62
mod/inspectvar: remove CR, replace LF
2025-05-22 10:13:52 +02:00
Christian Hesse
187735f35f
mod/inspectvar: print the length for strings
2025-05-22 10:13:52 +02:00
Christian Hesse
3521995dbc
mod/inspectvar: use $CharacterMultiply
2025-05-22 10:13:52 +02:00
Christian Hesse
c757064eb9
mod/ssh-keys-import: :do ... on-error=... -> ... well... - fix condition 🥴
2025-05-22 10:13:47 +02:00
Christian Hesse
9cd4ed08a4
mod/ssh-keys-import: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
9ae21c00bd
mod/scriptrunonce: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
e01873301f
mod/notification-gotify: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
3f092d3477
mod/notification-matrix: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
2a7fd7ea53
mod/notification-ntfy: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
5badafe109
mod/notification-telegram: :do ... on-error=... -> :onerror ... do=...
2025-05-21 22:12:25 +02:00
Christian Hesse
af40ae82ed
mod/ssh-keys-import: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
5958851bd7
mod/scriptrunonce: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
f7ba78702f
mod/notification-telegram: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
e3a15cc6b8
mod/notification-ntfy: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
d865deb8a8
mod/notification-matrix: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
9d845d40f0
mod/notification-gotify: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
862830b341
mod/notification-email: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
8cddc63767
mod/ipcalc: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
9b558ff8a1
mod/inspectvar: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
d5141f43e5
mod/bridge-port-vlan: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
02986eb77a
mod/bridge-port-to: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
154fb43800
mod/notification-ntfy: drop unused variable
2025-05-03 22:11:22 +02:00
Leonardo David Monteiro
0717ebfbd5
introduce mod/notification-gotify...
...
... for sending notifications via Gotify (https://gotify.net ).
Closes: https://github.com/eworm-de/routeros-scripts/pull/92
Co-authored-by: Christian Hesse <mail@eworm.de>
2025-05-03 22:11:22 +02:00
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