diff options
-rw-r--r-- | gps-track | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" \ |