mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
gps-track: strip trailing binary zeros
This commit is contained in:
parent
9c71b191c1
commit
b3459ed47c
1 changed files with 2 additions and 0 deletions
|
@ -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" \
|
||||||
|
|
Loading…
Reference in a new issue