The date shows as a large numeral with the weekday beneath it, with the month and year, the day of the year and ISO week, and the lead observance and an on-this-day line, set large to read across a room. It fills the whole screen or any rectangle, sits in the middle, tucks into a corner as a small square or one line, and runs as a band along an edge. You set a date instead of today, the time zone and your own observances, and you choose plain or tear-off page style, the two bars for the day of the year and ISO week, and the on-this-day line.
Live card
Category: Time. Tags: Clocks and calendars, Schedules, Offices and workplaces, Lobbies and reception.
Data and privacy
Feed: screenrig.almanac/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 |
|---|---|---|---|---|
date | string, null | null | pattern: "^\\d{4}-\\d{2}-\\d{2}$" | YYYY-MM-DD to show instead of today in the screen's zone; null is today. |
location | object, null | null | additionalProperties: false | Where the almanac is read for, the place its sun and moon times are worked out at. {screen.location} takes the screen's own place; null reads the almanac with no place. |
location.name | string | maxLength: 40; Required | ||
location.latitude | number | minimum: -90; maximum: 90; Required | ||
location.longitude | number | minimum: -180; maximum: 180; Required | ||
country | string | "" | maxLength: 2 | The ISO 3166-1 country (two letters, for example CA) whose public holidays and observances join the international days. Empty reads the international days alone. |
language | string | "en" | "ar", "bs", "cs", "de", "en", "es", "fr", "it", "pt", "ru", "sv", "tr", "uk", "zh" | The Wikipedia edition the on-this-day line is read from. |
timeZone | string, null | null | ||
style | string | "plain" | "plain", "page" | plain draws the date as a numeral with the weekday beneath it; page draws the tear-off page in full, free and center. |
showProgress | boolean, null | null | Show the day of the year and the ISO week as two bars beside the date. Null (the default) shows them where there is no observance or history to fill the space; false never shows them. | |
showHistory | boolean | true | Show the on-this-day line from the almanac feed. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
observances | array | [] | minItems: 0; maxItems: 12 | Your own observances: a company day, a closure, a birthday. They join the feed's and read first when a holiday. |
observances[].date | string | pattern: "^(\\d{4}-)?\\d{2}-\\d{2}$"; Required | MM-DD for every year, or YYYY-MM-DD for one day. | |
observances[].name | string | minLength: 1; maxLength: 60; Required | ||
observances[].kind | string | "observance" | "observance", "holiday" | A holiday leads the list and warms the page. |
Example params
{
"theme": "neomustard",
"location": {
"name": "Vancouver",
"latitude": 49.25,
"longitude": -123.0
}
}
screenrig card create --type today --major 1 --file params.json
Example data
{
"observances": []
}
Layouts
This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.
Layouts: full, free, 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.