initial push

This commit is contained in:
2023-03-02 17:44:00 +01:00
commit 7a22aa3f7d
25 changed files with 3303 additions and 0 deletions

412
t1/logs.html Normal file
View File

@@ -0,0 +1,412 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<link rel="stylesheet" href="../files/bootstrap.min.css">
<link rel="stylesheet" href="../files/layout.css">
<script src="../files/jquery-3.3.1.min.js"></script>
<script src="../files/popper.min.js"></script>
<script src="../files/bootstrap.min.js"></script>
<script src="base.js"></script>
<title id="pt_v">Robin T1 Wash</title>
</head>
<body>
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark">
<div class="container"><a class="navbar-brand" href="./index.html"><img
src="../files/robe_logo_white.svg"></a><button class="navbar-toggler" type="button"
data-toggle="collapse" data-target="#navbar"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="./index.html">Status</a></li>
<li class="nav-item"><a class="nav-link" href="./personality.html">Personality</a></li>
<li class="nav-item active"><a class="nav-link" href="./logs.html">Logs</a></li>
<li class="nav-item"><a class="nav-link" href="./discovery.html">Discovery</a>
</li>
<li class="nav-item"><a class="nav-link" id="scfg">Settings</a></li>
<li class="nav-item"><a class="nav-link" id="idnt"><img class="rdmi" src="../files/identify.svg"></a></li>
</ul>
</div>
</div>
</nav>
<div class="fixed-top text-center device-label" id="pth">Robin T1 Wash</div>
<div class="container in">
<h1>Device logs</h1>
<div class="row" id="boxes">
<div class="col-12 box-c">
<h2 id="sta_err"><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#lfb"><i class="blue"></i></button> Logs filter<a class="cfg"
onclick="cfgm();"><img src="../files/settings.svg"></a></h2>
<div class="box collapse clearfix" id="lfb">
<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#f_me"><i></i></button> Mechanical errors<div class="fall"><input
type="checkbox" id="f_me_p"> all must pass</div>
</h3>
<div class="collapse" id="f_me">
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_0" value="0"><label class="form-check-label" for="fe_0">Pan error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_1" value="1"><label class="form-check-label" for="fe_1">Tilt error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_2" value="2"><label class="form-check-label" for="fe_2">Focus error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_3" value="3"><label class="form-check-label" for="fe_3">Zoom error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_4" value="4"><label class="form-check-label" for="fe_4">BD. Rotation
error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_5" value="5"><label class="form-check-label" for="fe_5">BD. 1 error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_6" value="6"><label class="form-check-label" for="fe_6">BD. 2 error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_7" value="7"><label class="form-check-label" for="fe_7">BD. 3 error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_8" value="8"><label class="form-check-label" for="fe_8">BD. 4 error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_9" value="9"><label class="form-check-label" for="fe_9">Scrim error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_10" value="10"><label class="form-check-label" for="fe_10">Scrim Rot.
error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_11" value="11"><label class="form-check-label" for="fe_11">Frost 1 error</label>
</div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_12" value="12"><label class="form-check-label" for="fe_12">Frost 2 error</label>
</div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_13" value="13"><label class="form-check-label" for="fe_13">Leds error</label>
</div>
</div>
<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#f_se"><i></i></button> System errors<div class="fall"><input type="checkbox"
id="f_se_p"> all must pass</div>
</h3>
<div class="collapse" id="f_se">
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_14" value="0"><label class="form-check-label" for="fe_14">Fans failure</label>
</div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_15" value="2"><label class="form-check-label" for="fe_15">Powerdown mode</label>
</div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_16" value="6"><label class="form-check-label" for="fe_16">Temperature sensor
error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_17" value="8"><label class="form-check-label" for="fe_17">Eeprom error</label>
</div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_18" value="9"><label class="form-check-label" for="fe_18">Recharge the
battery</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_19" value="10"><label class="form-check-label" for="fe_19">Battery faulty.
replace it</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_20" value="11"><label class="form-check-label" for="fe_20">Pan/tilt EMS cal.
error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_21" value="12"><label class="form-check-label" for="fe_21">Pan/tilt EMS
error</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_22" value="13"><label class="form-check-label" for="fe_22">Internal error
1</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_23" value="14"><label class="form-check-label" for="fe_23">Internal error
2</label></div>
</div>
<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#f_sst"><i></i></button> Statuses<div class="fall"><input type="checkbox"
id="f_sst_p"> all must pass</div>
</h3>
<div class="collapse" id="f_sst">
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_24" value="0"><label class="form-check-label" for="fe_24">Power on</label></div>
<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input"
id="fe_25" value="3"><label class="form-check-label" for="fe_25">Power off</label></div>
</div>
<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#f_te"><i></i></button> Temperatures<div class="fall"><input type="checkbox"
id="f_te_p"> all must pass</div>
</h3>
<div class="collapse" id="f_te">
<div class="form-row">
<div class="form-group col-auto"><label class="col-form-label" id="tl0" for="fts0">LEDs
board 1</label></div>
<div class="form-group col-auto"><select class="form-control" id="fts0">
<option value="0">-</option>
<option value="1">&lt;=</option>
<option value="2">&gt;=</option>
</select></div>
<div class="form-group col-auto"><input type="text" class="form-control" size="5" id="ftv0">
</div>
<div class="form-group col-auto"><label class="col-form-label" for="ftv0">°<span
class="tu" id="tu_v">C</span></label></div>
</div>
<div class="form-row">
<div class="form-group col-auto"><label class="col-form-label" id="tl1"
for="fts1">Ambient</label></div>
<div class="form-group col-auto"><select class="form-control" id="fts1">
<option value="0">-</option>
<option value="1">&lt;=</option>
<option value="2">&gt;=</option>
</select></div>
<div class="form-group col-auto"><input type="text" class="form-control" size="5" id="ftv1">
</div>
<div class="form-group col-auto"><label class="col-form-label" for="ftv1">°<span
class="tu" id="tu_v">C</span></label></div>
</div>
<div class="form-row">
<div class="form-group col-auto"><label class="col-form-label" id="tl2"
for="fts2">Base</label></div>
<div class="form-group col-auto"><select class="form-control" id="fts2">
<option value="0">-</option>
<option value="1">&lt;=</option>
<option value="2">&gt;=</option>
</select></div>
<div class="form-group col-auto"><input type="text" class="form-control" size="5" id="ftv2">
</div>
<div class="form-group col-auto"><label class="col-form-label" for="ftv2">°<span
class="tu" id="tu_v">C</span></label></div>
</div>
<div class="form-row">
<div class="form-group col-auto"><label class="col-form-label" id="tl3" for="fts3">LEDs
board 2</label></div>
<div class="form-group col-auto"><select class="form-control" id="fts3">
<option value="0">-</option>
<option value="1">&lt;=</option>
<option value="2">&gt;=</option>
</select></div>
<div class="form-group col-auto"><input type="text" class="form-control" size="5" id="ftv3">
</div>
<div class="form-group col-auto"><label class="col-form-label" for="ftv3">°<span
class="tu" id="tu_v">C</span></label></div>
</div>
</div>
<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#f_dt"><i></i></button> Start date/time</h3>
<div class="collapse" id="f_dt">
<div class="form-row">
<div class="form-group col-auto"><label for="fsd" class="col-form-label">Date</label></div>
<div class="form-group col-auto"><input type="date" class="form-control" id="fsd" step="1">
</div>
<div class="form-group col-auto"><label for="fst" class="col-form-label">Time</label></div>
<div class="form-group col-auto"><input type="time" class="form-control" id="fst" step="1">
</div>
</div>
</div>
<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse"
data-target="#f_cfg"><i></i></button> Sorting,filter pass</h3>
<div class="collapse" id="f_cfg">
<div class="form-row">
<div class="form-group col-auto"><label class="col-form-label" for="fso">Sorting</label>
</div>
<div class="form-group col-auto"><select class="form-control" id="fso">
<option value="0">descending</option>
<option value="1">ascending</option>
</select></div>
<div class="form-group col-auto"><label class="col-form-label" for="fpas">Filter
pass</label></div>
<div class="form-group col-auto"><select class="form-control" id="fpas">
<option value="0">single groups</option>
<option value="1">all groups</option>
</select></div>
</div>
</div>
<div id="ferr"></div>
<div class="float-right"><button type="button" class="btn btn-primary mr06" id="fap">Apply
filter</button><button type="button" class="btn btn-primary" id="fcl">Clear filter</button>
</div>
</div>
</div>
</div>
<div class="row" id="logs">
<div class="col-md-6 box-c log">
<h2>Log 13.05.2022 11:07:53</h2>
<div class="box">
<div class="lse">
<h3>Statuses</h3>Power Off
</div>
<div>
<h3>Temperatures</h3>
<ul class="group">
<li>LEDs board 1</li>
<li class="">Ambient</li>
<li>Base</li>
<li>LEDs board 2</li>
</ul>
<ul class="group vals">
<li class="">31°C</li>
<li class="">25°C</li>
<li class="">27°C</li>
<li class="">32°C</li>
</ul>
<h3>Display orientation</h3>Side Bottom
</div>
</div>
</div>
<div class="col-md-6 box-c log">
<h2>Log 13.05.2022 11:08:41</h2>
<div class="box">
<div class="lse">
<h3>Statuses</h3>Power On
</div>
<div>
<h3>Temperatures</h3>
<ul class="group">
<li class="">LEDs board 1</li>
<li class="">Ambient</li>
<li>Base</li>
<li class="">LEDs board 2</li>
</ul>
<ul class="group vals">
<li class="">27°C</li>
<li class="">31°C</li>
<li class="">25°C</li>
<li class="">28°C</li>
</ul>
<h3>Display orientation</h3>Side Bottom
</div>
</div>
</div>
<div class="col-md-6 box-c log">
<h2>Log 13.05.2022 11:08:46</h2>
<div class="box">
<div>
<h3>Temperatures</h3>
<ul class="group">
<li class="">LEDs board 1</li>
<li class="">Ambient</li>
<li>Base</li>
<li class="">LEDs board 2</li>
</ul>
<ul class="group vals">
<li class="">31°C</li>
<li class="">35°C</li>
<li class="">26°C</li>
<li class="">24°C</li>
</ul>
<h3>Display orientation</h3>Side Bottom
</div>
</div>
</div>
<div class="col-md-6 box-c log">
<h2>Log 13.05.2022 11:04:49</h2>
<div class="box">
<div>
<h3>Temperatures</h3>
<ul class="group">
<li class="">LEDs board 1</li>
<li class="">Ambient</li>
<li>Base</li>
<li class="">LEDs board 2</li>
</ul>
<ul class="group vals">
<li class="">29°C</li>
<li class="">22°C</li>
<li class="">22°C</li>
<li class="">35°C</li>
</ul>
<h3>Display orientation</h3>Side Bottom
</div>
</div>
</div>
</div>
<div class="text-center" id="nxtl"><button class="btn btn-primary nlb"><strong>+</strong></button></div>
</div>
<div id="cfg-modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header"><img src="../files/settings.svg">
<h5 class="modal-title" id="m-t"></h5><button type="button" class="close" data-dismiss="modal"
aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body" id="m-b"></div>
<div class="modal-footer" id="m-f"><button type="button" class="btn btn-primary sb">Save</button></div>
</div>
</div>
</div>
<script>
var lfn = 'data';
// CREATES MODAL FOR LOG TOOLS
function cfgm() {
$('#m-t').html('Logs tools');
$('#m-f').empty();
$('.sb').unbind();
var tl = c_btn('Download log file', 0, ' dlog');
tl += c_btn('Start DMX sniff', 0, ' ddmx');
$('#m-b').html(tl);
$('#cfg-modal').modal();
$('.dlog').bind('click', function () {
close_modal()
});
$('.ddmx').bind('click', function () {
close_modal()
})
}
function lfix(l) {
return l.charAt(0).toUpperCase() + l.slice(1).toLowerCase().replace('ems', 'EMS')
}
function c_chb(id, t, v, ch) {
var html =
'<div class="form-check form-check-inline"><input type="checkbox" class="form-check-input" id="' + id +
'" value="' + v + '"' + ch + '>';
html += '<label class="form-check-label" for="' + id + '">' + t + '</label></div>';
return html
}
function c_tit(id, t, e, c, p) {
var html =
'<h3><button class="btn btn-primary btn-pm" type="button" data-toggle="collapse" data-target="#' + id +
'"><i></i></button>';
html += ' ' + t;
if (p) html += '<div class="fall"><input type="checkbox" id="' + id + '_p"> all must pass</div>';
html += '</h3>';
html += '<div class="collapse' + c + '" id="' + id + '">';
if (e) html += '</div>';
return html
}
function c_ftmp(i, t) {
var html = '';
html += '<div class="form-row">';
html += '<div class="form-group col-auto"><label class="col-form-label" id="tl' + i + '" for="fts' + i +
'">' + t + '</label></div>';
html += '<div class="form-group col-auto"><select class="form-control" id="fts' + i + '">';
html += '<option value="0">-</option><option value="1">&lt;=</option><option value="2">&gt;=</option>';
html += '</select></div>';
html += '<div class="form-group col-auto"><input type="text" class="form-control" size="5" id="ftv' + i +
'"></div>';
html += '<div class="form-group col-auto"><label class="col-form-label" for="ftv' + i +
'">&deg;<span class="tu" id="tu_v"></span></label></div>';
html += '</div>';
return html
}
function c_dt(n, t, e, c, it) {
var html = '<div class="form-group' + c + '">';
html += '<label for="' + n + '" class="col-form-label">' + t + '</label>';
html += '</div><div class="form-group' + c + '">';
html += '<input type="' + it + '" class="form-control" id="' + n + '" step="1">';
html += e.length > 0 ? '<div class="invalid-feedback">' + e + '</div>' : '';
html += '</div>';
return html
}
function c_sil(id, t, o) {
var html = '<div class="form-group col-auto"><label class="col-form-label" for="' + id + '">' + t +
'</label></div>';
html += '<div class="form-group col-auto"><select class="form-control" id="' + id + '">';
for (i = 0; i < o.length; i++) {
html += '<option value="' + i + '">' + o[i] + '</option>'
}
html += '</select></div>';
return html
}
</script>
</body>
</html>