aboutsummaryrefslogtreecommitdiffstats
path: root/mod
AgeCommit message (Collapse)AuthorFilesLines
2024-03-12mod/inspectvar: remove extra spacesGravatar Christian Hesse1-1/+1
2024-01-30mod/ssh-keys-import: bump RouterOS version dependencyGravatar Christian Hesse1-1/+1
2024-01-30mod/notification-email: drop support for old property nameGravatar Christian Hesse1-2/+4
2024-01-22mod/notification-telegram: apply url encoding when sendingGravatar Christian Hesse1-5/+5
2024-01-22mod/notification-matrix: drop declaration of unused functionGravatar Christian Hesse1-1/+0
2024-01-01update copyright for 2024Gravatar Christian Hesse10-10/+10
2023-12-21mod/ssh-keys-import: unbreak import from fileGravatar Christian Hesse1-1/+1
Looks like this broke in c3045f372350bd8dd0a8f10efb8a4b938e896145 where a non-existent variable name was used.
2023-12-05mod/notification-email: $NotificationFunctions->"email": support hook for ↵Gravatar Christian Hesse1-1/+2
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-04mod/notification-email: $QuotedPrintable: also encode question markGravatar Christian Hesse1-1/+1
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-04mod/notification-email: $QuotedPrintable: minor reworkGravatar Christian Hesse1-10/+11
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-11-14mod/notification-telegram: rename schedulerGravatar Christian Hesse1-5/+5
2023-11-14mod/notification-ntfy: rename schedulerGravatar Christian Hesse1-5/+5
2023-11-14mod/notification-matrix: rename schedulerGravatar Christian Hesse1-5/+5
2023-11-14mod/notification-email: rename schedulerGravatar Christian Hesse1-4/+4
2023-11-09mod/notification-matrix: introduce $SetupMatrix{Authenticate,JoinRoom} for setupchange-113Gravatar Christian Hesse1-0/+79
Well, now that we have a JSON parser... Let's improve the user experience a bit.
2023-11-09mod/ssh-keys-import: continue import after intermediate failureGravatar Christian Hesse1-1/+5
2023-11-09mod/ssh-keys-import: do not import twiceGravatar Christian Hesse1-0/+7
2023-11-09mod/ssh-keys-import: drop the version check for ed25519 keys...routeros-7.12beta1-3Gravatar Christian Hesse1-4/+2
... now that we require RouterOS 7.12beta1 anyway.
2023-11-09mod/ssh-keys-import: calculate fingerprint...routeros-7.12beta1-2change-112Gravatar Christian Hesse1-1/+6
... and store it in key-owner, which is descriptive only. This requires RouterOS 7.12beta1 for the 'transform' property for ':convert' command.
2023-11-07mod/ssh-keys-import: parse key into arrayGravatar Christian Hesse1-8/+10
2023-10-17mod/notification-ntfy: check for root certificate availabilityGravatar Christian Hesse1-0/+6
... at least with default server.
2023-10-17introduce mod/notification-ntfy...change-109Gravatar Christian Hesse1-0/+129
... 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-16mod/notification-telegram: drop support for non-fixed width fontchange-107Gravatar Christian Hesse1-12/+3
2023-10-16mod/notification-telegram: remember ids of sent messagesGravatar Christian Hesse1-9/+17
2023-10-06mod/notification-email: handle new property name...routeros-7.12rc1-1Gravatar Christian Hesse1-2/+3
... which changed in RouterOS 7.12rc1.
2023-08-18mod/ssh-keys-import: $SSHKeysImport: add check for key typeGravatar Christian Hesse1-0/+6
2023-08-18mod/ssh-keys-import: support ed25519 keys...routeros-7.12beta1-1Gravatar Christian Hesse1-1/+2
... with RouterOS 7.12beta1
2023-08-18mod/ssh-keys-import: drop RouterOS version dependencyGravatar Christian Hesse1-2/+0
... as global-functions depend on RouterOS 7.9beta already.
2023-08-06mod/notification-telegram: introduce $PurgeTelegramQueueGravatar Christian Hesse1-0/+9
... to purge the queue and remove the scheduler.
2023-08-06mod/notification-matrix: introduce $PurgeMatrixQueueGravatar Christian Hesse1-0/+9
... to purge the queue and remove the scheduler.
2023-08-06mod/notification-email: introduce $PurgeEmailQueueGravatar Christian Hesse1-0/+9
... to purge the queue and remove the scheduler.
2023-06-27mod/scriptrunonce: escaping question mark is no longer requiredGravatar Christian Hesse1-1/+1
2023-06-27mod/notification-email: escaping question mark is no longer requiredGravatar Christian Hesse1-1/+1
2023-05-15mod/notification-telegram: fix copy-and-paste errorGravatar Christian Hesse1-1/+1
2023-04-26mod/ssh-keys-import: make ssh-keys-import a modulerouteros-7.9beta4-3change-100Gravatar Christian Hesse1-0/+84
2023-04-25mod/bridge-port-to: increase the delay before re-enablingGravatar Christian Hesse1-1/+1
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-25mod/bridge-port-vlan: increase the delay before re-enablingGravatar Christian Hesse1-1/+1
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-24mod/ipcalc: use $FormatLineGravatar Christian Hesse1-6/+7
2023-04-04mod/scriptrunonce: link documentationGravatar Christian Hesse1-0/+3
2023-04-04mod/notification-telegram: link documentationGravatar Christian Hesse1-0/+3
2023-04-04mod/notification-matrix: link documentationGravatar Christian Hesse1-0/+3
2023-04-04mod/notification-email: link documentationGravatar Christian Hesse1-0/+3
2023-04-04mod/ipcalc: link documentationGravatar Christian Hesse1-0/+3
2023-04-04mod/inspectvar: link documentationGravatar Christian Hesse1-0/+3
2023-03-10drop dummy scripts used for migrationGravatar Christian Hesse8-24/+0
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-07rename scripts and add file extension ".rsc"change-95Gravatar Christian Hesse16-821/+845
No functional change for the user... The migration is done automatically.
2023-02-24mod/notification-telegram: support sending in replyGravatar Christian Hesse1-1/+4
2023-02-02mod/notification-telegram: support sending to specific chatidGravatar Christian Hesse1-1/+2
2023-01-12mod/notification-*: support extra text (or emojis 🚀) in notification tagschange-87Gravatar Christian Hesse3-6/+11
2023-01-11mod/notification-email: split off generation of subjectGravatar Christian Hesse1-10/+17
2023-01-11mod/notification-email: move $QuotedPrintable (from global-functions)Gravatar Christian Hesse1-0/+37
This is used for e-mail only...
2023-01-11log-forward: generate filter in mod/notification-emailGravatar Christian Hesse1-0/+16
2023-01-02update copyright for 2023Gravatar Christian Hesse8-8/+8
2022-11-22mod/notification-email: put status in scheduler commentGravatar Christian Hesse1-4/+4
2022-11-22mod/notification-email: set scheduler interval earlierGravatar Christian Hesse1-0/+4
... to make sure the checks are not re-run every second.
2022-11-22mod/notification-email: reference scheduler from variableGravatar Christian Hesse1-4/+5
2022-11-17mod/notification-email: make sure the scheduler interval is never zeroGravatar Christian Hesse1-1/+1
2022-11-17mod/notification-email: check that attachment existsGravatar Christian Hesse1-1/+8
2022-11-17mod/notification-email: convert to array earlierGravatar Christian Hesse1-2/+2
2022-11-17mod/notification-email: fix typoGravatar Christian Hesse1-1/+1
2022-10-19mod/notification-telegram: drop 'Telegram' from wordingGravatar Christian Hesse1-1/+1
2022-09-25introduce 'mod/notification-email', split off from global-functionschange-84Gravatar Christian Hesse1-0/+133
2022-09-15mod/notification-matrix: $FlushMatrixQueue: use $0 for scheduler nameGravatar Christian Hesse1-4/+4
2022-09-15mod/notification-telegram: $FlushTelegramQueue: use $0 for scheduler nameGravatar Christian Hesse1-4/+4
2022-07-13mod/notification-telegram: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13mod/notification-matrix: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13mod/bridge-port-vlan: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-13mod/bridge-port-to: update initialization of empty arrayGravatar Christian Hesse1-1/+1
Having the parenthesis here is important for valid syntax!
2022-07-05mod/ipcalc: use $PrettyPrintGravatar Christian Hesse1-6/+7
2022-07-05mod/inspectvar: use $PrettyPrintGravatar Christian Hesse1-2/+2
2022-07-05mod/ipcalc: remove empty lineGravatar Christian Hesse1-1/+0
2022-06-30mod/bridge-port-to: re-enable interfaces by idGravatar Christian Hesse1-7/+3
2022-06-30mod/bridge-port-vlan: re-enable interfaces by idGravatar Christian Hesse1-7/+3
2022-06-29mod/bridge-port-to: do not act on missing interfaceGravatar Christian Hesse1-2/+5
Happens on broken configuration or early boot...
2022-06-29mod/bridge-port-vlan: do not act on missing interfaceGravatar Christian Hesse1-2/+5
Happens on broken configuration or early boot...
2022-06-20mod/notification-telegram: only flush queue if fully connectedGravatar Christian Hesse1-0/+6
The fetch command is not as reliable as it should be... Chances were that notifications were sent multiple times if stuck in background. Let's flush only if fully connected - and hope this fixes it.
2022-06-20mod/notification-matrix: only flush queue if fully connectedGravatar Christian Hesse1-0/+6
The fetch command is not as reliable as it should be... Chances were that notifications were sent multiple times if stuck in background. Let's flush only if fully connected - and hope this fixes it.
2022-06-16fix typos: 'at lease' -> 'at least'Gravatar Christian Hesse2-2/+2
2022-06-15mod/bridge-port-to: log when re-enabling interfacesGravatar Christian Hesse1-0/+3
2022-06-15mod/bridge-port-vlan: log when re-enabling interfacesGravatar Christian Hesse1-0/+3
2022-06-15mod/bridge-port-to: move reenable to correct levelGravatar Christian Hesse1-6/+6
2022-06-15mod/bridge-port-vlan: move reenable to correct levelGravatar Christian Hesse1-6/+6
2022-06-02mod/bridge-port-vlan: show vlan name in log messageGravatar Christian Hesse1-1/+2
2022-06-02mod/bridge-port-vlan: re-enable interfaces with longer delay...Gravatar Christian Hesse1-2/+8
... and in one go to limit the overall runtime. Looks like IPv6 addresses are not flushed if the link down does not last long enough (~ 2 seconds on linux). This results on stale addresses after switching the vlan, which breaks connectivity.
2022-06-02mod/bridge-port-to: re-enable interfaces with longer delay...Gravatar Christian Hesse1-2/+8
... and in one go to limit the overall runtime. Looks like IPv6 addresses are not flushed if the link down does not last long enough (~ 2 seconds on linux). This results on stale addresses after switching bridge, which breaks connectivity.
2022-05-16mod/bridge-port-to: add interface down and upGravatar Christian Hesse1-0/+3
This helps the client to detect the change.
2022-05-16mod/bridge-port-vlan: add interface down and upGravatar Christian Hesse1-0/+3
This helps the client to detect the change.
2022-05-16mod/bridge-port-vlan: remove left over commentGravatar Christian Hesse1-1/+0
2022-05-11mod/scriptrunonce: RouterOS v7 path syntaxGravatar Christian Hesse1-1/+1
2022-05-11mod/notification-telegram: RouterOS v7 path syntaxGravatar Christian Hesse1-8/+8
2022-05-11mod/notification-matrix: RouterOS v7 path syntaxGravatar Christian Hesse1-8/+8
2022-05-11mod/bridge-port-vlan: RouterOS v7 path syntaxGravatar Christian Hesse1-9/+9
2022-05-11mod/bridge-port-to: RouterOS v7 path syntaxGravatar Christian Hesse1-8/+8
2022-01-01update copyright for 2022Gravatar Christian Hesse7-7/+7
2021-12-09mod/ipcalc: introduce $IPCalcReturnGravatar Christian Hesse1-9/+20
2021-12-09mod/inspectvar: truncate value if too longGravatar Christian Hesse1-1/+3
2021-12-09mod/inspectvar: introduce $InspectVarReturnGravatar Christian Hesse1-8/+20
2021-11-15shorten modules directory name (global-functions.d -> mod)change-67Gravatar Christian Hesse7-0/+558