reformat TGs to use dots

master
nq4t 2 years ago
parent a7f2d0b81c
commit 9dae2d392a

@ -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\>\&middot;\<\/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

Loading…
Cancel
Save