mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-30 13:14:27 +02:00
gps-track: fix syntax
This commit is contained in:
parent
4b945da907
commit
a2450dc9f0
1 changed files with 3 additions and 4 deletions
|
@ -17,9 +17,8 @@
|
|||
:local CoordinateFormat [ / system gps get coordinate-format ];
|
||||
:local Gps [ / system gps monitor once as-value ];
|
||||
|
||||
if ($Gps->"valid" = true) do={
|
||||
:tool fetch check-certificate=yes-without-crl \
|
||||
$GpsTrackUrl output=none \
|
||||
:if ($Gps->"valid" = true) do={
|
||||
/ tool fetch check-certificate=yes-without-crl $GpsTrackUrl output=none \
|
||||
http-method=post http-header-field="Content-Type: application/json" \
|
||||
http-data=("{" . \
|
||||
"\"lat\":\"" . ($Gps->"latitude") . "\"," . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue