mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-06-06 02:32:34 +00:00
Compare commits
97 commits
11ac73aa9f
...
75b7252c11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75b7252c11 | ||
|
|
c2538fb7a6 | ||
|
|
63f394c3e8 | ||
|
|
fd96f8bbc3 | ||
|
|
094683e104 | ||
|
|
49dd935e03 | ||
|
|
62b48e3002 | ||
|
|
e6ac506129 | ||
|
|
b2086fe336 | ||
|
|
315826db13 | ||
|
|
9f041b09ff | ||
|
|
4c4db2f234 | ||
|
|
fb4bb23204 | ||
|
|
43ab7e5f5f | ||
|
|
368449178a | ||
|
|
ff7cc16dca | ||
|
|
645a343970 | ||
|
|
cb3ebc122f | ||
|
|
2357768a31 | ||
|
|
64488eb014 | ||
|
|
b71c87a1f9 | ||
|
|
957a5121e4 | ||
|
|
4ec8a097b3 | ||
|
|
0fe17de762 | ||
|
|
624c2bc9b3 | ||
|
|
2c626d8ab6 | ||
|
|
ac5db7dc71 | ||
|
|
b6f28bb5ec | ||
|
|
c43a5df335 | ||
|
|
2e2e4f4130 | ||
|
|
970b6d9648 | ||
|
|
6910388bd0 | ||
|
|
586e10c407 | ||
|
|
8a16568f58 | ||
|
|
d7e9e84811 | ||
|
|
0e5cae02ff | ||
|
|
6d1d82bc14 | ||
|
|
ecefdc94b4 | ||
|
|
4ef067fd19 | ||
|
|
260199aada | ||
|
|
2fc74b8ad7 | ||
|
|
e0cb1622ca | ||
|
|
94ae6b5cfe | ||
|
|
bbe42fbd8f | ||
|
|
2af110300a | ||
|
|
6c12552276 | ||
|
|
d407c17a47 | ||
|
|
7b18953cf8 | ||
|
|
434c523f85 | ||
|
|
759ac0f725 | ||
|
|
c0a952c2b0 | ||
|
|
ec2c2e20bf | ||
|
|
04e0a73f6a | ||
|
|
93055d40eb | ||
|
|
8d150e3864 | ||
|
|
6fe9f90575 | ||
|
|
1dbdca15ca | ||
|
|
4527681fa8 | ||
|
|
7b610bd48d | ||
|
|
0d35c825a0 | ||
|
|
89eaaf3fea | ||
|
|
488cb3cf90 | ||
|
|
f58d503a40 | ||
|
|
a792ed0c52 | ||
|
|
e08b6d80a3 | ||
|
|
c4de33e064 | ||
|
|
8a1dc2205e | ||
|
|
84832aed73 | ||
|
|
c9dead9e0f | ||
|
|
6d5ee0c792 | ||
|
|
ba06ed446c | ||
|
|
4c5be0c7be | ||
|
|
072afadb80 | ||
|
|
edcafc8fc0 | ||
|
|
38a8d5caef | ||
|
|
b79d559ca8 | ||
|
|
d44f649a1b | ||
|
|
442b9f1171 | ||
|
|
95e2fc05b8 | ||
|
|
7f5b053b4d | ||
|
|
5e5f5a38bf | ||
|
|
da8f3abfc8 | ||
|
|
cb76d16317 | ||
|
|
813db8aad1 | ||
|
|
e210b1e215 | ||
|
|
7149d79980 | ||
|
|
665ae36b23 | ||
|
|
500cfdba3e | ||
|
|
08a6725fcb | ||
|
|
00d262b630 | ||
|
|
19f8e7e400 | ||
|
|
9c95587e55 | ||
|
|
ceb06fd9ea | ||
|
|
2b947691bd | ||
|
|
cb58973796 | ||
|
|
0eca62bab8 | ||
|
|
861c6db278 |
25 changed files with 54 additions and 44 deletions
|
|
@ -226,7 +226,7 @@ everything is up-to-date it will not produce any output.
|
|||
If the update includes news or requires configuration changes a notification
|
||||
is sent - in addition to terminal output and log messages.
|
||||
|
||||

|
||||

