aboutsummaryrefslogtreecommitdiff
path: root/src/dirty_hack.sh
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-07-29 18:35:09 -0400
committerspv <spv@spv.sh>2025-07-29 18:35:09 -0400
commit636632b1d03f14c45911c1051d39ff01bd6f118a (patch)
treef889a18e83aa33f4f993aac87d0bfebf2d2f308c /src/dirty_hack.sh
parentf9edc4b39a99df397007100e13ebaf7cf2e48373 (diff)
wait for gps fix, use file extensions, make the logging all professional-like
Diffstat (limited to 'src/dirty_hack.sh')
-rwxr-xr-xsrc/dirty_hack.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dirty_hack.sh b/src/dirty_hack.sh
new file mode 100755
index 0000000..67691a3
--- /dev/null
+++ b/src/dirty_hack.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env zsh
+
+mmcli -m any --location-get | # get location from modem manager
+grep "long\|lat\|alt" | # select only relevant lines
+cut -d':' -f2 | # remove colons,
+cut -d' ' -f2 | # and leading spaces
+tr '\n' ',' | # csv-esque
+cut -d',' -f1-3 # remove unwanted newline \ No newline at end of file