Inspect NO₂ and CO concentrations against configured A1 and A2 thresholds, and review the alarm reported for each gas.
Mine Air Gas Readings · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
snapshotVentilationSnapshot | null (optional)
Location, optional airflow and the NO2 and CO channels with timestamped measurements, optional site thresholds and reported alarms. Pass null when unavailable.
Optional command with gas and alarmId. Reject failed commands and publish the confirmed alarm state in the snapshot.
simulateboolean (optional)
Advances the finite built-in example only. It defaults to true and respects reduced motion.
indexnumber (optional)
Adds a short chart entrance delay in widget grids.
Data and integration
Preview
An illustrative return-airway trend with separate gas channels and example-only A1 and A2 bands.
Inputs
Supply channels.NO2 and/or channels.CO. Each channel has samples with a timestamp at in Unix milliseconds and a nonnegative ppm value or null. Optional limits specify positive a1Ppm and a strictly higher a2Ppm from the monitoring system. Optional alarm has an event id, level A1 or A2, and state active or acknowledged. Use alarm: null when the source explicitly reports no active alarm and omit it when the state is unknown. Optional airflowM3s is in cubic metres per second. Set stale for one channel or the entire snapshot when freshness is lost.
Source options
Map the authorised monitoring feed. Supply the site-configured alarm thresholds, stable alarm-event IDs and the authoritative alarm state. The example thresholds are for demonstration. The monitoring system and site procedures own alarm clearance and any decision to re-enter.
Actions
Choose NO₂ or CO. Drag, tap or use the arrow keys to inspect the history. End or Latest returns to the newest sample. Acknowledge sends the selected gas and event ID to the host. The widget waits for the refreshed state and leaves a reported acknowledged alarm visible until the source clears it.
Integration requirements
The chart compares unrounded readings with the supplied thresholds and includes the boundary in the higher band. This comparison is independent of the alarm reported by the feed. Samples sort chronologically and the last supplied sample at a repeated timestamp wins. Invalid timestamps are skipped. Invalid or missing concentrations break the trace and stay unavailable at the latest timestamp. Times are UTC. Missing or invalid limits leave the reading unclassified. A stale feed keeps its last reported values visible and disables acknowledgement for the affected channels.