|
|
@ -10,11 +10,14 @@ title: PiScrape
|
|
|
|
|
|
|
|
|
|
|
|
PiScrape allows you to display your connected reflectors/talkgroups in a small webpage you can embed, like this:
|
|
|
|
PiScrape allows you to display your connected reflectors/talkgroups in a small webpage you can embed, like this:
|
|
|
|
|
|
|
|
|
|
|
|
<iframe border=0 src="https://pistar.nq4t.com/piscrape/piscrape.php" width="320" height="300"></iframe>
|
|
|
|
<iframe border=0 src="https://pistar.nq4t.com/piscrape/piscrape.php" width="500" height="300"></iframe>
|
|
|
|
|
|
|
|
|
|
|
|
It does this by scraping the Pi-Star dashboard for the information using a shell script and php page. It can be run
|
|
|
|
It does this by scraping the Pi-Star dashboard for the information using a shell script and php page. It can be run
|
|
|
|
on any webserver with PHP and SSH access to your Pi-Star. It can also be run entirely on Pi-Star if you open web ports
|
|
|
|
on any webserver with PHP and SSH access to your Pi-Star. It can also be run entirely on Pi-Star if you open web ports
|
|
|
|
or reverse proxy. The original version ran on a locally hosted web-server that could pull the dashboard directly.
|
|
|
|
or reverse proxy. The original version ran on a locally hosted web-server that could pull the dashboard directly. But
|
|
|
|
|
|
|
|
I also had success running it on remote web-servers that could SSH in to the Pi-Star. Remote SSH execution is not yet
|
|
|
|
|
|
|
|
included in the repository; but if you know how to do that, you probably can write that small script yourself. The
|
|
|
|
|
|
|
|
current implementation is running entirely on the PiStar via nginx reverse proxy.
|
|
|
|
|
|
|
|
|
|
|
|
The PHP page itself largely just calls the shell script, which returns the HTML code containing your connection info.
|
|
|
|
The PHP page itself largely just calls the shell script, which returns the HTML code containing your connection info.
|
|
|
|
When the script is executed; it pulls either the repeaterstatus frame from the dashboard or the Brandmeister API page.
|
|
|
|
When the script is executed; it pulls either the repeaterstatus frame from the dashboard or the Brandmeister API page.
|
|
|
|