Monitor pH, turbidity, free chlorine and fluoride against site-defined limits and targets. Open any reading to inspect its configured bands and history.
Water Quality 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.
snapshotWaterQualitySnapshot | null (optional)
Monitoring point, optional timestamp and a map of the four sensor readings. Each reading can include configured limits, a target, a gauge scale, freshness and history. Pass null for an unavailable feed.
simulateboolean (optional)
Advances only the built-in sample. Defaults to true, and respects reduced motion.
indexnumber (optional)
Offsets the gauge entrance slightly in a widget grid.
Data and integration
Preview
An illustrative outlet at Willowbank with a free-chlorine reading that starts below its configured operating target.
Inputs
Use readings.ph for pH, readings.ntu for turbidity in NTU, and readings.cl and readings.f for free chlorine and fluoride in mg/L. Supply finite nonnegative values or null. A reading can include limits and target with lower, upper or both, and a scale with min and max. Optional stale is supplied by the host. observedAt and history[].at are Unix milliseconds, displayed in UTC.
Source options
Normalize sensor telemetry, timestamps and site settings at the host. Supply the limits and targets applicable to the monitoring point. The widget displays and compares the supplied settings.
Actions
Open a sensor to inspect its reading, timestamp, limits and target. If history is supplied, drag or use the arrow keys to inspect samples. The chart sorts by time, retains the last record for a duplicate timestamp and breaks the trace at a missing reading. Escape or pulling down the handle closes the sheet.
Integration requirements
Limits and targets are inclusive. Invalid bands are ignored. A one-sided target inherits the configured limit on its unspecified side, and a target that conflicts with a configured limit is ignored. A limit breach takes priority over a target deviation. Missing and stale measurements remain unverified. A valid scale uses min < max. Without a scale, the gauge derives its range from configured bounds, and its marker clamps to an edge for readings outside the display scale. The values in the details remain independent of the gauge scale.