fixed some bugs and improved testbench look
This commit is contained in:
@@ -330,7 +330,6 @@ class TestbenchMiner:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if len(hr_data.keys()) < 3:
|
if len(hr_data.keys()) < 3:
|
||||||
print(devs_raw["DEVS"])
|
|
||||||
for board in [6, 7, 8]:
|
for board in [6, 7, 8]:
|
||||||
if f"board_{board}" not in hr_data.keys():
|
if f"board_{board}" not in hr_data.keys():
|
||||||
hr_data[f"board_{board}"] = {"HR": 0}
|
hr_data[f"board_{board}"] = {"HR": 0}
|
||||||
|
|||||||
BIN
tools/web_testbench/public/icon.ico
Normal file
BIN
tools/web_testbench/public/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
@@ -8,6 +8,7 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/" crossorigin="anonymous"></script>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Title</title>
|
<title>Title</title>
|
||||||
|
<link rel="icon" href="public/icon.ico">
|
||||||
<style>
|
<style>
|
||||||
.btn-success:disabled {
|
.btn-success:disabled {
|
||||||
background-color: rgba(103, 221, 0, 1);
|
background-color: rgba(103, 221, 0, 1);
|
||||||
@@ -19,9 +20,12 @@
|
|||||||
<body class="bg-dark">
|
<body class="bg-dark">
|
||||||
<nav class="navbar fixed-top m-0 p-0">
|
<nav class="navbar fixed-top m-0 p-0">
|
||||||
<div class="container d-flex justify-content-center mb-0 px-0">
|
<div class="container d-flex justify-content-center mb-0 px-0">
|
||||||
<div class="row w-100 border border-dark p-3 row bg-dark">
|
<div class="row w-100 border border-dark py-1 row bg-dark">
|
||||||
<div class="col d-flex justify-content-center">
|
<div class="col col-1 d-flex justify-content-start px-0">
|
||||||
<h3 class="text-white" id="miner_count">Miners Online: ??</h3>
|
<img src="public/icon.ico" width="40" height="40" class="px-0 float-start">
|
||||||
|
</div>
|
||||||
|
<div class="col d-flex justify-content-center align-bottom m-0">
|
||||||
|
<h3 class="text-white align-bottom m-0" id="miner_count">Miners Online: ??</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -387,11 +391,11 @@ ws.onmessage = function(event) {
|
|||||||
|
|
||||||
// update temp graph data and call the Update method
|
// update temp graph data and call the Update method
|
||||||
var temp_data = []
|
var temp_data = []
|
||||||
temp_data.push({label: "Board 6 Chips", data: [data["Temps"]["board_6"]["Chip"]], backgroundColor: ["rgba(6, 92, 39, 1)"]});
|
temp_data.push({label: "Board 6 Chips", data: [data["Temps"]["board_6"]["Chip"]], backgroundColor: ["rgba(103, 221, 0, 1)"]});
|
||||||
temp_data.push({label: "Board 6", data: [data["Temps"]["board_6"]["Board"]], backgroundColor: ["rgba(255, 15, 58, 1)"]});
|
temp_data.push({label: "Board 6", data: [data["Temps"]["board_6"]["Board"]], backgroundColor: ["rgba(255, 15, 58, 1)"]});
|
||||||
temp_data.push({label: "Board 7 Chips", data: [data["Temps"]["board_7"]["Chip"]], backgroundColor: ["rgba(6, 92, 39, 1)"]});
|
temp_data.push({label: "Board 7 Chips", data: [data["Temps"]["board_7"]["Chip"]], backgroundColor: ["rgba(103, 221, 0, 1)"]});
|
||||||
temp_data.push({label: "Board 7", data: [data["Temps"]["board_7"]["Board"]], backgroundColor: ["rgba(255, 15, 58, 1)"]});
|
temp_data.push({label: "Board 7", data: [data["Temps"]["board_7"]["Board"]], backgroundColor: ["rgba(255, 15, 58, 1)"]});
|
||||||
temp_data.push({label: "Board 8 Chips", data: [data["Temps"]["board_8"]["Chip"]], backgroundColor: ["rgba(6, 92, 39, 1)"]});
|
temp_data.push({label: "Board 8 Chips", data: [data["Temps"]["board_8"]["Chip"]], backgroundColor: ["rgba(103, 221, 0, 1)"]});
|
||||||
temp_data.push({label: "Board 8", data: [data["Temps"]["board_8"]["Board"]], backgroundColor: ["rgba(255, 15, 58, 1)"]});
|
temp_data.push({label: "Board 8", data: [data["Temps"]["board_8"]["Board"]], backgroundColor: ["rgba(255, 15, 58, 1)"]});
|
||||||
temp_graph.data.datasets = temp_data;
|
temp_graph.data.datasets = temp_data;
|
||||||
temp_graph.update();
|
temp_graph.update();
|
||||||
|
|||||||
Reference in New Issue
Block a user