move piscrape demo

master
nq4t 2 years ago
parent 085703268f
commit ab6f43c85e

@ -0,0 +1,45 @@
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NQ4T Hotspot Info</title>
</head>
<body>
<div style="margin-right: auto; font-family: Verdana; text-align: left;"><big>
</big><small><span style="font-weight: bold;">NQ4T Pi-Star Hotspot
Network</span><br>
<br style="font-weight: bold; font-style: italic;">
<span style="font-weight: bold; font-style: italic;">Current
Connections:</span><br>
</small><big>
</big>
<table
style="border: 1px solid black; text-align: left; border-collapse: collapse;"
cellpadding="2" cellspacing="0">
<tbody>
<?php
$output = shell_exec('/home/nq4t/hotspots.sh');
echo "$output";
?>
</tbody>
</table>
<big>
</big><small><br style="font-style: italic; font-weight: bold;">
<span style="font-style: italic; font-weight: bold;">Listed connections
do not mean I have a radio on or am at a radio.<br>This is especially true
for Brandmeister.</span><br
style="font-weight: bold; font-style: italic;">
<span style="font-style: italic; font-weight: bold;"> For informational
purposes only.
</span><br>
<br>
73 de NQ4T
<br>
<?php
echo date("Y-m-d") . " @ " . date("H:i:s") . "z";
?>
</small>
</div>
</body>
</html>

@ -10,7 +10,7 @@ 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="500" height="300"></iframe> <iframe border=0 src="hotspots.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

Loading…
Cancel
Save