global-functions: add identity tag in $SendNotification

... and send subject in telegram message.
This commit is contained in:
Christian Hesse 2018-11-27 14:08:14 +01:00
parent c4f8c1ad52
commit 6e4d715937
9 changed files with 13 additions and 11 deletions

View file

@ -42,7 +42,7 @@
$datetime . " connected to SSID " . $ssid . ", interface " . $interface);
/ log info $message;
/ %PATH% access-list add place-before=$"place-before" comment=$message mac-address=$mac disabled=yes;
$SendNotification ("[" . $identity . "] " . $mac . " connected to " . $ssid) \
$SendNotification ($mac . " connected to " . $ssid) \
("A device with unknown MAC address connected to " . $ssid . " on " . $identity . ".\n\n" . \
"Controller: " . $identity . "\n" . \
"Interface: " . $interface . "\n" . \