advanced environmental view

This commit is contained in:
grove5_admin committed 2026-05-01 15:22:43 -07:00
1 parent 336a4e821e
commit c060fb79c0
4 files changed
+990 -328

No files matched your search

-1
View File
@@ -203,7 +203,6 @@
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
max-height: 40px;
overflow: visible; overflow: visible;
} }
/* Interactive charts get a slightly taller, cursor-forward hit target. /* Interactive charts get a slightly taller, cursor-forward hit target.
+9
View File
@@ -125,10 +125,19 @@ function createStore() {
chamber.environment.voc_ppb = payload.voc_ppb; chamber.environment.voc_ppb = payload.voc_ppb;
} }
// SCD43 cross-validation values (shown in advanced sensor health panel)
if (payload.co2?.valid) {
chamber.environment.scd43_temp_c = payload.co2.temp_c;
chamber.environment.scd43_humidity_pct = payload.co2.humidity_pct;
}
chamber.last_update_ts = now; chamber.last_update_ts = now;
chamber.burn_in = payload.burn_in; chamber.burn_in = payload.burn_in;
chamber.latestSweep = payload.sweep; chamber.latestSweep = payload.sweep;
chamber.baseline = payload.baseline; chamber.baseline = payload.baseline;
chamber.zone_scores = payload.zone_scores;
chamber.health = payload.health;
chamber.co2e_confidence = payload.co2e_confidence;
// Per-chamber history ring buffer. voc_ppb is undefined (not 0) when // Per-chamber history ring buffer. voc_ppb is undefined (not 0) when
// the daemon didn't compute it — charts must distinguish "no data" // the daemon didn't compute it — charts must distinguish "no data"
+13 -2
View File
@@ -53,9 +53,12 @@ export type ChamberSlot = {
export type ChamberEnvironment = { export type ChamberEnvironment = {
temp_c: number; temp_c: number;
rh_pct: number; rh_pct: number;
co2_ppm?: number; // fruiting chamber co2_ppm?: number; // fruiting chamber (SCD43 direct)
co2e_ppm?: number; // colonization chamber co2e_ppm?: number; // colonization chamber (gas-derived estimate)
voc_ppb: number; voc_ppb: number;
/** SCD43 cross-validation values — used in sensor health display */
scd43_temp_c?: number;
scd43_humidity_pct?: number;
}; };
export type Chamber = { export type Chamber = {
@@ -83,6 +86,12 @@ export type Chamber = {
latestSweep?: GasSweepPoint[]; latestSweep?: GasSweepPoint[];
/** Baseline sweep profile for comparison (BME690) */ /** Baseline sweep profile for comparison (BME690) */
baseline?: SweepBaseline; baseline?: SweepBaseline;
/** Aggregated zone scores from the latest processed payload */
zone_scores?: ZoneScores;
/** BME690 vs SCD43 cross-validation health from the latest payload */
health?: SensorHealth;
/** CO₂e model confidence level from the latest payload */
co2e_confidence?: 'uncalibrated' | 'low' | 'medium' | 'high';
}; };
export type EnvironmentReading = { export type EnvironmentReading = {
@@ -235,6 +244,8 @@ export type EnvPayload = {
}; };
co2: { co2: {
ppm: number; ppm: number;
temp_c: number; // SCD43 internal temp (cross-validation)
humidity_pct: number; // SCD43 internal RH (cross-validation)
valid: boolean; valid: boolean;
} | null; } | null;
co2e_ppm: number | null; // derived on Linux side co2e_ppm: number | null; // derived on Linux side
File diff suppressed because it is too large. Load diff