From 030bd922eedddc71f514ca44d668d0370b5329e1 Mon Sep 17 00:00:00 2001 From: spv Date: Wed, 30 Jul 2025 10:46:30 -0400 Subject: last night's signal hack --- src/dirty_hack.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/dirty_hack.sh') diff --git a/src/dirty_hack.sh b/src/dirty_hack.sh index 67691a3..6366d80 100755 --- a/src/dirty_hack.sh +++ b/src/dirty_hack.sh @@ -1,8 +1,11 @@ #!/usr/bin/env zsh -mmcli -m any --location-get | # get location from modem manager -grep "long\|lat\|alt" | # select only relevant lines +(mmcli -m any --location-get; + mmcli -m any | + grep ignal | + cut -d'%' -f1) | # get location from modem manager +grep "long\|lat\|alt\|ignal" | # 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 +cut -d',' -f1-4 # remove unwanted newline \ No newline at end of file -- cgit v1.2.3