aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-29 09:30:57 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-29 09:30:57 +0100
commit9c71b191c10df22b631953d67c994979a9000bd3 (patch)
tree6592bc798376049a66b780c5d84835ec8fa4137e
parenteda4d10c0a5b9f798c6a3caa8bb6d11dc935d41b (diff)
gps-track: log about coordinate-format
-rw-r--r--gps-track3
1 files changed, 2 insertions, 1 deletions
diff --git a/gps-track b/gps-track
index 07a83af..5a828fd 100644
--- a/gps-track
+++ b/gps-track
@@ -7,6 +7,7 @@
:global Identity;
:global GpsTrackUrl;
+:local CoordinateFormat [ /system gps get coordinate-format ];
:local Gps [ / system gps monitor once as-value ];
if ($Gps->"valid" = true) do={
@@ -18,7 +19,7 @@ if ($Gps->"valid" = true) do={
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
"\"identity\":\"" . $Identity . "\"" . \
"}");
- :log debug ("Sending GPS data for tracking: " . \
+ :log debug ("Sending GPS data in " . $CoordinateFormat . " format: " . \
"lat: " . ($Gps->"latitude") . " " . \
"lon: " . ($Gps->"longitude"));
} else={