mirror of
				https://github.com/eworm-de/routeros-scripts.git
				synced 2024-05-11 05:55:19 +00:00 
			
		
		
		
	gps-track: fix syntax
This commit is contained in:
		@@ -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") . "\"," . \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user