One to six readings show as big numbers with the band named in words beside a dial, bar, tank or battery shape, clear from across the room. It fills the screen, sits in the middle, tucks into a corner as a square or one line, and runs as a band along an edge. You set one to six readings with a scale, named bands and an optional target, choose a radial, semicircle, speedometer, linear, bullet, tank or battery shape, choose whether the bands show, pick whether the number or the band leads a single reading, and choose always shown or only for warning, danger or missing readings.
Live card
Category: Operations. Tags: Charts and gauges, Numbers and metrics, Offices and workplaces, Factories and warehouses.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "" | maxLength: 40 | A heading above the gauges. |
style | string | "radial" | "radial", "semicircle", "speedometer", "linear", "bullet", "tank", "battery" | radial: a 270 degree dial. semicircle: a half dial. speedometer: a needle over coloured bands. linear: a bar. bullet: bands behind a bar with a target notch. tank: a flat vertical bar in a frame. battery: a flat bar in a frame with a terminal. |
showBands | boolean | true | Draw each reading's qualitative bands (a ring inside a dial). | |
intervalSeconds | integer | 6 | minimum: 3; maximum: 60 | How long the corner and chip show each reading before the next. |
hero | string | "value" | "value", "band" | What leads a single reading: the value (the number, its band named under it) or the band (its word, the number under it). |
presence | string | "always" | "always", "attention" | always: the card is always shown. attention: only while a reading is in a warning or danger band, or has no value yet; the corner and chip then rotate through those readings. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
metrics | array | [{"label":"Living room","value":21.5,"unit":"°C","min":10,"max":30,"decimals":1,"target":22,"bands":[{"to":18,"tone":"cool","label":"Cool"},{"to":24,"tone":"success","label":"Comfortable"},{"to":30,"tone":"warning","label":"Warm"}],"icon":"thermometer"},{"label":"Humidity","value":58,"unit":"%","min":0,"max":100,"bands":[{"to":30,"tone":"warning","label":"Dry"},{"to":60,"tone":"success","label":"Comfortable"},{"to":100,"tone":"cool","label":"Humid"}],"icon":"humidity"},{"label":"Air quality","value":780,"unit":"ppm","min":400,"max":2000,"bands":[{"to":800,"tone":"success","label":"Fresh"},{"to":1200,"tone":"warning","label":"Stuffy"},{"to":2000,"tone":"danger","label":"Poor"}],"icon":"air-vent"}] | minItems: 0; maxItems: 6 | One to six readings. Each has a scale (min, max), qualitative bands (to: the band's upper end; tone: success, warning, danger, accent, cool, warm or muted; label: its name) and an optional target. |
metrics[].label | string | maxLength: 40; Required | ||
metrics[].value | number, null | Without a value the gauge draws as a ghost with its bands and says it is waiting. | ||
metrics[].unit | string | "" | maxLength: 8 | |
metrics[].prefix | string | "" | maxLength: 4 | |
metrics[].min | number | 0 | ||
metrics[].max | number | 100 | ||
metrics[].decimals | integer | 0 | minimum: 0; maximum: 3 | |
metrics[].target | number, null | null | ||
metrics[].bands | array | [] | maxItems: 6 | |
metrics[].bands[].to | number | Required | ||
metrics[].bands[].tone | string | "accent" | "success", "warning", "danger", "accent", "cool", "warm", "muted" | |
metrics[].bands[].label | string | "" | maxLength: 16 | |
metrics[].charging | boolean | false | A battery shows a charging bolt. | |
metrics[].icon | null, string | null | null, "activity-01", "air-vent", "airplane-01", "alert-01", "alert-02", "american-football", "analytics-up", "apple", "arrow-down-01", "arrow-down-right-01", "arrow-up-01", "arrow-up-right-01", "award-01", "baseball", "basketball-01", "battery-full", "bell-ring", "bicycle", "birthday-cake", "bitcoin", "bus-01", "calendar-03", "calendar-04", "calendar-add-01", "calendar-check", "call-02", "camera-01", "cancel-circle", "car-01", "champion", "chart-decrease", "chart-increase", "checkmark-circle-02", "clock-01", "clock-02", "cloud", "cloud-angled-rain", "cloud-angled-zap", "cloud-big-rain", "cloud-drizzle", "cloud-fog", "cloud-hailstone", "cloud-snow", "coffee-01", "coffee-02", "contact-01", "container-truck-01", "cricket-bat", "crown", "delivery-truck-01", "dices", "discord", "discount-tag-01", "dollar-02", "door-closed-locked", "door-open", "drink", "droplet", "ethereum", "euro", "exchange-01", "facebook-01", "factory", "fast-wind", "favourite", "ferry-boat", "fire", "fire-02", "first-aid-kit", "flag-01", "flag-02", "flash", "flower-01", "football", "gauge", "gift", "git-branch", "globe-02", "google", "hand-prayer", "heart", "help-circle", "home-01", "hourglass", "humidity", "ice-hockey", "information-circle", "instagram", "lamp-01", "lantern", "leaf-01", "leaf-02", "lightbulb", "link-01", "linkedin-01", "litecoin", "location-01", "location-04", "mail-01", "medal-first-place", "medical-mask", "meeting-room", "megaphone-01", "message-01", "money-exchange-02", "moon-02", "moon-cloud", "moon-star", "music-note-01", "navigation-03", "new-releases", "new-twitter", "news", "news-01", "noodles", "package-delivered", "parking-area-square", "party", "party-popper", "pause-circle", "percent-circle", "pinterest", "pizza-01", "play-circle", "play-store", "podium", "pound", "pumpkin", "qr-code", "qr-code-01", "queue-01", "quote-down", "quote-up", "ranking", "restaurant-01", "rocket-01", "rss", "running-shoes", "sale-tag-01", "security-check", "shop-sign", "shopping-bag-01", "siren", "smart-phone-01", "snapchat", "snowflake", "sparkles", "spotify", "star", "star-half", "star-off", "stop-circle", "store-01", "sun-03", "sun-cloud-02", "sunrise", "sunset", "swimming", "tag-01", "target-02", "temperature", "tennis-ball", "thermometer", "thermometer-cold", "thermometer-warm", "threads", "ticket-01", "tiktok", "time-quarter-pass", "timer-01", "tornado-02", "train-01", "tram", "trophy", "tropical-storm", "tsunami", "user-02", "user-group", "user-love-01", "vegetarian-food", "volleyball", "volume-high", "vote", "walking", "warehouse", "waves", "whatsapp", "wheat-off", "wifi-01", "wifi-full-signal", "wifi-lock", "wrench-01", "yen", "youtube" | |
metrics[].previous | number, null | null | The reading before it changed at changedAt; the needle or fill sweeps from it to the current value. | |
metrics[].changedAt | string, null | null | ISO 8601 instant the reading changed. Within a few seconds of it the gauge sweeps from previous to the new value. | |
updatedAt | string, null | null | ISO 8601 time of the readings. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type gauge --major 1 --file params.json
Example data
{
"metrics": [
{
"label": "Living room",
"value": 21.5,
"unit": "°C",
"min": 10,
"max": 30,
"decimals": 1,
"target": 22,
"bands": [
{
"to": 18,
"tone": "cool",
"label": "Cool"
},
{
"to": 24,
"tone": "success",
"label": "Comfortable"
},
{
"to": 30,
"tone": "warning",
"label": "Warm"
}
],
"icon": "thermometer"
},
{
"label": "Humidity",
"value": 58,
"unit": "%",
"min": 0,
"max": 100,
"bands": [
{
"to": 30,
"tone": "warning",
"label": "Dry"
},
{
"to": 60,
"tone": "success",
"label": "Comfortable"
},
{
"to": 100,
"tone": "cool",
"label": "Humid"
}
],
"icon": "humidity"
},
{
"label": "Air quality",
"value": 780,
"unit": "ppm",
"min": 400,
"max": 2000,
"bands": [
{
"to": 800,
"tone": "success",
"label": "Fresh"
},
{
"to": 1200,
"tone": "warning",
"label": "Stuffy"
},
{
"to": 2000,
"tone": "danger",
"label": "Poor"
}
],
"icon": "air-vent"
}
],
"updatedAt": null
}
Layouts
This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.
Layouts: full, center, wide, corner, chip, strip. Forms: landscape, portrait, square, strip.
Use this card
Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.