move to src for deploy

This commit is contained in:
2025-04-12 21:50:58 +02:00
parent c7fbc0f50c
commit 238dec4050
25 changed files with 13 additions and 0 deletions

541
src/iforte/logs.html Normal file
View File

@@ -0,0 +1,541 @@
<html lang="en">
<head>
<meta 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>
</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="./sensors.html">RAINS 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" ></div>
<div class="container-fluid 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">
<small>Logs filters not functionnal on this simulator.</small>
<br>
<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">Gobo Carousel 1 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">Gobo Rotation 1 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">Gobo Carousel 2 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">Gobo Rotation 2 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">Frost/Prism 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">Focus 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">Zoom 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">Iris 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">Fr. Shutters 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">Fr. Shutter 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">Fr. Shutter 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">Fr. Shutter 3 error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_14" value="14">
<label class="form-check-label" for="fe_14">Fr. Shutter 4 error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_15" value="15">
<label class="form-check-label" for="fe_15">Effect Wheel error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_16" value="16">
<label class="form-check-label" for="fe_16">Color 1 error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_17" value="17">
<label class="form-check-label" for="fe_17">Color 2 error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_18" value="18">
<label class="form-check-label" for="fe_18">Prism Rot. 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_19" value="0">
<label class="form-check-label" for="fe_19">Fans failure</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_20" value="1">
<label class="form-check-label" for="fe_20">Too much humidity in device</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_21" value="2">
<label class="form-check-label" for="fe_21">Vcc 5v failure</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_22" value="3">
<label class="form-check-label" for="fe_22">Overheated</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_23" value="6">
<label class="form-check-label" for="fe_23">Temperature sensor error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_24" value="7">
<label class="form-check-label" for="fe_24">Vcc 48v failure</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_25" value="8">
<label class="form-check-label" for="fe_25">Eeprom error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_26" value="9">
<label class="form-check-label" for="fe_26">Recharge the battery</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_27" value="10">
<label class="form-check-label" for="fe_27">Battery faulty. replace it</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_28" value="11">
<label class="form-check-label" for="fe_28">Pan/tilt EMS cal. error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_29" value="12">
<label class="form-check-label" for="fe_29">Pan/tilt EMS error</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_30" value="13">
<label class="form-check-label" for="fe_30">Internal error 1</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_31" value="14">
<label class="form-check-label" for="fe_31">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_32" value="0">
<label class="form-check-label" for="fe_32">Power on</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="fe_33" value="3">
<label class="form-check-label" for="fe_33">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="tl3" for="fts3">PSU</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">C</span>
</label>
</div>
</div>
<div class="form-row">
<div class="form-group col-auto">
<label class="col-form-label" id="tl0" for="fts0">LEDs</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">C</span>
</label>
</div>
</div>
<div class="form-row">
<div class="form-group col-auto">
<label class="col-form-label" id="tl1" for="fts1">Driver</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">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">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" onclick="alert('Logs filters not functionnal on this simulator.')">Apply filter</button>
<button type="button" class="btn btn-primary" id="fcl" onclick="alert('Logs filters not functionnal on this simulator.')">Clear filter</button>
</div>
</div>
</div>
</div>
<div class="row" id="logs">
<div class="col-md-6 box-c log">
<h2>Log 2.3.2023 15:57:55</h2>
<div class="box">
<div class="lse">
<h3>Statuses</h3>Power On
</div>
<div>
<h3>Temperatures</h3>
<ul class="group">
<li class="dn">LEDs</li>
<li class="dn">Driver</li>
<li>Base</li>
<li class="dn">PSU</li>
</ul>
<ul class="group vals">
<li class="dn">-32°C</li>
<li class="dn">-32°C</li>
<li class="">37°C</li>
<li class="dn">-32°C</li>
</ul>
<h3>Display orientation</h3>Side Botom
</div>
</div>
</div>
<div class="col-md-6 box-c log">
<h2>Log 2.3.2023 15:37:22</h2>
<div class="box">
<div class="lse">
<h3>Statuses</h3>Power Off
</div>
<div>
<h3>Temperatures</h3>
<ul class="group">
<li>LEDs</li>
<li>Driver</li>
<li>Base</li>
<li>PSU</li>
</ul>
<ul class="group vals">
<li class="">23°C</li>
<li class="">35°C</li>
<li class="">34°C</li>
<li class="">33°C</li>
</ul>
<h3>Display orientation</h3>Side Botom
</div>
</div>
</div>
<div class="col-md-6 box-c log">
<h2>Log 2.3.2023 13:04:27</h2>
<div class="box">
<div>
<h3>Temperatures</h3>
<ul class="group">
<li class="dn">LEDs</li>
<li class="dn">Driver</li>
<li>Base</li>
<li class="dn">PSU</li>
</ul>
<ul class="group vals">
<li class="dn">-32°C</li>
<li class="dn">-32°C</li>
<li class="">21°C</li>
<li class="dn">-32°C</li>
</ul>
<h3>Display orientation</h3>Side Botom
</div>
</div>
</div>
<div class="col-md-6 box-c log">
<h2>Log 2.3.2023 13:04:25</h2>
<div class="box">
<div class="lse">
<h3>Statuses</h3>Power On
</div>
<div>
<h3>Temperatures</h3>
<ul class="group">
<li class="dn">LEDs</li>
<li class="dn">Driver</li>
<li>Base</li>
<li class="dn">PSU</li>
</ul>
<ul class="group vals">
<li class="dn">-32°C</li>
<li class="dn">-32°C</li>
<li class="">21°C</li>
<li class="dn">-32°C</li>
</ul>
</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>
// 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" t1_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>