Compare commits
10 commits
8a904dadf4
...
699be25b64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
699be25b64 | ||
|
|
79c98a4b3a | ||
|
|
e49f68c1f2 | ||
|
|
2f4e83990a | ||
|
|
77dc0565a9 | ||
|
|
564c7f6bbc | ||
|
|
6718b90780 | ||
|
|
e6faf346c2 | ||
|
|
295fa3144a | ||
|
|
b65f3512d0 |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 5 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 6 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
|
@ -225,7 +225,7 @@ cleanup add a scheduler entry.
|
|||
|
||||
$ScriptInstallUpdate dhcp-to-dns,lease-script;
|
||||
/ip/dhcp-server/set lease-script=lease-script [ find ];
|
||||
/system/scheduler/add name="dhcp-to-dns" interval=5m on-event="/system/script/run dhcp-to-dns;";
|
||||
/system/scheduler/add name="dhcp-to-dns" interval=5m start-time=startup on-event="/system/script/run dhcp-to-dns;";
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
doc/mod/inspectvar.d/01-inspectvar.avif
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
|
@ -33,7 +33,7 @@ Call the function `$InspectVar` with a variable as parameter:
|
|||
|
||||
$InspectVar $ModeButton;
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
[⬅️ Go back to main README](../../README.md)
|
||||
|
|
|
|||
BIN
doc/mod/ipcalc.d/01-ipcalc.avif
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
doc/mod/ipcalc.d/02-ipcalcreturn.avif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
|
@ -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)
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
BIN
doc/mod/notification-telegram.d/02-getchatid.avif
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
|
@ -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.
|
||||
|
|
|
|||
BIN
doc/mod/scriptrunonce.d/01-scriptrunonce.avif
Normal file
|
After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* copy code to clipboard */
|
||||
function CopyToClipboard(element) {
|
||||
element.style.filter = 'invert(1)';
|
||||
navigator.clipboard.writeText(element.firstElementChild.innerHTML);
|
||||
navigator.clipboard.writeText(element.firstElementChild.textContent);
|
||||
setTimeout(function() {
|
||||
element.style.filter = 'invert(0)';
|
||||
}, 100);
|
||||
|
|
|
|||