mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-25 02:58:37 +02:00
check-lte-firmware-upgrade: use $SendNotification2
This commit is contained in:
parent
bf315c15f6
commit
4fe11fadee
1 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
:global CharacterReplace;
|
:global CharacterReplace;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global SendNotification;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
|
||||||
:foreach Interface in=[ / interface lte find ] do={
|
:foreach Interface in=[ / interface lte find ] do={
|
||||||
|
@ -29,12 +29,12 @@
|
||||||
} else={
|
} else={
|
||||||
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
|
||||||
:local Info [ / interface lte info $Interface once as-value ];
|
:local Info [ / interface lte info $Interface once as-value ];
|
||||||
$SendNotification ([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade") \
|
$SendNotification2 ({ subject=([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade"); \
|
||||||
("A new firmware version " . ($Firmware->"latest") . " is available for " . \
|
message=("A new firmware version " . ($Firmware->"latest") . " is available for " . \
|
||||||
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
|
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
|
||||||
"Interface: " . [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] . "\n" . \
|
"Interface: " . [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] . "\n" . \
|
||||||
"Installed: " . ($Firmware->"installed") . "\n" . \
|
"Installed: " . ($Firmware->"installed") . "\n" . \
|
||||||
"Available: " . ($Firmware->"latest")) "" "true";
|
"Available: " . ($Firmware->"latest")); silent=true });
|
||||||
:set SentLteFirmwareUpgradeNotification ($Firmware->"latest");
|
:set SentLteFirmwareUpgradeNotification ($Firmware->"latest");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue