diff options
author | Christian Hesse <mail@eworm.de> | 2021-02-18 23:43:15 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-02-18 23:43:15 +0100 |
commit | a2450dc9f0906ee7d99e0108253d06ba09a75ca2 (patch) | |
tree | 516ef75c75fc891782eac230f19f97110f6d743e /gps-track | |
parent | 4b945da9078be5f6f236cb4cbb5490fad22f9497 (diff) |
gps-track: fix syntax
Diffstat (limited to 'gps-track')
-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") . "\"," . \ |