Christian Hesse
5ac89bad04
mod/ssh-keys-import: bump RouterOS version dependency
2024-01-30 00:31:36 +01:00
Christian Hesse
6ad7ca2c1a
mod/notification-email: drop support for old property name
2024-01-30 00:30:32 +01:00
Christian Hesse
f015f5f012
mod/notification-telegram: apply url encoding when sending
2024-01-22 16:10:48 +01:00
Christian Hesse
c2fe7e4cd7
mod/notification-matrix: drop declaration of unused function
2024-01-22 16:08:34 +01:00
Christian Hesse
9a73fc526f
update copyright for 2024
2024-01-01 15:25:25 +01:00
Christian Hesse
1c26d08267
mod/ssh-keys-import: unbreak import from file
...
Looks like this broke in c3045f3723
where
a non-existent variable name was used.
2023-12-21 11:34:55 +01:00
Christian Hesse
d3611cebbd
mod/notification-email: $NotificationFunctions->"email": support hook for signature
...
You can compose your own signature by creating a function:
:global NotificationEMailSignature do={
:global EitherOr;
:local RouterBoard [ /system/routerboard/get ];
:return ( \
[ $EitherOr ($RouterBoard->"board-name") ($RouterBoard->"model") ] . " s/n " . $RouterBoard->"serial-number" . " | " . \
"RouterOS " . [ /system/package/update/get installed-version ] . " | " . \
"IP " . [ /ip/cloud/get public-address ]);
}
2023-12-05 00:11:19 +01:00
Christian Hesse
e4b10d4b76
mod/notification-email: $QuotedPrintable: also encode question mark
...
Following the RFC it is not required, but looks like Thunderbird has an
issue here...
https://datatracker.ietf.org/doc/html/rfc2045#section-6.7
2023-12-04 12:08:47 +01:00
Christian Hesse
84368ec6eb
mod/notification-email: $QuotedPrintable: minor rework
...
We have to encode all characters from 0x00 to 0x1f as well...
Also the equal sign is nothing special here, just adding to list.
2023-12-04 12:08:47 +01:00
Christian Hesse
8c8f834179
mod/notification-telegram: rename scheduler
2023-11-14 22:35:38 +01:00
Christian Hesse
75c41501c2
mod/notification-ntfy: rename scheduler
2023-11-14 22:35:23 +01:00
Christian Hesse
5c2454be8b
mod/notification-matrix: rename scheduler
2023-11-14 22:35:06 +01:00
Christian Hesse
a5e2282d0f
mod/notification-email: rename scheduler
2023-11-14 22:34:45 +01:00
Christian Hesse
2d7efd8d6c
mod/notification-matrix: introduce $SetupMatrix{Authenticate,JoinRoom} for setup
...
Well, now that we have a JSON parser... Let's improve the user
experience a bit.
2023-11-09 15:34:10 +01:00
Christian Hesse
98d7eee454
mod/ssh-keys-import: continue import after intermediate failure
2023-11-09 15:34:10 +01:00
Christian Hesse
b22dfbfc94
mod/ssh-keys-import: do not import twice
2023-11-09 15:34:10 +01:00
Christian Hesse
042ff1cfda
mod/ssh-keys-import: drop the version check for ed25519 keys...
...
... now that we require RouterOS 7.12beta1 anyway.
2023-11-09 15:18:09 +01:00
Christian Hesse
1265caca60
mod/ssh-keys-import: calculate fingerprint...
...
... and store it in key-owner, which is descriptive only.
This requires RouterOS 7.12beta1 for the 'transform' property
for ':convert' command.
2023-11-09 15:08:36 +01:00
Christian Hesse
c3045f3723
mod/ssh-keys-import: parse key into array
2023-11-07 14:31:59 +01: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
fed7f2da46
mod/notification-telegram: drop support for non-fixed width font
2023-10-16 15:27:14 +02:00
Christian Hesse
8ecde47a78
mod/notification-telegram: remember ids of sent messages
2023-10-16 11:51:04 +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
53a80c81b1
mod/ssh-keys-import: $SSHKeysImport: add check for key type
2023-08-18 15:23:20 +02:00
Christian Hesse
ad6825571d
mod/ssh-keys-import: support ed25519 keys...
...
... with RouterOS 7.12beta1
2023-08-18 15:23:20 +02:00
Christian Hesse
ddd5608b38
mod/ssh-keys-import: drop RouterOS version dependency
...
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse
c37739c2f6
mod/notification-telegram: introduce $PurgeTelegramQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
0aeb34e5e9
mod/notification-matrix: introduce $PurgeMatrixQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
9a5d55da0d
mod/notification-email: introduce $PurgeEmailQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
0502cf17c9
mod/scriptrunonce: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
a1b896a5d3
mod/notification-email: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
4254b01a32
mod/notification-telegram: fix copy-and-paste error
2023-05-15 21:43:18 +02:00
Christian Hesse
c8500dddd0
mod/ssh-keys-import: make ssh-keys-import a module
2023-04-26 10:31:23 +02:00
Christian Hesse
575c77d1a6
mod/bridge-port-to: increase the delay before re-enabling
...
Looks like two seconds is way too short... NetworkManager act after five
seconds - so let's delay that time at least.
https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html#carrier-wait-timeout
2023-04-25 09:45:46 +02:00
Christian Hesse
9dead9cc33
mod/bridge-port-vlan: increase the delay before re-enabling
...
Looks like two seconds is way too short... NetworkManager act after five
seconds - so let's delay that time at least.
https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html#carrier-wait-timeout
2023-04-25 09:43:50 +02:00
Christian Hesse
82b5ae174a
mod/ipcalc: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
a1f6bd532b
mod/scriptrunonce: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
61e0e052a6
mod/notification-telegram: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
b7cb722b5c
mod/notification-matrix: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
9136bf28bd
mod/notification-email: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
8edf694b54
mod/ipcalc: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
b6f9094c3d
mod/inspectvar: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
3b5026ea8d
drop dummy scripts used for migration
...
This now causes expected warnings on first run of $ScriptInstallUpdate.
The migration still works, as we keep `global-config.changes` and
`global-functions`.
2023-03-10 09:58:01 +01:00
Christian Hesse
a832fd04ef
rename scripts and add file extension ".rsc"
...
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00
Christian Hesse
b963761874
mod/notification-telegram: support sending in reply
2023-02-24 12:13:44 +01:00
Christian Hesse
2cb74f0269
mod/notification-telegram: support sending to specific chatid
2023-02-02 09:11:34 +01:00
Christian Hesse
47a657d25c
mod/notification-*: support extra text (or emojis 🚀 ) in notification tags
2023-01-12 15:40:05 +01:00
Christian Hesse
c8e22f33c2
mod/notification-email: split off generation of subject
2023-01-11 12:28:31 +01:00
Christian Hesse
a953a8fa59
mod/notification-email: move $QuotedPrintable (from global-functions)
...
This is used for e-mail only...
2023-01-11 12:28:31 +01:00