diff options
-rw-r--r-- | gps-track | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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") . "\"," . \ |