2015-08-25 23:27:53 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
|
|
<html>
|
2015-08-26 02:10:39 +00:00
|
|
|
<head>
|
|
|
|
<title>
|
|
|
|
Stratux
|
|
|
|
</title>
|
|
|
|
<script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery.form.min.js" type="text/javascript"></script>
|
2015-08-26 18:32:28 +00:00
|
|
|
<link href="css/stratux.css" rel="stylesheet" media="screen">
|
2015-08-26 02:10:39 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript">
|
2015-08-25 23:27:53 +00:00
|
|
|
$(document).ready(function() {
|
2015-08-26 02:10:39 +00:00
|
|
|
$('input[name=UAT_Enabled]').change(function(){
|
|
|
|
$('#settings').ajaxSubmit({url: 'control.php', type: 'post'})
|
|
|
|
});
|
|
|
|
$('input[name=ES_Enabled]').change(function(){
|
|
|
|
$('#settings').ajaxSubmit({url: 'control.php', type: 'post'})
|
|
|
|
});
|
|
|
|
$('input[name=GPS_Enabled]').change(function(){
|
|
|
|
$('#settings').ajaxSubmit({url: 'control.php', type: 'post'})
|
|
|
|
});
|
|
|
|
$('input[name=AHRS_Enabled]').change(function(){
|
|
|
|
$('#settings').ajaxSubmit({url: 'control.php', type: 'post'})
|
|
|
|
});
|
2015-08-25 23:27:53 +00:00
|
|
|
});
|
|
|
|
(function worker() {
|
2015-08-26 02:10:39 +00:00
|
|
|
$.ajax({
|
|
|
|
url: 'control.php',
|
|
|
|
success: function(data) {
|
|
|
|
obj = $.parseJSON(data);
|
|
|
|
$.each(obj, function(k, v) {
|
|
|
|
// Radio values.
|
|
|
|
if ((k == "UAT_Enabled") || (k == "ES_Enabled") || (k == "GPS_Enabled") || (k == "AHRS_Enabled")) {
|
|
|
|
$('[name=' + k + ']').val([v.toString()]);
|
|
|
|
}
|
|
|
|
$('#' + k).text(v);
|
|
|
|
});
|
2015-08-25 23:27:53 +00:00
|
|
|
|
2015-08-26 02:10:39 +00:00
|
|
|
},
|
|
|
|
complete: function() {
|
|
|
|
// Schedule the next request when the current one is complete.
|
|
|
|
setTimeout(worker, 1000);
|
|
|
|
}
|
|
|
|
});
|
2015-08-25 23:27:53 +00:00
|
|
|
})();
|
|
|
|
|
2015-08-26 02:10:39 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="stratux-main" class="well well-large">
|
|
|
|
<h1>Stratux</h1>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">Status</div>
|
|
|
|
<div class="panel-body">
|
2015-08-26 18:32:28 +00:00
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">RTL-SDR devices:</label>
|
|
|
|
<span id="Devices" class="col-sm-2">1</span>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">Clients connected:</label>
|
|
|
|
<span id="Connected_Users" class="col-sm-5">2</span>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">Current firmware:</label>
|
|
|
|
<span id="Version" class="col-sm-6">2</span>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">UAT msgs:</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<span id="UAT_messages_last_minute"></span>
|
|
|
|
/
|
|
|
|
<span id="UAT_messsages_max"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">1090ES msgs:</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<span id="ES_messages_last_minute"></span>
|
|
|
|
/
|
|
|
|
<span id="ES_messsages_max"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">GPS satellites:</label>
|
|
|
|
<span id="GPS_satellites_locked" class="col-sm-6"></span>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">AHRS:</label>
|
|
|
|
<span id="RY835AI_connected" class="col-sm-6"></span>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-6">Uptime:</label>
|
|
|
|
<span id="Uptime" class="col-sm-6"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-26 02:10:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">Settings</div>
|
|
|
|
<div class="panel-body form-horizontal">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-sm-4">978MHz</label>
|
|
|
|
<div class="col-sm-1">
|
|
|
|
<div class="onoffswitch">
|
|
|
|
<input type="checkbox" name="UAT_Enabled" class="onoffswitch-checkbox" id="uat-onoffswitch" checked>
|
|
|
|
<label class="onoffswitch-label" for="uat-onoffswitch">
|
|
|
|
<span class="onoffswitch-inner"></span>
|
|
|
|
<span class="onoffswitch-switch"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-sm-4">1090MHz</label>
|
|
|
|
<div class="col-sm-1">
|
|
|
|
<div class="onoffswitch">
|
|
|
|
<input type="checkbox" name="ES_Enabled" class="onoffswitch-checkbox" id="es-onoffswitch" checked>
|
|
|
|
<label class="onoffswitch-label" for="es-onoffswitch">
|
|
|
|
<span class="onoffswitch-inner"></span>
|
|
|
|
<span class="onoffswitch-switch"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-sm-4">GPS</label>
|
|
|
|
<div class="col-sm-1">
|
|
|
|
<div class="onoffswitch">
|
|
|
|
<input type="checkbox" name="GPS_Enabled" class="onoffswitch-checkbox" id="gps-onoffswitch" checked>
|
|
|
|
<label class="onoffswitch-label" for="gps-onoffswitch">
|
|
|
|
<span class="onoffswitch-inner"></span>
|
|
|
|
<span class="onoffswitch-switch"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-sm-4">AHRS</label>
|
|
|
|
<div class="col-sm-1">
|
|
|
|
<div class="onoffswitch">
|
|
|
|
<input type="checkbox" name="AHRS_Enabled" class="onoffswitch-checkbox" id="ahrs-onoffswitch" checked>
|
|
|
|
<label class="onoffswitch-label" for="ahrs-onoffswitch">
|
|
|
|
<span class="onoffswitch-inner"></span>
|
|
|
|
<span class="onoffswitch-switch"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
2015-08-25 23:27:53 +00:00
|
|
|
</html>
|