kopia lustrzana https://github.com/jprochazka/adsb-receiver
Merge remote-tracking branch 'refs/remotes/origin/master' into upgrade
commit
c0e66d0ebb
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
// Check dump1090-mutability's aircraft JSON output to see if the flight is visible.
|
// Check dump1090-mutability's aircraft JSON output to see if the flight is visible.
|
||||||
$visibleFlights = array();
|
$visibleFlights = array();
|
||||||
$url = $common->getBaseUrl()."/dump1090/data/aircraft.json";
|
$url = "http://localhost/dump1090/data/aircraft.json";
|
||||||
$json = file_get_contents($url);
|
$json = file_get_contents($url);
|
||||||
$data = json_decode($json, true);
|
$data = json_decode($json, true);
|
||||||
foreach ($data['aircraft'] as $aircraft) {
|
foreach ($data['aircraft'] as $aircraft) {
|
||||||
|
|
|
@ -58,12 +58,18 @@
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{if setting:enableFlightNotifications eq TRUE}
|
{if setting:enableFlightNotifications eq TRUE}
|
||||||
<div id="flight-notifications" class="container">
|
<div id="flight-notifications" class="modal fade in" role="dialog">
|
||||||
<div class="alert alert-success" role="alert">
|
<div class="modal-dialog">
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<div class="modal-content">
|
||||||
<strong>Flight Spotted!</strong>
|
<div class="modal-header">
|
||||||
<p>This receiver is currently receiving data from the following flight number(s).</p>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<ul></ul>
|
<h4 class="modal-title">Flight Spotted</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>This receiver is currently receiving data from the following flight number(s).</p>
|
||||||
|
<ul></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Ładowanie…
Reference in New Issue