mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-19 09:09:11 +02:00
cloud-backup: add symbol in notification
This commit is contained in:
parent
075859c898
commit
e0fe98a274
2 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
:global DeviceInfo;
|
:global DeviceInfo;
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global SymbolForNotification;
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
# we are not interested in output, but print without count-only is
|
# we are not interested in output, but print without count-only is
|
||||||
|
@ -26,7 +27,7 @@
|
||||||
}
|
}
|
||||||
:local Cloud [ / system backup cloud get ([ find ]->0) ];
|
:local Cloud [ / system backup cloud get ([ find ]->0) ];
|
||||||
|
|
||||||
$SendNotification "Cloud backup" \
|
$SendNotification ([ $SymbolForNotification "floppy-disk" ] . "Cloud backup") \
|
||||||
("Uploaded backup for " . $Identity . " to cloud.\n\n" . \
|
("Uploaded backup for " . $Identity . " to cloud.\n\n" . \
|
||||||
[ $DeviceInfo ] . "\n\n" . \
|
[ $DeviceInfo ] . "\n\n" . \
|
||||||
"Name: " . $Cloud->"name" . "\n" . \
|
"Name: " . $Cloud->"name" . "\n" . \
|
||||||
|
|
|
@ -738,6 +738,7 @@
|
||||||
:local Symbols {
|
:local Symbols {
|
||||||
"cross-mark"="\E2\9D\8C";
|
"cross-mark"="\E2\9D\8C";
|
||||||
"fire"="\F0\9F\94\A5";
|
"fire"="\F0\9F\94\A5";
|
||||||
|
"floppy-disk"="\F0\9F\92\BE";
|
||||||
"high-voltage-sign"="\E2\9A\A1";
|
"high-voltage-sign"="\E2\9A\A1";
|
||||||
"incoming-envelope"="\F0\9F\93\A8";
|
"incoming-envelope"="\F0\9F\93\A8";
|
||||||
"sparkles"="\E2\9C\A8";
|
"sparkles"="\E2\9C\A8";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue