From 9dae2d392ab0fcd5e05db5882455391d1417a26f Mon Sep 17 00:00:00 2001 From: nq4t Date: Sun, 29 Jan 2023 21:34:56 +0000 Subject: [PATCH] reformat TGs to use dots --- hotspots.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotspots.sh b/hotspots.sh index 940b19e..f5f97d9 100755 --- a/hotspots.sh +++ b/hotspots.sh @@ -3,7 +3,7 @@ # de NQ4T (nq4tango@gmail.com) # SET THE HOSTNAME OR IP OF YOUR HOTSPOT! -pidmr=192.168.1.10 +pidmr=127.0.0.1 # I HAVE TWO SO I SET TWO #pidstar=192.168.1.11 @@ -12,7 +12,7 @@ pidmr=192.168.1.10 # if you are not using DMR, then comment these two lines out # to comment out, just add a pound-sign to the start of the line, like these comments. -dmr=$(curl -s http://$pidmr/mmdvmhost/bm_links.php| sed 's/<[^>]\+>/\n/g' | grep '^TG' | sed 's/TG/#/g'| sed 's/(.)//g' | sed ':a;N;$!ba;s/\n/ - /g') +dmr=$(curl -s http://$pidmr/mmdvmhost/bm_links.php| sed 's/<[^>]\+>/\n/g' | grep '^TG' | sed 's/TG/#/g'| sed ':a;N;$!ba;s/\n/ /g' | sed 's/\s#/ \\·\<\/b\> #/g') [ -z "$dmr" ] && dmr="No Talkgroups Found" # do the same for dstar with repeaterinfo.php but just egrep for reflector prefix, strip HTML, keep the first 8 characters