State whether the venue is open or closed and when that changes. Show the week's hours with today marked, and list holiday exceptions in place of the regular hours.
Live card
Category: Retail. Tags: Schedules, Stores, Restaurants and cafes, Healthcare.
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 | |
hour12 | boolean | false | ||
closingSoonMinutes | integer | 30 | minimum: 0; maximum: 180 | Minutes before closing (or opening) that the status turns to closing soon (opening soon). |
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
hours | object | additionalProperties: false; Required | Each weekday's open ranges; a missing or empty day is closed. | |
hours.mon | array | [] | maxItems: 4 | |
hours.mon[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.mon[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
hours.tue | array | [] | maxItems: 4 | |
hours.tue[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.tue[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
hours.wed | array | [] | maxItems: 4 | |
hours.wed[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.wed[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
hours.thu | array | [] | maxItems: 4 | |
hours.thu[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.thu[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
hours.fri | array | [] | maxItems: 4 | |
hours.fri[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.fri[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
hours.sat | array | [] | maxItems: 4 | |
hours.sat[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.sat[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
hours.sun | array | [] | maxItems: 4 | |
hours.sun[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
hours.sun[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
exceptions | array | [] | maxItems: 40 | |
exceptions[].date | string | pattern: "^\\d{4}-\\d{2}-\\d{2}$"; Required | ||
exceptions[].closed | boolean | false | ||
exceptions[].ranges | array | [] | maxItems: 4 | |
exceptions[].ranges[].open | string | pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"; Required | ||
exceptions[].ranges[].close | string | pattern: "^(([01]\\d|2[0-3]):[0-5]\\d|24:00)$"; Required | At or before open runs past midnight; 24:00 is the end of the day. | |
exceptions[].note | string | "" | maxLength: 40 |
Example params
{
"theme": "neomustard"
}
screenrig card create --type opening-hours --major 1 --file params.json --context-file context.md
Example data
{
"hours": {},
"exceptions": []
}
Layouts
This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.
Layouts: full. Forms: landscape, portrait.
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.