Horizontal carbon monoxide (CO) card
Who it’s for
Environmental health officers, air quality managers, and smart city operators ask “can I compare CO across several stations without losing the severity colors?” The horizontal layout is designed for dashboards where vertical space is limited and multiple readings must share a narrow column.
What it does
A monitoring station reporting carbon = 3.2 mg/m³ displays the color-coded reading in a wide, low-height card: green for Good (0–5 mg/m³), light green for Moderate (5–10 mg/m³), orange for Elevated (10–25 mg/m³), dark orange for High (25–50 mg/m³), and red for Hazardous (above 50 mg/m³). The horizontal format lets you stack many sensors in a narrow sidebar without scrolling.
- Live CO reading in mg/m³ with color coding across five severity bands
- Compact horizontal layout fits more sensors in a narrow column than a square card
- Shows one sensor’s reading per widget; stack multiple widgets to display a full station network in a single sidebar
How to set up
Data keys
| Key | Role | Type | Description |
|---|---|---|---|
carbon | Main value | Timeseries | Carbon monoxide concentration in mg/m³; change the key name to match your device’s telemetry key |
The widget ships with a simulated function datasource key labeled Carbon monoxide, so it draws random values until you point the datasource at a device and rename the key.
To point it at your own device: open the dashboard in edit mode, open the widget’s Datasources, pick the entity or entity alias, and replace the function key with the key your device reports.
Value ranges
| Range | Level | Color |
|---|---|---|
| 0–5 | Good | Green |
| 5–10 | Moderate | Light Green |
| 10–25 | Elevated | Orange |
| 25–50 | High | Dark Orange |
| 50+ | Hazardous | Red |
How to customize
- To change the severity thresholds — edit Icon color ranges and Value color ranges; set the same boundaries in both so the icon and the number always agree.
- To change the band colors — edit the color of each range in Icon color ranges and Value color ranges.
- To rename the units label — change the Units field in the widget settings if your sensor reports in ppm instead of mg/m³.
Tips
- Stack horizontal CO cards in a fixed-width sidebar next to a map widget so operators can see which stations are elevated while keeping the map in view.
- Arrange cards in the same geographic order as the stations appear on the map so operators can match a colored card to a location without reading the label.
- For compliance reporting, pair this card with a CO chart card so inspectors see both the current reading and the daily trend without switching views.
Share Your Widget with the Community
Built a custom widget? Export it as a JSON from ThingsBoard and publish it to the IoT Hub through a simple 4-step wizard (Upload, Listing, Readme, Review & Submit). Share it with thousands of ThingsBoard developers worldwide and get featured in the catalog.