aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-09-18 13:08:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-09-18 13:08:29 +0200
commit1367a59c27706c4a2e47f0f3536ef851031468e7 (patch)
tree4c6c32364e73d70e51acbcfbb46ccf9dfda977bc
parent49737af6d191ec636030b1d408d3fb318ff9c9d0 (diff)
daily-psk: add symbol in notification
-rw-r--r--daily-psk.capsman3
-rw-r--r--daily-psk.local3
-rw-r--r--daily-psk.template3
-rw-r--r--global-functions1
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";