From 1367a59c27706c4a2e47f0f3536ef851031468e7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 18 Sep 2020 13:08:29 +0200 Subject: daily-psk: add symbol in notification --- daily-psk.capsman | 3 ++- daily-psk.local | 3 ++- daily-psk.template | 3 ++- global-functions | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/daily-psk.capsman b/daily-psk.capsman index a60f41d..33208f5 100644 --- a/daily-psk.capsman +++ b/daily-psk.capsman @@ -14,6 +14,7 @@ :global LogPrintExit; :global SendNotification; +:global SymbolForNotification; :global UrlEncode; :global WaitForFile; :global WaitFullyConnected; @@ -87,7 +88,7 @@ $WaitFullyConnected; :set Attach ""; } - $SendNotification ("daily PSK " . $Ssid) \ + $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \ ("This is the daily PSK on " . $Identity . ":\n\n" . \ "SSID: " . $Ssid . "\n" . \ "PSK: " . $NewPsk . "\n" . \ diff --git a/daily-psk.local b/daily-psk.local index 0d098a0..13a878e 100644 --- a/daily-psk.local +++ b/daily-psk.local @@ -14,6 +14,7 @@ :global LogPrintExit; :global SendNotification; +:global SymbolForNotification; :global UrlEncode; :global WaitForFile; :global WaitFullyConnected; @@ -87,7 +88,7 @@ $WaitFullyConnected; :set Attach ""; } - $SendNotification ("daily PSK " . $Ssid) \ + $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \ ("This is the daily PSK on " . $Identity . ":\n\n" . \ "SSID: " . $Ssid . "\n" . \ "PSK: " . $NewPsk . "\n" . \ diff --git a/daily-psk.template b/daily-psk.template index f462fe2..fd5bd2b 100644 --- a/daily-psk.template +++ b/daily-psk.template @@ -15,6 +15,7 @@ :global LogPrintExit; :global SendNotification; +:global SymbolForNotification; :global UrlEncode; :global WaitForFile; :global WaitFullyConnected; @@ -93,7 +94,7 @@ $WaitFullyConnected; :set Attach ""; } - $SendNotification ("daily PSK " . $Ssid) \ + $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \ ("This is the daily PSK on " . $Identity . ":\n\n" . \ "SSID: " . $Ssid . "\n" . \ "PSK: " . $NewPsk . "\n" . \ diff --git a/global-functions b/global-functions index ad07a9c..84d8d75 100644 --- a/global-functions +++ b/global-functions @@ -783,6 +783,7 @@ :set SymbolByUnicodeName do={ :local Symbols { "alarm-clock"="\E2\8F\B0"; + "calendar"="\F0\9F\93\85"; "cross-mark"="\E2\9D\8C"; "fire"="\F0\9F\94\A5"; "floppy-disk"="\F0\9F\92\BE"; -- cgit v1.2.3-70-g09d2