Add a photo of today's dish and it stands beside the sides in today's panel, with the dish name still the largest thing on the screen.
Live card
Category: Food and drink. Tags: Schools and campuses, Restaurants and cafes.
Data and privacy
Feed: screenrig.lunch/v1.
Feed documents carry source attribution. The Player supplies the feed to the card.
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 | Empty reads School lunch (School breakfast, School snack). |
school | string | "" | maxLength: 60 | Shown beside the title. A feed's school name fills it when empty. |
meal | string | "lunch" | "breakfast", "lunch", "snack" | |
count | integer | 4 | minimum: 1; maximum: 6 | Days listed after the featured day. |
image | string | "" | maxLength: 200 | A project media reference (media:<id>): a photo of today's dish, shown beside the sides. Empty sets the card without a photo. |
showAllergens | boolean | true | Allergen and diet marks and their key. | |
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
days | array | [] | minItems: 0; maxItems: 31 | The menu by day. A feed (screenrig.lunch/v1) wins when present; the data store supplies the same rows otherwise. |
days[].date | string | maxLength: 10; Required | YYYY-MM-DD in the screen's zone. | |
days[].closed | boolean | false | No meal this day (holiday, no school). | |
days[].note | string | maxLength: 80 | Shown on the day: Pizza day, or why there is no school. | |
days[].items | array | maxItems: 12 | The meal in order; the first item is the main dish. | |
days[].items[].name | string | minLength: 1; maxLength: 60; Required | ||
days[].items[].allergens | array | maxItems: 10 | milk, egg, fish, shellfish, tree nuts, peanuts, wheat, soy, sesame. Each shows as a two-letter mark. | |
days[].items[].diet | string | "vegetarian", "vegan" | Shows a V or VG mark. | |
days[].meals | array | maxItems: 4 | A feed's meals for the day; the card's meal picks one. Without meals the day's items are used. | |
days[].meals[].kind | string | "breakfast", "lunch", "snack"; Required | ||
days[].meals[].items | array | maxItems: 12; Required | ||
days[].meals[].items[].name | string | minLength: 1; maxLength: 60; Required | ||
days[].meals[].items[].allergens | array | maxItems: 10 | milk, egg, fish, shellfish, tree nuts, peanuts, wheat, soy, sesame. Each shows as a two-letter mark. | |
days[].meals[].items[].diet | string | "vegetarian", "vegan" | Shows a V or VG mark. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type school-lunch --major 1 --file params.json --context-file context.md
Example data
{
"days": []
}
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.