# Altitude (aka literally the only reason we pull a $gpgga)
altm=$(echo"$gga"| cut -d ',' -f10)
ft=$(echo"/A=$(echo"$altm*3.280839895"| bc | xargs printf"%06.0f")")
# DMR - Scrape for TGs and set comment.
["$mode"="dmr"]&&tg=$(curl -s http://127.0.0.1/pistaprs/bmscrape.php| sed 's/<[^>]\+>//g'| sed 's/None//'| sed ':a;N;$!ba;s/\n/ /g'| sed 's/TG/#/g')
["$mode"="dmr"]&&tg=$(curl -s http://192.168.1.10/mmdvmhost/bm_links.php| sed 's/<[^>]\+>/\n/g'| grep '^TG'| sed 's/TG/#/g'| sed 's/(.)//g'| sed ':a;N;$!ba;s/\n/ - /g')
[ -z "$tg"]&&tg="No Talkgroups Found"
comment="Brandmeister TGs: $tg"
# DSTAR - Scrape for reflector and set comment.
["$mode"="dstar"]&&comment="DStar "$(curl -s http://127.0.0.1/mmdvmhost/repeaterinfo.php | egrep "Linked|linked" | sed 's/<[^>]\+>//g' | sed 's/L/l/')
#[ "$mode" = "dstar" ] && comment="DStar "$(curl -s http://127.0.0.1/mmdvmhost/repeaterinfo.php | egrep "Linked|linked" | sed 's/<[^>]\+>//g' | sed 's/L/l/')
# Dear god why the hell are you using an entirely untested mode?
["$mode"="ysf"]&&comment="YSF "$(curl -s http://127.0.0.1/mmdvmhost/repeaterinfo.php | egrep "Linked|linked" | sed 's/<[^>]\+>//g' | sed 's/L/l/')
#[ "$mode" = "ysf" ] && comment="YSF "$(curl -s http://127.0.0.1/mmdvmhost/repeaterinfo.php | egrep "Linked|linked" | sed 's/<[^>]\+>//g' | sed 's/L/l/')
# Here's how we hand-craft an APRS packet. (Who needs a client anyway?)