Compare commits
9 Commits
1af18ea84c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d9ae5f8c2b | |||
| 116458feda | |||
| 238dec4050 | |||
|
|
0b8f06099a | ||
|
|
ea5680b473 | ||
|
|
c7fbc0f50c | ||
|
|
4f427eda4e | ||
|
|
b306a982de | ||
|
|
8800fc6c97 |
18
deploy.ps1
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Define variables
|
||||||
|
$localFolder = "./src/."
|
||||||
|
$remoteUser = "debian"
|
||||||
|
$remoteHost = "robe.vincent-bouquet.fr"
|
||||||
|
$remotePath = "/var/www/html/public/reap"
|
||||||
|
$port = 22 # Change this if your SSH server uses a different port
|
||||||
|
|
||||||
|
# Build the SCP commands
|
||||||
|
$sshCommand = "ssh -p ${port} ${remoteUser}@${remoteHost} 'mkdir -p `"${remotePath}`" && sudo rm -rf `"${remotePath}/*`"'"
|
||||||
|
$scpCommand = "scp -r -P ${port} `"${localFolder}`" ${remoteUser}@${remoteHost}:`"${remotePath}`""
|
||||||
|
|
||||||
|
# Execute SSH command to clean remote directory
|
||||||
|
Write-Host "Cleaning remote directory: $remotePath"
|
||||||
|
Invoke-Expression $sshCommand
|
||||||
|
|
||||||
|
# Execute the command
|
||||||
|
Write-Host "Executing: $scpCommand"
|
||||||
|
Invoke-Expression $scpCommand
|
||||||
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
@@ -1,11 +1,13 @@
|
|||||||
|
// GLOBAL VARIABLES
|
||||||
var is_pressure_test_ongoing = false;
|
var is_pressure_test_ongoing = false;
|
||||||
var rains_value = 0;
|
var rains_value = 0;
|
||||||
|
var rains_loop_timing = 2000;
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
initSessionStorage();
|
initSessionStorage();
|
||||||
populateUIFromSessionStorage();
|
populateUIFromSessionStorage();
|
||||||
|
|
||||||
loopRainsSimulator();
|
loop_rains_simulator();
|
||||||
|
|
||||||
// Sets the proper fixture name in the header and title
|
// Sets the proper fixture name in the header and title
|
||||||
var fixturename = "Robin iForte - Simulated";
|
var fixturename = "Robin iForte - Simulated";
|
||||||
@@ -79,7 +81,7 @@ function toggleStandbyMode() {
|
|||||||
populateUIFromSessionStorage();
|
populateUIFromSessionStorage();
|
||||||
}
|
}
|
||||||
|
|
||||||
function loopRainsSimulator() {
|
function loop_rains_simulator() {
|
||||||
var rains_tube_age = sessionStorage.getItem("iforte_demo_rains_age");
|
var rains_tube_age = sessionStorage.getItem("iforte_demo_rains_age");
|
||||||
var rains_lowest = sessionStorage.getItem("iforte_demo_rains_lowest");
|
var rains_lowest = sessionStorage.getItem("iforte_demo_rains_lowest");
|
||||||
|
|
||||||
@@ -95,17 +97,16 @@ function loopRainsSimulator() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$("#iforte_rains_bar_current").width(rains_value + "%");
|
$("#iforte_rains_bar_current").width(rains_value + "%");
|
||||||
|
$("#iforte_rains_bar_max").width(rains_lowest + "%");
|
||||||
|
|
||||||
if (rains_value < rains_lowest) {
|
if (rains_value < rains_lowest) {
|
||||||
sessionStorage.setItem("iforte_demo_rains_lowest", rains_value);
|
sessionStorage.setItem("iforte_demo_rains_lowest", rains_value);
|
||||||
$("#iforte_rains_bar_max").width(rains_value + "%");
|
$("#iforte_rains_bar_max").width(rains_value + "%");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loopRainsSimulator();
|
loop_rains_simulator();
|
||||||
}, 1000);
|
}, rains_loop_timing);
|
||||||
}
|
}
|
||||||
|
|
||||||
function pressureTest() {
|
function pressureTest() {
|
||||||
@@ -130,14 +131,14 @@ function pressureTest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function pressure_test_loop(time, temp, pressure) {
|
function pressure_test_loop(time, temp, pressure) {
|
||||||
|
var is_test_failing = sessionStorage.getItem("iforte_demo_pressure_test");
|
||||||
|
|
||||||
if (is_pressure_test_ongoing) {
|
if (is_pressure_test_ongoing) {
|
||||||
if (time == 0) {
|
if (time == 0) {
|
||||||
is_pressure_test_ongoing = false;
|
is_pressure_test_ongoing = false;
|
||||||
$("#pt-l1").html("");
|
$("#pt-l1").html("");
|
||||||
$("#pt-l3").html("");
|
$("#pt-l3").html("");
|
||||||
|
|
||||||
var is_test_failing = sessionStorage.getItem("iforte_demo_pressure_test");
|
|
||||||
|
|
||||||
if (is_test_failing == 1) {
|
if (is_test_failing == 1) {
|
||||||
$('#pt-l2').html('FAIL')
|
$('#pt-l2').html('FAIL')
|
||||||
$('#pt-l2').addClass('ptf')
|
$('#pt-l2').addClass('ptf')
|
||||||
@@ -160,7 +161,12 @@ function pressure_test_loop(time, temp, pressure) {
|
|||||||
"Remaining Time " +
|
"Remaining Time " +
|
||||||
new Date(time * 1000).toISOString().substring(14, 19)
|
new Date(time * 1000).toISOString().substring(14, 19)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (is_test_failing == 1) {
|
||||||
|
$("#pt-l3").html(temp + " °C / delta 0.00 hPa");
|
||||||
|
} else {
|
||||||
$("#pt-l3").html(temp + " °C / delta " + pressure.toFixed(2) + " hPa");
|
$("#pt-l3").html(temp + " °C / delta " + pressure.toFixed(2) + " hPa");
|
||||||
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
temp = temp + 1;
|
temp = temp + 1;
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container-fluid in">
|
<div class="container-fluid in">
|
||||||
<h1>Discovery</h1>
|
<h1>Discovery</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
@@ -127,19 +127,19 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>iForte</td>
|
<td>iForte</td>
|
||||||
<td>350</td>
|
<td id="iforte_dmxa_v">1</td>
|
||||||
<td>Mode 1 (54 channels)</td>
|
<td id="iforte_dmxp_v">Mode 1</td>
|
||||||
<td>52:53:01:2c:00:0e</td>
|
<td id="iforte_rdmu_v">52:53:01:2c:00:0e</td>
|
||||||
<td><a href="../iforte/index.html">2.247.136.14</a></td>
|
<td><a href="../iforte/index.html">2.247.136.14</a></td>
|
||||||
<td style="display: none;">47</td>
|
<td style="display: none;">47</td>
|
||||||
<td style="display: none;">14.0</td>
|
<td style="display: none;">14.0</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="rains sl">
|
<div class="rains sl">
|
||||||
<div style="width:63%"></div>
|
<div id="iforte_rains_bar_max" style="width:63%"></div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style="display: none;">2.3.2023 16:19:02 - OK</td>
|
<td style="display: none;">2.3.2023 16:19:02 - OK</td>
|
||||||
<td>active</td>
|
<td id="iforte_devs_v">active</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Robin T1 Wash</td>
|
<td>Robin T1 Wash</td>
|
||||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -55,7 +55,7 @@
|
|||||||
<div
|
<div
|
||||||
class="fixed-top text-center device-label"
|
class="fixed-top text-center device-label"
|
||||||
id="pth"
|
id="pth"
|
||||||
onclick="window.location = ('../index.html')"
|
|
||||||
></div>
|
></div>
|
||||||
|
|
||||||
<div class="container-fluid in">
|
<div class="container-fluid in">
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container-fluid in">
|
<div class="container-fluid in">
|
||||||
<h1>Device logs</h1>
|
<h1>Device logs</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
@@ -362,7 +362,7 @@
|
|||||||
<li class="">37°C</li>
|
<li class="">37°C</li>
|
||||||
<li class="dn">-32°C</li>
|
<li class="dn">-32°C</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Display orientation</h3>Side Botom
|
<h3>Display orientation</h3>Side Bottom
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -386,7 +386,7 @@
|
|||||||
<li class="">34°C</li>
|
<li class="">34°C</li>
|
||||||
<li class="">33°C</li>
|
<li class="">33°C</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Display orientation</h3>Side Botom
|
<h3>Display orientation</h3>Side Bottom
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -407,7 +407,7 @@
|
|||||||
<li class="">21°C</li>
|
<li class="">21°C</li>
|
||||||
<li class="dn">-32°C</li>
|
<li class="dn">-32°C</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Display orientation</h3>Side Botom
|
<h3>Display orientation</h3>Side Bottom
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -459,19 +459,35 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var is_sniffing = false;
|
||||||
|
|
||||||
// CREATES MODAL FOR LOG TOOLS
|
// CREATES MODAL FOR LOG TOOLS
|
||||||
function cfgm() {
|
function cfgm() {
|
||||||
$('#m-t').html('Logs tools');
|
$('#m-t').html('Logs tools');
|
||||||
$('#m-f').empty();
|
$('#m-f').empty();
|
||||||
$('.sb').unbind();
|
$('.sb').unbind();
|
||||||
var tl = c_btn('Download log file', 0, ' dlog');
|
var tl = c_btn('Download log file', 0, ' dlog');
|
||||||
|
if (!is_sniffing) {
|
||||||
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
||||||
|
} else {
|
||||||
|
tl += c_btn('Stop DMX sniff', 0, ' ddmx');
|
||||||
|
}
|
||||||
$('#m-b').html(tl);
|
$('#m-b').html(tl);
|
||||||
$('#cfg-modal').modal();
|
$('#cfg-modal').modal();
|
||||||
$('.dlog').bind('click', function () {
|
$('.dlog').bind('click', function () {
|
||||||
|
// download logs
|
||||||
close_modal()
|
close_modal()
|
||||||
});
|
});
|
||||||
$('.ddmx').bind('click', function () {
|
$('.ddmx').bind('click', function () {
|
||||||
|
// start sniff
|
||||||
|
if (is_sniffing) {
|
||||||
|
$('.ddmx').html('Start DMX sniff');
|
||||||
|
is_sniffing = false;
|
||||||
|
} else {
|
||||||
|
$('.ddmx').html('Stop DMX sniff');
|
||||||
|
is_sniffing = true;
|
||||||
|
}
|
||||||
close_modal()
|
close_modal()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
<div
|
<div
|
||||||
class="fixed-top text-center device-label"
|
class="fixed-top text-center device-label"
|
||||||
id="pth"
|
id="pth"
|
||||||
onclick="window.location = ('../index.html')"
|
|
||||||
></div>
|
></div>
|
||||||
<div class="container-fluid in">
|
<div class="container-fluid in">
|
||||||
<h1>Personality</h1>
|
<h1>Personality</h1>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container-fluid in">
|
<div class="container-fluid in">
|
||||||
<h1>RAINS logs</h1>
|
<h1>RAINS logs</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container in">
|
<div class="container in">
|
||||||
<h1>Discovery</h1>
|
<h1>Discovery</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container in">
|
<div class="container in">
|
||||||
<h1>Device status</h1>
|
<h1>Device status</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container in">
|
<div class="container in">
|
||||||
<h1>Device logs</h1>
|
<h1>Device logs</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
@@ -323,19 +323,35 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var is_sniffing = false;
|
||||||
|
|
||||||
// CREATES MODAL FOR LOG TOOLS
|
// CREATES MODAL FOR LOG TOOLS
|
||||||
function cfgm() {
|
function cfgm() {
|
||||||
$('#m-t').html('Logs tools');
|
$('#m-t').html('Logs tools');
|
||||||
$('#m-f').empty();
|
$('#m-f').empty();
|
||||||
$('.sb').unbind();
|
$('.sb').unbind();
|
||||||
var tl = c_btn('Download log file', 0, ' dlog');
|
var tl = c_btn('Download log file', 0, ' dlog');
|
||||||
|
if (!is_sniffing) {
|
||||||
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
||||||
|
} else {
|
||||||
|
tl += c_btn('Stop DMX sniff', 0, ' ddmx');
|
||||||
|
}
|
||||||
$('#m-b').html(tl);
|
$('#m-b').html(tl);
|
||||||
$('#cfg-modal').modal();
|
$('#cfg-modal').modal();
|
||||||
$('.dlog').bind('click', function () {
|
$('.dlog').bind('click', function () {
|
||||||
|
// download logs
|
||||||
close_modal()
|
close_modal()
|
||||||
});
|
});
|
||||||
$('.ddmx').bind('click', function () {
|
$('.ddmx').bind('click', function () {
|
||||||
|
// start sniff
|
||||||
|
if (is_sniffing) {
|
||||||
|
$('.ddmx').html('Start DMX sniff');
|
||||||
|
is_sniffing = false;
|
||||||
|
} else {
|
||||||
|
$('.ddmx').html('Stop DMX sniff');
|
||||||
|
is_sniffing = true;
|
||||||
|
}
|
||||||
close_modal()
|
close_modal()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="fixed-top text-center device-label" id="pth" onclick="window.location = ('../index.html')"></div>
|
<div class="fixed-top text-center device-label" id="pth" ></div>
|
||||||
<div class="container in">
|
<div class="container in">
|
||||||
<h1>Personality</h1>
|
<h1>Personality</h1>
|
||||||
<div class="row" id="boxes">
|
<div class="row" id="boxes">
|
||||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |