aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 20:54:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commit354aedd98e308ca860796c2f8fdd53ea9eedbb17 (patch)
tree064a05905bc9384e95b7e20a72a6ad390eb558f0
parent1ca3e8b59fbd4374ba9d94d83944411ef0d81ae2 (diff)
daily-psk: use $SendNotification2
-rw-r--r--daily-psk.capsman8
-rw-r--r--daily-psk.local8
-rw-r--r--daily-psk.template8
3 files changed, 12 insertions, 12 deletions
diff --git a/daily-psk.capsman b/daily-psk.capsman
index 7d2c2ae..eec3115 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,12 @@ $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 ({ 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 });
}
}
}
diff --git a/daily-psk.local b/daily-psk.local
index 6186ddc..473238e 100644
--- a/daily-psk.local
+++ b/daily-psk.local
@@ -17,7 +17,7 @@
:global Identity;
:global LogPrintExit2;
-:global SendNotification;
+:global SendNotification2;
:global SymbolForNotification;
:global UrlEncode;
:global WaitForFile;
@@ -81,12 +81,12 @@ $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 ({ 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 });
}
}
}
diff --git a/daily-psk.template b/daily-psk.template
index 42abba5..cfb7ae7 100644
--- a/daily-psk.template
+++ b/daily-psk.template
@@ -18,7 +18,7 @@
:global Identity;
:global LogPrintExit2;
-:global SendNotification;
+:global SendNotification2;
:global SymbolForNotification;
:global UrlEncode;
:global WaitForFile;
@@ -87,12 +87,12 @@ $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 ({ 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 });
}
}
}