This commit is contained in:
2026-01-10 04:39:21 +01:00
parent 8de9a0dd87
commit eee3f48569
6 changed files with 75 additions and 31 deletions

View File

@@ -102,14 +102,14 @@
<!-- Temperature Gauges -->
<div class="temp-group">
<div class="temp-item">
<div class="temp-value" style="color: {tempColor}">{temperature.toFixed(0)}°</div>
<div class="temp-value" style="color: {tempColor}">{temperature.toFixed(1)}°</div>
<div class="temp-label">PA Temp</div>
<div class="temp-mini-bar">
<div class="temp-mini-fill" style="width: {(temperature / 80) * 100}%; background: {tempColor}"></div>
</div>
</div>
<div class="temp-item">
<div class="temp-value" style="color: {tempColor}">{harmonicLoadTemp.toFixed(0)}°</div>
<div class="temp-value" style="color: {tempColor}">{harmonicLoadTemp.toFixed(1)}°</div>
<div class="temp-label">HL Temp</div>
<div class="temp-mini-bar">
<div class="temp-mini-fill" style="width: {(harmonicLoadTemp / 80) * 100}%; background: {tempColor}"></div>

View File

@@ -3,7 +3,14 @@
export let status;
$: heading = status?.heading || 0;
let heading = 0;
let connected = false;
// Update heading only if we have a valid value from status
$: if (status?.heading !== undefined && status?.heading !== null) {
heading = status.heading;
}
$: connected = status?.connected || false;
let targetHeading = 0;