|
||||
|
||||
Adding a script
|
||||
---------------
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ markdown -f toc,idanchor "${1}" | sed \
|
|||
-e '/<h[1234] /s|-2[1789cd]-||g' \
|
||||
-e '/<h[1234] /s|-3[f]-||g' \
|
||||
-e '/^<pre>/s|pre|pre class="code" onclick="CopyToClipboard(this)"|g' \
|
||||
-e '/<img src=".*" alt="[a-z]\+: .*" \/>/s|alt="\([a-z]\+\):|class="\1" alt="\1:|' \
|
||||
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||
|
||||
sed \
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
</span>
|
||||
|
||||
<p class="foot">RouterOS Scripts documentation generated on <i>__DATE__</i> for <i>__VERSION__</i><br />
|
||||
Copyright © 2013-2026 Christian Hesse <mail@eworm.de></p>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<script type="text/javascript" src="__GENERAL__/clipboard.js"></script>
|
||||
</head><body>
|
||||
|
||||
<table><tr>
|
||||
<table class="head"><tr>
|
||||
<td><img src="__GENERAL__/eworm-meadow.avif" alt="eworm on meadow" /></td>
|
||||
<td><img src="__GENERAL__/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
|
||||
<td class="head"><span class="top">RouterOS Scripts</span><br />
|
||||
|
|
@ -14,3 +14,4 @@
|
|||
</tr></table>
|
||||
<hr />
|
||||
|
||||
<span class="markdown">
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ something that differentiates? Color it!</p>
|
|||
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
|
||||
logo and download it.</p>
|
||||
|
||||
<p><img src="logo-color.d/browser-01.avif" alt="Screenshot Browser 01"></p>
|
||||
<p><img src="logo-color.d/browser-02.avif" alt="Screenshot Browser 02"></p>
|
||||
<p><img src="logo-color.d/browser-03.avif" alt="Screenshot Browser 03"></p>
|
||||
<p><img src="logo-color.d/browser-01.avif" class="screenshot" alt="screenshot: browser 01"></p>
|
||||
<p><img src="logo-color.d/browser-02.avif" class="screenshot" alt="screenshot: browser 02"></p>
|
||||
<p><img src="logo-color.d/browser-03.avif" class="screenshot" alt="screenshot: browser 03"></p>
|
||||
|
||||
<p>(This example is with
|
||||
<a href="https://www.mozilla.org/firefox/">Mozilla Firefox ↗️</a>. The workflow
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ This script uploads
|
|||
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ configuration export (`/export terse show-sensitive`) to external server.
|
|||
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ certificates that are still about to expire.
|
|||
|
||||
### Sample notifications
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -40,27 +40,27 @@ sensors available in hardware:
|
|||
|
||||
#### CPU utilization
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
#### RAM utilization (low available RAM)
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
#### Voltage
|
||||
|
||||

|
||||

|
||||
|
||||
#### Temperature
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
#### PSU state
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ upgrades. Currently supported LTE hardware:
|
|||
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ and sends a notification to warn before expiration.
|
|||
|
||||
### Sample notifications
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ automatically is supported.
|
|||
|
||||
### Sample notifications
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
@ -88,7 +88,7 @@ Be notified when run from scheduler or run it manually:
|
|||
|
||||
If an update is found you can install it right away.
|
||||
|
||||

|
||||

|
||||
|
||||
Installing script [packages-update](packages-update.md) gives extra options.
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ and modify it to your needs.
|
|||
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ passphrase to a pseudo-random string daily.
|
|||
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ log messages and forwards them via notification.
|
|||
|
||||
### Sample notifications
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Call the function `$InspectVar` with a variable as parameter:
|
|||
|
||||
$InspectVar $ModeButton;
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
[⬅️ Go back to main README](../../README.md)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ It expects an IP address in CIDR notation as argument.
|
|||
|
||||
$IPCalc 192.168.88.1/24;
|
||||
|
||||

|
||||

|
||||
|
||||
### IPCalcReturn
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ the information in a named array.
|
|||
|
||||
:put ([ $IPCalcReturn 192.168.88.1/24 ]->"broadcast");
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
[⬅️ Go back to main README](../../README.md)
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ and the [First Login ↗️](https://gotify.net/docs/first-login) setup. Once
|
|||
you have a user and account you can start creating apps. Each app is an
|
||||
independent notification feed for a device or application.
|
||||
|
||||

|
||||

|
||||
|
||||
On creation apps are assigned a *Token* for authentification, you will need
|
||||
that in configuration.
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ and write first part of the configuration:
|
|||
|
||||
$SetupMatrixAuthenticate "@example:matrix.org" "v3ry-s3cr3t";
|
||||
|
||||

|
||||

|
||||
|
||||
The configuration is written to a new configuration snippet
|
||||
`global-config-overlay.d/mod/notification-matrix`.
|
||||
|
|
@ -94,7 +94,7 @@ the invite.
|
|||
|
||||
$SetupMatrixJoinRoom "!WUcxpSjKyxSGelouhA:matrix.org";
|
||||
|
||||

|
||||

|
||||
|
||||
The configuration is appended to the configuration snippet
|
||||
`global-config-overlay.d/mod/notification-matrix`.
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ Configuration
|
|||
Open Telegram, then start a chat with [BotFather ↗️](https://t.me/BotFather) and
|
||||
create your own bot:
|
||||
|
||||

|
||||

|
||||
|
||||
Set that token from *BotFather* (use your own!) to `TelegramTokenId`, for
|
||||
now just temporarily:
|
||||
|
|
@ -49,7 +49,7 @@ then send your first message. Any text will do. On your device run
|
|||
|
||||
$GetTelegramChatId;
|
||||
|
||||

|
||||

|
||||
|
||||
Finally edit `global-config-overlay`, add `TelegramTokenId` with the token
|
||||
from *BotFather* and `TelegramChatId` with your retrieved chat id. Then
|
||||
|
|
@ -104,7 +104,7 @@ Tips & Tricks
|
|||
You can use a profile photo for your bot to make it recognizable. Open the
|
||||
chat with [BotFather ↗️](https://t.me/BotFather) and set it there.
|
||||
|
||||

|
||||

|
||||
|
||||
Have a look at my [Logo Color Changer](../../contrib/logo-color.html)
|
||||
to create a colored version of this scripts' logo.
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ The function `$ScriptRunOnce` expects an URL (or name if
|
|||
|
||||
$ScriptRunOnce https://rsc.eworm.de/main/doc/mod/scriptrunonce.d/hello-world.rsc;
|
||||
|
||||

|
||||

|
||||
|
||||
Giving multiple scripts is possible, separated by comma.
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ optional parent host is not down to avoid false alerts.
|
|||
|
||||
### Sample notifications
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ A broadband interface with SMS support is required.
|
|||
|
||||
### Sample notification
|
||||
|
||||

|
||||

|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -61,13 +61,13 @@ containing `! identity` (exclamation mark, optional space and system's
|
|||
identity). To query all dynamic ip addresses form a device named "*MikroTik*"
|
||||
send `! MikroTik`, followed by `/ip/address/print where dynamic;`.
|
||||
|
||||

|
||||

|
||||
|
||||
Devices can be grouped to chat with them simultaneously. The default group
|
||||
"*all*" can be activated by sending `! @all`, which will make all devices
|
||||
act on your commands.
|
||||
|
||||

|
||||

|
||||
|
||||
Send a single exclamation mark or non-existent identity to make all
|
||||
devices passive again.
|
||||
|
|
@ -78,7 +78,7 @@ Let's assume you received a message from a device before, and want to send
|
|||
a command to that device. No need to activate it, you can just reply to
|
||||
that message.
|
||||
|
||||

|
||||

|
||||
|
||||
Associated messages are cleared on device reboot.
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,12 @@ div.content {
|
|||
hr {
|
||||
clear: both;
|
||||
}
|
||||
img.notification {
|
||||
box-shadow: 5px 5px 7px gray;
|
||||
}
|
||||
img.screenshot {
|
||||
box-shadow: 5px 5px 7px gray;
|
||||
}
|
||||
img.logo {
|
||||
float: left;
|
||||
/* border-radius: 50%; */
|
||||
|
|
@ -66,6 +72,7 @@ pre {
|
|||
pre.code {
|
||||
background-color: #f8f8f8;
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 5px 5px 7px gray;
|
||||
overflow: auto;
|
||||
padding: 6px 10px;
|
||||
border-radius: 3px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue