mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-17 17:42:32 +02:00
gps-track: RouterOS v7 path syntax
This commit is contained in:
parent
294aff9c02
commit
270e608d56
1 changed files with 3 additions and 3 deletions
|
@ -15,11 +15,11 @@
|
||||||
|
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
|
||||||
:local CoordinateFormat [ / system gps get coordinate-format ];
|
: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={
|
||||||
/ tool fetch check-certificate=yes-without-crl $GpsTrackUrl output=none \
|
/tool/fetch check-certificate=yes-without-crl $GpsTrackUrl output=none \
|
||||||
http-method=post http-header-field="Content-Type: application/json" \
|
http-method=post http-header-field="Content-Type: application/json" \
|
||||||
http-data=("{" . \
|
http-data=("{" . \
|
||||||
"\"lat\":\"" . ($Gps->"latitude") . "\"," . \
|
"\"lat\":\"" . ($Gps->"latitude") . "\"," . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue