Today card

The date as a large numeral with the weekday, month and year, day of the year and ISO week, plus the lead observance and an on-this-day line.

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

This card is drawn in your browser by the same code the Players run, with sample data.

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

NameTypeDefaultValues and limitsDescription
datestring, nullnullpattern: "^\\d{4}-\\d{2}-\\d{2}$"YYYY-MM-DD to show instead of today in the screen's zone; null is today.
locationobject, nullnulladditionalProperties: falseWhere 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.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
countrystring""maxLength: 2The ISO 3166-1 country (two letters, for example CA) whose public holidays and observances join the international days. Empty reads the international days alone.
languagestring"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.
timeZonestring, nullnull
stylestring"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.
showProgressboolean, nullnullShow 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.
showHistorybooleantrueShow the on-this-day line from the almanac feed.

Dynamic properties

NameTypeDefaultValues and limitsDescription
observancesarray[]minItems: 0; maxItems: 12Your own observances: a company day, a closure, a birthday. They join the feed's and read first when a holiday.
observances[].datestringpattern: "^(\\d{4}-)?\\d{2}-\\d{2}$"; RequiredMM-DD for every year, or YYYY-MM-DD for one day.
observances[].namestringminLength: 1; maxLength: 60; Required
observances[].kindstring"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.