gps-track: fix syntax

This commit is contained in:
Christian Hesse 2021-02-18 23:43:15 +01:00
parent 4b945da907
commit a2450dc9f0

View file

@ -14,12 +14,11 @@
:global LogPrintExit; :global LogPrintExit;
: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 \ / tool fetch check-certificate=yes-without-crl $GpsTrackUrl output=none \
$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") . "\"," . \