aboutsummaryrefslogtreecommitdiffstats
path: root/gps-track
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-10 14:59:00 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-11 13:48:27 +0200
commit270e608d566a6b2807b604a138b1bfcdbddf99ff (patch)
treebad8cab316662afc446a33dfa1401efd448fa3c5 /gps-track
parent294aff9c02fd1a40f982654fb4f22b2afa0e4096 (diff)
gps-track: RouterOS v7 path syntax
Diffstat (limited to 'gps-track')
-rw-r--r--gps-track6
1 files changed, 3 insertions, 3 deletions
diff --git a/gps-track b/gps-track
index 7c582e2..56a26c5 100644
--- a/gps-track
+++ b/gps-track
@@ -15,11 +15,11 @@
:global LogPrintExit2;
-:local CoordinateFormat [ / system gps get coordinate-format ];
-:local Gps [ / system gps monitor once as-value ];
+: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 \
+ /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") . "\"," . \