aboutsummaryrefslogtreecommitdiffstats
path: root/gps-track
diff options
context:
space:
mode:
Diffstat (limited to 'gps-track')
-rw-r--r--gps-track2
1 files changed, 2 insertions, 0 deletions
diff --git a/gps-track b/gps-track
index 5a828fd..158821d 100644
--- a/gps-track
+++ b/gps-track
@@ -11,6 +11,8 @@
:local Gps [ / system gps monitor once as-value ];
if ($Gps->"valid" = true) do={
+ :set ($Gps->"latitude") [ :pick ($Gps->"latitude") 0 [ :find ($Gps->"latitude") "\00" ] ];
+ :set ($Gps->"longitude") [ :pick ($Gps->"longitude") 0 [ :find ($Gps->"longitude") "\00" ] ];
:tool fetch mode=https check-certificate=yes-without-crl \
$GpsTrackUrl keep-result=no \
http-method=post http-content-type="application/json" \