mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 10:04:19 +02:00
gps-track: switch to $LogPrint
This commit is contained in:
parent
9dd1b768ee
commit
5c567604ff
|
@ -17,7 +17,7 @@
|
||||||
:global GpsTrackUrl;
|
:global GpsTrackUrl;
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global LogPrintExit2;
|
:global LogPrint;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global WaitFullyConnected;
|
:global WaitFullyConnected;
|
||||||
|
|
||||||
|
@ -38,13 +38,13 @@
|
||||||
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
||||||
"\"identity\":\"" . $Identity . "\"" . \
|
"\"identity\":\"" . $Identity . "\"" . \
|
||||||
"}") as-value;
|
"}") as-value;
|
||||||
$LogPrintExit2 debug $ScriptName ("Sending GPS data in " . $CoordinateFormat . " format: " . \
|
$LogPrint debug $ScriptName ("Sending GPS data in " . $CoordinateFormat . " format: " . \
|
||||||
"lat: " . ($Gps->"latitude") . " " . \
|
"lat: " . ($Gps->"latitude") . " " . \
|
||||||
"lon: " . ($Gps->"longitude")) false;
|
"lon: " . ($Gps->"longitude"));
|
||||||
} on-error={
|
} on-error={
|
||||||
$LogPrintExit2 warning $ScriptName ("Failed sending GPS data!") false;
|
$LogPrint warning $ScriptName ("Failed sending GPS data!");
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrintExit2 debug $ScriptName ("GPS data not valid.") false;
|
$LogPrint debug $ScriptName ("GPS data not valid.");
|
||||||
}
|
}
|
||||||
} on-error={ }
|
} on-error={ }
|
||||||
|
|
Loading…
Reference in a new issue