advanced environmental view
This commit is contained in:
1 parent
336a4e821e
commit
c060fb79c0
4 files changed
+1063
-401
No files matched your search
@@ -203,7 +203,6 @@
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 40px;
|
||||
overflow: visible;
|
||||
}
|
||||
/* Interactive charts get a slightly taller, cursor-forward hit target.
|
||||
|
||||
+13
-4
@@ -125,10 +125,19 @@ function createStore() {
|
||||
chamber.environment.voc_ppb = payload.voc_ppb;
|
||||
}
|
||||
|
||||
chamber.last_update_ts = now;
|
||||
chamber.burn_in = payload.burn_in;
|
||||
chamber.latestSweep = payload.sweep;
|
||||
chamber.baseline = payload.baseline;
|
||||
// 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.burn_in = payload.burn_in;
|
||||
chamber.latestSweep = payload.sweep;
|
||||
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
|
||||
// the daemon didn't compute it — charts must distinguish "no data"
|
||||
|
||||
+13
-2
@@ -53,9 +53,12 @@ export type ChamberSlot = {
|
||||
export type ChamberEnvironment = {
|
||||
temp_c: number;
|
||||
rh_pct: number;
|
||||
co2_ppm?: number; // fruiting chamber
|
||||
co2e_ppm?: number; // colonization chamber
|
||||
co2_ppm?: number; // fruiting chamber (SCD43 direct)
|
||||
co2e_ppm?: number; // colonization chamber (gas-derived estimate)
|
||||
voc_ppb: number;
|
||||
/** SCD43 cross-validation values — used in sensor health display */
|
||||
scd43_temp_c?: number;
|
||||
scd43_humidity_pct?: number;
|
||||
};
|
||||
|
||||
export type Chamber = {
|
||||
@@ -83,6 +86,12 @@ export type Chamber = {
|
||||
latestSweep?: GasSweepPoint[];
|
||||
/** Baseline sweep profile for comparison (BME690) */
|
||||
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 = {
|
||||
@@ -235,6 +244,8 @@ export type EnvPayload = {
|
||||
};
|
||||
co2: {
|
||||
ppm: number;
|
||||
temp_c: number; // SCD43 internal temp (cross-validation)
|
||||
humidity_pct: number; // SCD43 internal RH (cross-validation)
|
||||
valid: boolean;
|
||||
} | null;
|
||||
co2e_ppm: number | null; // derived on Linux side
|
||||
|
||||
+1037
-394
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user