mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
daily-psk: use $SendNotification2
This commit is contained in:
parent
1ca3e8b59f
commit
354aedd98e
3 changed files with 12 additions and 12 deletions
|
@ -17,7 +17,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
@ -81,12 +81,12 @@ $WaitFullyConnected;
|
||||||
:set Seen ($Seen, $Ssid);
|
:set Seen ($Seen, $Ssid);
|
||||||
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
||||||
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
|
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
|
||||||
$SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
|
$SendNotification2 ({ subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
||||||
("This is the daily PSK on " . $Identity . ":\n\n" . \
|
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
||||||
"SSID: " . $Ssid . "\n" . \
|
"SSID: " . $Ssid . "\n" . \
|
||||||
"PSK: " . $NewPsk . "\n" . \
|
"PSK: " . $NewPsk . "\n" . \
|
||||||
"Date: " . $Date . "\n\n" . \
|
"Date: " . $Date . "\n\n" . \
|
||||||
"A client device specific rule must not exist!") $Link;
|
"A client device specific rule must not exist!"); link=$Link });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
@ -81,12 +81,12 @@ $WaitFullyConnected;
|
||||||
:set Seen ($Seen, $Ssid);
|
:set Seen ($Seen, $Ssid);
|
||||||
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
||||||
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
|
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
|
||||||
$SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
|
$SendNotification2 ({ subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
||||||
("This is the daily PSK on " . $Identity . ":\n\n" . \
|
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
||||||
"SSID: " . $Ssid . "\n" . \
|
"SSID: " . $Ssid . "\n" . \
|
||||||
"PSK: " . $NewPsk . "\n" . \
|
"PSK: " . $NewPsk . "\n" . \
|
||||||
"Date: " . $Date . "\n\n" . \
|
"Date: " . $Date . "\n\n" . \
|
||||||
"A client device specific rule must not exist!") $Link;
|
"A client device specific rule must not exist!"); link=$Link });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
@ -87,12 +87,12 @@ $WaitFullyConnected;
|
||||||
:set Seen ($Seen, $Ssid);
|
:set Seen ($Seen, $Ssid);
|
||||||
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
||||||
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
|
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
|
||||||
$SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
|
$SendNotification2 ({ subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
|
||||||
("This is the daily PSK on " . $Identity . ":\n\n" . \
|
message=("This is the daily PSK on " . $Identity . ":\n\n" . \
|
||||||
"SSID: " . $Ssid . "\n" . \
|
"SSID: " . $Ssid . "\n" . \
|
||||||
"PSK: " . $NewPsk . "\n" . \
|
"PSK: " . $NewPsk . "\n" . \
|
||||||
"Date: " . $Date . "\n\n" . \
|
"Date: " . $Date . "\n\n" . \
|
||||||
"A client device specific rule must not exist!") $Link;
|
"A client device specific rule must not exist!"); link=$Link });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue