Add comments. Fix README.

master
Jay 2 years ago
parent e9381cd020
commit 5f72aaeda8

@ -17,14 +17,16 @@ this repository.
## Example
I am going to try to ebed an iFrame in the readme.
I tried to try to ebed an iFrame in the readme.
<iframe frameborder="0" height="300" scrolling="no" src="https://qth.nq4t.com/hotspots.php" width="320"></iframe>
If this doesn't work you can visit:
But it doesn't work. But you can visit:
https://qth.nq4t.com/hotspots.php
In the meantime I will beat the source code to until the iframe works.
The direct version will be "full-screen". Just remember this was designed for
iframes.
@ -44,9 +46,10 @@ server get results via SSH is another possiblity. I'll script this when I get a
chance.
You will need to load hotspot.sh and edit the hostname information. You will
also need to configure if you're using D-Star or DMR. Other modes may work with
the DMR setting, like YSF. DMR scrapes the bm_links.php while Dstar scrapes
repeaterinfo.php's "Linked To" box.
also need to configure if you're using D-Star or DMR. DMR scrapes the
bm_links.php while Dstar scrapes repeaterinfo.php's "Linked To" box. It
currently looks specifically for D-Star prefixes. If you're using YSF then you
need to modify the script or wait for me to support it.
Place hotspots.php in a document root and edit it to match where you put your
shell script. Simply loading hotspots.php is all you need to do.

@ -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
# 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 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)
#[ -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.
# 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"
# 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"

Loading…
Cancel
Save