daily-psk: add symbol in notification

This commit is contained in:
Christian Hesse 2020-09-18 13:08:29 +02:00
parent 49737af6d1
commit 1367a59c27
4 changed files with 7 additions and 3 deletions

View file

@ -14,6 +14,7 @@
:global LogPrintExit; :global LogPrintExit;
:global SendNotification; :global SendNotification;
:global SymbolForNotification;
:global UrlEncode; :global UrlEncode;
:global WaitForFile; :global WaitForFile;
:global WaitFullyConnected; :global WaitFullyConnected;
@ -87,7 +88,7 @@ $WaitFullyConnected;
:set Attach ""; :set Attach "";
} }
$SendNotification ("daily PSK " . $Ssid) \ $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
("This is the daily PSK on " . $Identity . ":\n\n" . \ ("This is the daily PSK on " . $Identity . ":\n\n" . \
"SSID: " . $Ssid . "\n" . \ "SSID: " . $Ssid . "\n" . \
"PSK: " . $NewPsk . "\n" . \ "PSK: " . $NewPsk . "\n" . \

View file

@ -14,6 +14,7 @@
:global LogPrintExit; :global LogPrintExit;
:global SendNotification; :global SendNotification;
:global SymbolForNotification;
:global UrlEncode; :global UrlEncode;
:global WaitForFile; :global WaitForFile;
:global WaitFullyConnected; :global WaitFullyConnected;
@ -87,7 +88,7 @@ $WaitFullyConnected;
:set Attach ""; :set Attach "";
} }
$SendNotification ("daily PSK " . $Ssid) \ $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
("This is the daily PSK on " . $Identity . ":\n\n" . \ ("This is the daily PSK on " . $Identity . ":\n\n" . \
"SSID: " . $Ssid . "\n" . \ "SSID: " . $Ssid . "\n" . \
"PSK: " . $NewPsk . "\n" . \ "PSK: " . $NewPsk . "\n" . \

View file

@ -15,6 +15,7 @@
:global LogPrintExit; :global LogPrintExit;
:global SendNotification; :global SendNotification;
:global SymbolForNotification;
:global UrlEncode; :global UrlEncode;
:global WaitForFile; :global WaitForFile;
:global WaitFullyConnected; :global WaitFullyConnected;
@ -93,7 +94,7 @@ $WaitFullyConnected;
:set Attach ""; :set Attach "";
} }
$SendNotification ("daily PSK " . $Ssid) \ $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
("This is the daily PSK on " . $Identity . ":\n\n" . \ ("This is the daily PSK on " . $Identity . ":\n\n" . \
"SSID: " . $Ssid . "\n" . \ "SSID: " . $Ssid . "\n" . \
"PSK: " . $NewPsk . "\n" . \ "PSK: " . $NewPsk . "\n" . \

View file

@ -783,6 +783,7 @@
:set SymbolByUnicodeName do={ :set SymbolByUnicodeName do={
:local Symbols { :local Symbols {
"alarm-clock"="\E2\8F\B0"; "alarm-clock"="\E2\8F\B0";
"calendar"="\F0\9F\93\85";
"cross-mark"="\E2\9D\8C"; "cross-mark"="\E2\9D\8C";
"fire"="\F0\9F\94\A5"; "fire"="\F0\9F\94\A5";
"floppy-disk"="\F0\9F\92\BE"; "floppy-disk"="\F0\9F\92\BE";