mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
daily-psk: use $FormatLine
This commit is contained in:
parent
b705ceae59
commit
944b2f5864
3 changed files with 12 additions and 9 deletions
|
@ -17,6 +17,7 @@
|
||||||
:global DailyPskQrCodeUrl;
|
:global DailyPskQrCodeUrl;
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
|
:global FormatLine;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
@ -86,9 +87,9 @@ $WaitFullyConnected;
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
||||||
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
||||||
"SSID: " . $Ssid . "\n" . \
|
[ $FormatLine "SSID" $Ssid ] . "\n" . \
|
||||||
"PSK: " . $NewPsk . "\n" . \
|
[ $FormatLine "PSK" $NewPsk ] . "\n" . \
|
||||||
"Date: " . $Date . "\n\n" . \
|
[ $FormatLine "Date" $Date ] . "\n\n" . \
|
||||||
"A client device specific rule must not exist!"); link=$Link });
|
"A client device specific rule must not exist!"); link=$Link });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
:global DailyPskQrCodeUrl;
|
:global DailyPskQrCodeUrl;
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
|
:global FormatLine;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
@ -85,9 +86,9 @@ $WaitFullyConnected;
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
||||||
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
||||||
"SSID: " . $Ssid . "\n" . \
|
[ $FormatLine "SSID" $Ssid ] . "\n" . \
|
||||||
"PSK: " . $NewPsk . "\n" . \
|
[ $FormatLine "PSK" $NewPsk ] . "\n" . \
|
||||||
"Date: " . $Date . "\n\n" . \
|
[ $FormatLine "Date" $Date ] . "\n\n" . \
|
||||||
"A client device specific rule must not exist!"); link=$Link });
|
"A client device specific rule must not exist!"); link=$Link });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
:global DailyPskQrCodeUrl;
|
:global DailyPskQrCodeUrl;
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
|
:global FormatLine;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
@ -93,9 +94,9 @@ $WaitFullyConnected;
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
||||||
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
||||||
"SSID: " . $Ssid . "\n" . \
|
[ $FormatLine "SSID" $Ssid ] . "\n" . \
|
||||||
"PSK: " . $NewPsk . "\n" . \
|
[ $FormatLine "PSK" $NewPsk ] . "\n" . \
|
||||||
"Date: " . $Date . "\n\n" . \
|
[ $FormatLine "Date" $Date ] . "\n\n" . \
|
||||||
"A client device specific rule must not exist!"); link=$Link });
|
"A client device specific rule must not exist!"); link=$Link });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue