diff --git a/README.md b/README.md index 7e1addc..91d5134 100644 --- a/README.md +++ b/README.md @@ -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. -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. diff --git a/hotspots.sh b/hotspots.sh index 079b1b4..940b19e 100755 --- a/hotspots.sh +++ b/hotspots.sh @@ -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 "BM TG:\n$dmr
\nD-Star:\n$dstar
\n" + # This is for a DMR only display. printf "BM TG:\n$dmr
\n"