Commit graph

138 commits

Author SHA1 Message Date
Christian Hesse 40f13b6ca4 mod/notification-telegram: format percentage italic 2024-04-29 23:02:48 +02:00
Christian Hesse 0fd1e506ba mod/notification-telegram: format date & time italic 2024-04-29 23:02:48 +02:00
Christian Hesse f8856ae742 mod/notification-telegram: support excluding characters from escaping...
... to support formatting in plain text.

Handle with care, this can break the request if done wrong!
2024-04-29 23:02:48 +02:00
Christian Hesse 4b6cd7ba29 mod/notification-telegram: use proper variable naming...
... in local escaping function.
2024-04-29 23:02:48 +02:00
Christian Hesse d6e315580b mod/notification-telegram: capitalize Telegram in message 2024-04-29 23:02:48 +02:00
Christian Hesse e7cdb2d7f4 mod/notification-matrix: format date & time italic 2024-04-29 23:02:48 +02:00
Christian Hesse b0f58696f3 mod/ssh-keys-import: remove temporary directory 2024-04-29 23:02:48 +02:00
Christian Hesse f1ad808734 mod/ssh-keys-import: create directory later 2024-04-29 23:02:48 +02:00
Christian Hesse ee54956a69 mod/notification-telegram: string protocol for display 2024-04-19 09:09:13 +02:00
Christian Hesse 8cd03167ca mod/notification-matrix: string protocol for display 2024-04-19 09:04:08 +02:00
Christian Hesse b50a5b294a mod/notification-matrix: ... and more double escaping 2024-04-18 21:47:50 +02:00
Christian Hesse 3a36db6de8 mod/notification-matrix: fix double escaping
That was introduced with 2a232ad2f5 when
switching to :serialize...
2024-04-18 09:04:34 +02:00
Christian Hesse 2a232ad2f5 mod/notification-matrix: generate JSON with :serialize 2024-04-15 09:11:25 +02:00
Christian Hesse 9dfa11eac5 mod/notification-matrix: use custom user agent string 2024-04-15 09:11:25 +02:00
Christian Hesse fb865ba114 mod/notification-ntfy: use custom user agent string 2024-04-15 09:11:25 +02:00
Christian Hesse ca2e5f2a01 mod/notification-ntfy: support basic auth
Closes #59
2024-04-15 09:11:17 +02:00
Christian Hesse 9e4749a5b7 mod/notification-telegram: $SendTelegram: set origin 2024-04-10 10:08:58 +02:00
Christian Hesse 9e2b72ccdc mod/notification-ntfy: $SendNtfy: set origin 2024-04-10 10:08:58 +02:00
Christian Hesse a9b9f853ff mod/notification-matrix: $SendMatrix: set origin 2024-04-10 10:08:58 +02:00
Christian Hesse 012d259ca1 mod/notification-email: $SendEMail: set origin 2024-04-10 10:08:58 +02:00
Christian Hesse 009674b5bc bump RouterOS requirement for all scripts and modules...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00
Christian Hesse 6f68406803 mod/notification-matrix: add new configuration snippet...
... instead of appending to global-config-overlay.
2024-04-02 00:14:39 +02:00
Christian Hesse bb237dcef3 mod/notification-matrix: use :deserialize ...
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse 29bcbc4db9 mod/notification-telegram: use :deserialize ...
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse ccfbabde5e mod/notification-email: clean name for display name 2024-03-12 22:36:29 +01:00
Christian Hesse c016a6ef47 mod/notification-email: add display name with identity (if not given) 2024-03-12 22:36:29 +01:00
Christian Hesse b829ec1fc9 mod/ssh-keys-import: do not exit with error 2024-03-12 20:37:57 +01:00
Christian Hesse 0e2e7efdb2 mod/scriptrunonce: do not exit with error 2024-03-12 20:37:57 +01:00
Christian Hesse c2dc8a0837 mod/notification-matrix: do not exit with error 2024-03-12 20:37:57 +01:00
Christian Hesse 525e4325da mod/bridge-port-vlan: do not exit with error 2024-03-12 20:37:57 +01:00
Christian Hesse 39dd1f2a63 mod/bridge-port-to: do not exit with error 2024-03-12 20:37:57 +01:00
Christian Hesse eedf092930 mod/ssh-keys-import: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse 8c62c31604 mod/scriptrunonce: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse 699f09c282 mod/notification-telegram: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse fb88521ed5 mod/notification-ntfy: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse 279993e965 mod/notification-matrix: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse 9b8d3f7970 mod/notification-email: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse bdcf43a6f6 mod/bridge-port-vlan: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse b7983d18c4 mod/bridge-port-to: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse ed790dea6e mod/notification-email: remove extra spaces 2024-03-12 15:27:15 +01:00
Christian Hesse 4e1362aacc mod/inspectvar: remove extra spaces 2024-03-12 15:27:15 +01:00
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