aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.capsman
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-28 20:16:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 20:16:08 +0200
commitda877612209b217fdfd5429889b6d7284bfd10a5 (patch)
tree17fae6776664e6c550c3ba3b2ea7025779b9c35e /daily-psk.capsman
parentd4c9d1c577d14991a63f285e57fcf2cfaa2d5cd4 (diff)
parent56b75237754eb065aecb932b3082ba0ca29c3f7c (diff)
Merge branch 'notifications' into next
Diffstat (limited to 'daily-psk.capsman')
-rw-r--r--daily-psk.capsman9
1 files changed, 5 insertions, 4 deletions
diff --git a/daily-psk.capsman b/daily-psk.capsman
index 7d2c2ae..ca95fb8 100644
--- a/daily-psk.capsman
+++ b/daily-psk.capsman
@@ -17,7 +17,7 @@
:global Identity;
:global LogPrintExit2;
-:global SendNotification;
+:global SendNotification2;
:global SymbolForNotification;
:global UrlEncode;
:global WaitForFile;
@@ -81,12 +81,13 @@ $WaitFullyConnected;
:set Seen ($Seen, $Ssid);
:local Link ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
"?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]);
- $SendNotification ([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid) \
- ("This is the daily PSK on " . $Identity . ":\n\n" . \
+ $SendNotification2 ({ origin=$0; \
+ subject=([ $SymbolForNotification "calendar" ] . "daily PSK " . $Ssid); \
+ message=("This is the daily PSK on " . $Identity . ":\n\n" . \
"SSID: " . $Ssid . "\n" . \
"PSK: " . $NewPsk . "\n" . \
"Date: " . $Date . "\n\n" . \
- "A client device specific rule must not exist!") $Link;
+ "A client device specific rule must not exist!"); link=$Link });
}
}
}