|
|
@ -18,6 +18,7 @@ dmr=$(curl -s http://$pidmr/mmdvmhost/bm_links.php| sed 's/<[^>]\+>/\n/g' | grep
|
|
|
|
# do the same for dstar with repeaterinfo.php but just egrep for reflector prefix, strip HTML, keep the first 8 characters
|
|
|
|
# do the same for dstar with repeaterinfo.php but just egrep for reflector prefix, strip HTML, keep the first 8 characters
|
|
|
|
# check to see if we need to display not linked
|
|
|
|
# check to see if we need to display not linked
|
|
|
|
# if you are not using D-Star, comment these next two lines out. if you don't, the script will take longer to run.
|
|
|
|
# if you are not using D-Star, comment these next two lines out. if you don't, the script will take longer to run.
|
|
|
|
|
|
|
|
# If you modify what egrep looks for, you may get other modes to work.
|
|
|
|
|
|
|
|
|
|
|
|
#dstar=$(curl -s http://$pidstar/mmdvmhost/repeaterinfo.php | egrep "REF|XRF|DCS|XLX" | sed 's/<[^>]\+>//g' | cut -b 1-8)
|
|
|
|
#dstar=$(curl -s http://$pidstar/mmdvmhost/repeaterinfo.php | egrep "REF|XRF|DCS|XLX" | sed 's/<[^>]\+>//g' | cut -b 1-8)
|
|
|
|
#[ -z "$dstar" ] && dstar="Not Linked"
|
|
|
|
#[ -z "$dstar" ] && dstar="Not Linked"
|
|
|
@ -25,8 +26,8 @@ dmr=$(curl -s http://$pidmr/mmdvmhost/bm_links.php| sed 's/<[^>]\+>/\n/g' | grep
|
|
|
|
# HTML for table cells on hotspot.php page. These are all one line even if they look like two in your editor.
|
|
|
|
# HTML for table cells on hotspot.php page. These are all one line even if they look like two in your editor.
|
|
|
|
|
|
|
|
|
|
|
|
# This is for a 2x2 table using DMR and D-Star
|
|
|
|
# This is for a 2x2 table using DMR and D-Star
|
|
|
|
|
|
|
|
|
|
|
|
#printf "<tr><td style=\"vertical-align: top; font-family: Verdana; font-weight: bold; text-align: right;\" width=\"20%%\"><small>BM TG:</small></td>\n<td style=\"vertical-align: top;\"><small>$dmr</small><br></td></tr>\n<tr><td style=\"vertical-align: top; font-family: Verdana; font-weight: bold; text-align: right;\" width=\"20%%\"><small>D-Star:</small></td>\n<td style=\"vertical-align: top;\"><small>$dstar</small><br></td></tr>\n"
|
|
|
|
#printf "<tr><td style=\"vertical-align: top; font-family: Verdana; font-weight: bold; text-align: right;\" width=\"20%%\"><small>BM TG:</small></td>\n<td style=\"vertical-align: top;\"><small>$dmr</small><br></td></tr>\n<tr><td style=\"vertical-align: top; font-family: Verdana; font-weight: bold; text-align: right;\" width=\"20%%\"><small>D-Star:</small></td>\n<td style=\"vertical-align: top;\"><small>$dstar</small><br></td></tr>\n"
|
|
|
|
|
|
|
|
|
|
|
|
# This is for a DMR only display.
|
|
|
|
# This is for a DMR only display.
|
|
|
|
printf "<tr><td style=\"vertical-align: top; font-family: Verdana; font-weight: bold; text-align: right;\"><small>BM TG:</small></td>\n<td style=\"vertical-align: top;\"><small style=\"font-style: italic;\">$dmr</small><br></td></tr>\n"
|
|
|
|
printf "<tr><td style=\"vertical-align: top; font-family: Verdana; font-weight: bold; text-align: right;\"><small>BM TG:</small></td>\n<td style=\"vertical-align: top;\"><small style=\"font-style: italic;\">$dmr</small><br></td></tr>\n"
|
|
|
|
|
|
|
|
|
|
|
|