From a2450dc9f0906ee7d99e0108253d06ba09a75ca2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 18 Feb 2021 23:43:15 +0100 Subject: gps-track: fix syntax --- gps-track | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gps-track b/gps-track index 5fbe240..31e12e9 100644 --- a/gps-track +++ b/gps-track @@ -14,12 +14,11 @@ :global LogPrintExit; -:local CoordinateFormat [ /system gps get coordinate-format ]; +: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") . "\"," . \ -- cgit v1.2.3-70-g09d2