Live card
Category: Food and drink. Tags: Restaurants and cafes, Stores.
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 |
|---|---|---|---|---|
pageSeconds | integer | 10 | minimum: 4; maximum: 60 | When the lists do not fit, the seconds each page stays up. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "" | maxLength: 120 | The dish. |
subtitle | string | "" | maxLength: 80 | A byline: the kitchen, the cook, the course. |
image | string | "" | maxLength: 200 | A project media reference for the dish's photo. |
prep | integer | 0 | minimum: 0; maximum: 1440 | Preparation minutes. |
cook | integer | 0 | minimum: 0; maximum: 1440 | Cooking minutes. |
serves | integer | 0 | minimum: 0; maximum: 1000 | How many it serves. |
tags | array | [] | minItems: 0; maxItems: 6 | Short marks: Vegetarian, Gluten-free, Quick. |
ingredients | array | [] | minItems: 0; maxItems: 60 | |
ingredients[].heading | string | "" | maxLength: 40 | A section heading such as For the sauce; it replaces name. |
ingredients[].amount | string | "" | maxLength: 16 | The quantity: 2 tbsp, 400 g. |
ingredients[].name | string | "" | maxLength: 80 | The ingredient. |
ingredients[].note | string | "" | maxLength: 40 | Prepared how: chopped, divided. |
steps | array | [] | minItems: 0; maxItems: 40 | |
step | integer | 0 | minimum: 0; maximum: 40 | The step being cooked, counting from 1. Earlier steps dim and this one is highlighted. 0 highlights none. |
tip | string | "" | maxLength: 200 | A closing tip. |
stepAt | string, null | null | ISO 8601 instant the cook moved to step; Primetime plays the next-step moment from it. Send it with step. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type recipe --major 1 --file params.json --context-file context.md
Example data
{
"title": "",
"subtitle": "",
"image": "",
"prep": 0,
"cook": 0,
"serves": 0,
"tags": [],
"ingredients": [],
"steps": [],
"step": 0,
"tip": "",
"stepAt": null
}
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.