# Pi-Star Information Scraper & Display This lazily named pair of scripts will allow you to display DStar or DMR information using PHP. ## About I got the bright idea that I wanted to display my hotspot status information on my QRZ page. Like most things ham; it doesn't look nice. It's a no frills php page that just drops text in a table with basic formatting. I go about as far as using viewport information to make it look better in various framesizes. It was designed to be placed in an iFrame. This script has not seen any updates in months due to working how I wanted it to and not causing issues. In fact I forgot it was working until going to make this repository. ## Example I tried to try to ebed an iFrame in the readme. 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. ## Usage/Setup To use this you must meet the following conditions: ``` You must have a web-server running PHP You must be able to execute local shell scripts Your web-server must be able to access your hotspot dashboard -or- Your server needs SSH to a machine that can talk to dashboards. ``` 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. 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. It is entirely possible to run this on a web-server outside of your network with some additional tinkering. One way is make your hotspot dashboard public and accessible over the internet. If you don't want to do that then it is possible to execute the shell script remotely: ``` dewdude@pickmy:~# ssh -p [REDACTED] dewdude@qth.nq4t.com 'bash -s < /home/dewdude/pistarscrape/hotspots.sh'
BM TG: | #3151 - #8802 - #31514 - #98003 |