Folder reorganize 1

This commit is contained in:
Rucus
2026-02-17 12:44:37 -06:00
parent ec99d85bc2
commit f0ae0ab905
17427 changed files with 2071 additions and 1059030 deletions

View File

@@ -1,245 +1,194 @@
<?php
include("../includes/items.php");
// phpcs:ignoreFile
declare(strict_types=1);
include __DIR__ . '/../../items.php';
require_once __DIR__ . '/module-helpers.php';
$steamFlowTotal = module_numeric($value['TTL_STEAMFLOW2']);
$liveSteam = module_numeric($value['PT_001']);
if ($liveSteam === null) {
$liveSteamPill = module_status('No Signal', 'module-pill--alert');
} elseif ($liveSteam < 156) {
$liveSteamPill = module_status('Low', 'module-pill--alert');
} elseif ($liveSteam <= 165) {
$liveSteamPill = module_status('Watch', 'module-pill--warn');
} else {
$liveSteamPill = module_status('Optimal', 'module-pill--success');
}
$exhaustMode = module_mode(isset($ID['00242']) ? (int) $ID['00242'] : null, 0);
$exhaustPressure = module_numeric($ID['00244'] ?? null);
if ($exhaustPressure === null) {
$exhaustPill = module_status('No Signal', 'module-pill--alert');
} elseif ($exhaustPressure < 6) {
$exhaustPill = module_status('Low', 'module-pill--alert');
} elseif ($exhaustPressure < 14) {
$exhaustPill = module_status('Watch', 'module-pill--warn');
} else {
$exhaustPill = module_status('Optimal', 'module-pill--success');
}
$vaporHeader = module_numeric($value['VAPOR HDR PRES']);
$boilers = [
[
'label' => 'Boiler 1',
'steam' => ['value' => module_numeric($ID['00252'] ?? null), 'capacity' => 110],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_102'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_103'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_105'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_104'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 2',
'steam' => ['value' => module_numeric($ID['00256'] ?? null), 'capacity' => 105],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_202'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_203'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_205'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_204'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 3',
'steam' => ['value' => module_numeric($value['FT_301'] ?? null), 'capacity' => 100],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_302'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_303'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_305'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_304'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 4',
'steam' => ['value' => module_numeric($value['FT_401'] ?? null), 'capacity' => 60],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_402'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_403'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_405'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_404'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 5',
'steam' => ['value' => module_numeric($value['FT_501'] ?? null), 'capacity' => 55],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_502'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_503'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_505'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_504'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 6',
'steam' => ['value' => module_numeric($value['FT_601'] ?? null), 'capacity' => 90],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($value['LT_602'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($value['FT_603'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($value['PT_605'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($value['SIT_604'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 7',
'steam' => ['value' => module_numeric($ID['00046'] ?? null), 'capacity' => 270],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($ID['00004'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($ID['00014'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($ID['00010'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($ID['00020'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
[
'label' => 'Boiler 8',
'steam' => ['value' => module_numeric($ID['00074'] ?? null), 'capacity' => 270],
'metrics' => [
['label' => 'Drum Level', 'value' => module_numeric($ID['00032'] ?? null), 'unit' => '%', 'decimals' => 0],
['label' => 'Feed Water', 'value' => module_numeric($ID['00042'] ?? null), 'unit' => 'kpph', 'decimals' => 0],
['label' => 'Drum Pressure', 'value' => module_numeric($ID['00038'] ?? null), 'unit' => 'psi', 'decimals' => 0],
['label' => 'ID Fan Speed', 'value' => module_numeric($ID['00048'] ?? null), 'unit' => 'rpm', 'decimals' => 0],
],
],
];
$boilerGroups = array_chunk($boilers, 4);
?>
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
<table class="tftable2">
<tr>
<td width="1000%" align="center" colspan="6" border="0"><font color="#00BFFF"><i>BOILERS</i></font></td>
</tr>
</table>
<!-- ****************************************** ROW START ******************************************** -->
<section class="module-card">
<div class="module-heading">
<h2 class="module-heading__title">Boiler Performance</h2>
<span class="module-heading__meta">Detailed steam and drum metrics</span>
</div>
<table class="tftable1">
<tr>
<td colspan="2"><font color="#e0e0e0">Total Steam Flow:</font></td>
<td align="right" width="75"><font color="00FF00"><b><?php echo round(($value['TTL_STEAMFLOW2']),0); ?></b></font></td>
<td><font color="#e0e0e0">Kpph</font></td>
<div class="module-metric-grid">
<div class="module-metric">
<span class="module-metric__label">Total Steam Flow</span>
<span class="module-metric__value"><?php echo module_number($steamFlowTotal); ?></span>
<span class="module-metric__note">kpph</span>
</div>
<div class="module-metric">
<span class="module-metric__label">Live Steam Pressure</span>
<span class="module-metric__value"><?php echo module_number($liveSteam, 1); ?></span>
<span class="module-metric__note">psi</span>
<div><?php echo $liveSteamPill; ?></div>
</div>
<div class="module-metric">
<span class="module-metric__label">Exhaust Pressure</span>
<span class="module-metric__value"><?php echo module_number($exhaustPressure, 1); ?></span>
<span class="module-metric__note">psi</span>
<div><?php echo $exhaustPill; ?></div>
</div>
<div class="module-metric">
<span class="module-metric__label">Vapor Header Pressure</span>
<span class="module-metric__value"><?php echo module_number($vaporHeader, 1); ?></span>
<span class="module-metric__note">psi</span>
</div>
</div>
<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0">Vapor Header Pressure:</font></td>
<td bgcolor="#2E2E2E" align="right" width="75" id="lsp"><font color="00FF00"><b><?php echo $value ['VAPOR HDR PRES']; ?></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0">PSI</font></td>
<div class="module-row">
<span class="module-row__label">Exhaust Control</span>
<div class="module-row__value"><?php echo $exhaustMode; ?></div>
</div>
<td colspan="2"><font color="#e0e0e0">Live Steam Pressure:</font></td>
<?php
$color = "#e0e0e0";
<div class="module-divider"></div>
if (($value['PT_001'] >= 0) && ($value['PT_001'] <= 155))
$color = "#FF0000";
else if (($value['PT_001'] >= 156) && ($value['PT_001'] <= 165))
$color = "#FFFF00";
else if ($value['PT_001'] >= 165)
$color = "#00FF00";
echo "<td align=\"right\" width=\"75\"><font color=\"$color\"><b> ".$value['PT_001']." </b></font></td>";
?>
<td><font color="#e0e0e0">PSI</font></td>
</tr>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ****************************************** ROW START ******************************************** -->
<tr>
<td><font color="#e0e0e0">Exhaust Pressure:</font></td>
<?php
if ($ID['00302'] == 0)
echo "<td align=\"center\" bgcolor=\"#0B3B17\"><font color=\"#e0e0e0\">A</font></td>";
if ($ID['00302'] == 1)
echo "<td align=\"center\" bgcolor=\"#8A0808\"><font color=\"#e0e0e0\">M</font></td>";
?>
<?php
$color = "#e0e0e0";
if (($ID['00302'] >= 0) && ($ID['00302'] <= 5))
$color = "#FF0000";
else if (($ID['00302'] >= 6) && ($ID['00302'] <= 13))
$color = "#FFFF00";
else if ($ID['00302'] >= 14)
$color = "#00FF00";
echo "<td align=\"right\"><font color=\"$color\"><b> ".$ID['00302']." </b></font></td>";
?>
<td><font color="#e0e0e0">PSI</font></td>
<td bgcolor="#2E2E2E" colspan="2"><font color="#e0e0e0"></font></td>
<td bgcolor="#2E2E2E" align="right"><font color="00FF00"><b></b></font></td>
<td bgcolor="#2E2E2E"><font color="#e0e0e0"></font></td>
<td colspan="2"><font color="#e0e0e0"></font></td>
<td align="right"><font color="00FF00"><b></b></font></td>
<td><font color="#e0e0e0"></font></td>
</tr>
</table>
<!-- ****************************************** ROW END ******************************************** -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ START OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<table class="tftable5" border="1">
<tr>
<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 1</font></td>
<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 2</font></td>
<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 3</font></td>
<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 4</font></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="110" value="<?php echo $ID['00310']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $ID['00310']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="105" value="<?php echo $ID['00314']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $ID['00314']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="100" value="<?php echo $value['FT_301']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_301']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="60" value="<?php echo $value['FT_401']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_401']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_102']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_202']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_302']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_402']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_103']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_203']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_303']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_403']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_105']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_205']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_305']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_405']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_104']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_204']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_304']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_404']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
</tr>
</table>
<table class="tftable5" border="1">
<tr>
<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 5</font></td>
<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 6</font></td>
<td colspan="4" bgcolor="#b36537" align="center" width="25%"><font color="#000000">Boiler 7</font></td>
<td colspan="4" bgcolor="#e06b04" align="center" width="25%"><font color="#000000">Boiler 8</font></td>
</tr>
<tr>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="55" value="<?php echo $value['FT_501']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_501']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="90" value="<?php echo $value['FT_601']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $value['FT_601']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="270" value="<?php echo $ID['00048']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $ID['00048']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
<td align="left"><font color="#e0e0e0">Steam Flow</font></td>
<td align="left" width="100"><progress id="progressboilers" max="270" value="<?php echo $ID['00078']; ?>"></progress></td>
<td align="right" width="80"><font color="#e60000"><?php echo $ID['00078']; ?></font></td>
<td align="left" width="65"><font color="#e0e0e0">kpph</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_502']; ?><font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $value['LT_602']; ?><font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $ID['00004']; ?><font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Level</font></td>
<td align="right" width="50"><font color="#12bd5a"><?php echo $ID['00032']; ?><font></td>
<td align="left" width="50"><font color="#e0e0e0">%</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_503']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $value['FT_603']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $ID['00014']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Feed Water</font></td>
<td align="right" width="50"><font color="#129dbd"><?php echo $ID['00042']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">kpph</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_505']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $value['PT_605']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $ID['00010']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">Drum Pressure</font></td>
<td align="right" width="50"><font color="#e2c211"><?php echo $ID['00038']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">psi</font></td>
</tr>
<tr>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_504']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $value['SIT_604']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $ID['00020']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
<td align="left" colspan="2"><font color="#e0e0e0">ID Fan Speed</font></td>
<td align="right" width="50"><font color="#0c7300"><?php echo $ID['00048']; ?></font></td>
<td align="left" width="50"><font color="#e0e0e0">rpm</font></td>
</tr>
</table>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF PAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<div class="module-grid module-grid--two">
<?php foreach ($boilerGroups as $group) : ?>
<div class="module-stack">
<?php foreach ($group as $boiler) : ?>
<?php
$steamValue = $boiler['steam']['value'];
$steamCapacity = $boiler['steam']['capacity'];
$steamPercent = 0.0;
if ($steamValue !== null && $steamCapacity > 0) {
$steamPercent = max(0.0, min(100.0, ($steamValue / $steamCapacity) * 100));
}
?>
<div class="module-subcard">
<div class="module-subcard__title"><?php echo module_html($boiler['label']); ?></div>
<div class="module-row">
<span class="module-row__label">Steam Flow</span>
<span class="module-row__value"><?php echo module_number($steamValue, 0); ?> kpph</span>
</div>
<div class="module-progress">
<div class="module-bar">
<div class="module-bar__fill" style="width: <?php echo number_format($steamPercent, 2); ?>%;"></div>
</div>
<span class="module-notes">Capacity <?php echo number_format($steamCapacity); ?> kpph</span>
</div>
<?php foreach ($boiler['metrics'] as $metric) : ?>
<div class="module-row">
<span class="module-row__label"><?php echo module_html($metric['label']); ?></span>
<span class="module-row__value"><?php echo module_number($metric['value'], $metric['decimals'] ?? 0); ?> <?php echo module_html($metric['unit']); ?></span>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</section>