mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-25 21:34:30 +02:00
gps-track: log about coordinate-format
This commit is contained in:
parent
eda4d10c0a
commit
9c71b191c1
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
:global GpsTrackUrl;
|
:global GpsTrackUrl;
|
||||||
|
|
||||||
|
:local CoordinateFormat [ /system gps get coordinate-format ];
|
||||||
:local Gps [ / system gps monitor once as-value ];
|
:local Gps [ / system gps monitor once as-value ];
|
||||||
|
|
||||||
if ($Gps->"valid" = true) do={
|
if ($Gps->"valid" = true) do={
|
||||||
|
@ -18,7 +19,7 @@ if ($Gps->"valid" = true) do={
|
||||||
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
||||||
"\"identity\":\"" . $Identity . "\"" . \
|
"\"identity\":\"" . $Identity . "\"" . \
|
||||||
"}");
|
"}");
|
||||||
:log debug ("Sending GPS data for tracking: " . \
|
:log debug ("Sending GPS data in " . $CoordinateFormat . " format: " . \
|
||||||
"lat: " . ($Gps->"latitude") . " " . \
|
"lat: " . ($Gps->"latitude") . " " . \
|
||||||
"lon: " . ($Gps->"longitude"));
|
"lon: " . ($Gps->"longitude"));
|
||||||
} else={
|
} else={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue