mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
gps-track: strip trailing binary zeros
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
:local Gps [ / system gps monitor once as-value ];
|
:local Gps [ / system gps monitor once as-value ];
|
||||||
|
|
||||||
if ($Gps->"valid" = true) do={
|
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 \
|
:tool fetch mode=https check-certificate=yes-without-crl \
|
||||||
$GpsTrackUrl keep-result=no \
|
$GpsTrackUrl keep-result=no \
|
||||||
http-method=post http-content-type="application/json" \
|
http-method=post http-content-type="application/json" \
|
||||||
|
Reference in New Issue
Block a user