aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-18 23:43:15 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-18 23:43:15 +0100
commita2450dc9f0906ee7d99e0108253d06ba09a75ca2 (patch)
tree516ef75c75fc891782eac230f19f97110f6d743e
parent4b945da9078be5f6f236cb4cbb5490fad22f9497 (diff)
gps-track: fix syntax
-rw-r--r--gps-track7
1 files 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") . "\"," . \