Bell schedule card

The current period, the time left and what is next, from a list of periods and the wall clock in the screen's zone. A schedule can apply to chosen weekdays (a late-start Wednesday); the day's periods are listed with the current one marked.

Category: Schools. Tags: Schools and campuses, Schedules, Countdowns and timers, Clocks and calendars.

Previews

Bell schedule
Canvas
Bell schedule
Corner
Bell schedule
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Bell schedule"maxLength: 40The heading when the day's schedule has no name of its own.
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
schedulesarray[]minItems: 0; maxItems: 8The schedules. Today uses the one that lists today's weekday in days, else the first with no days. With none for today the board says there are no bells.
schedules[].namestringmaxLength: 30Shown as the heading: Regular day, Late start, Exams.
schedules[].daysarray[]maxItems: 7ISO weekdays (1 Monday to 7 Sunday) this schedule applies to; none means every day not listed by another schedule.
schedules[].periodsarrayminItems: 0; maxItems: 16; Required
schedules[].periods[].namestringminLength: 1; maxLength: 30; Required
schedules[].periods[].startstringpattern: "^\\d{1,2}:\\d{2}$"; RequiredHH:MM, 24-hour, in the screen's zone.
schedules[].periods[].endstringpattern: "^\\d{1,2}:\\d{2}$"; RequiredHH:MM, 24-hour; 24:00 is midnight. Must be after the start.
footnotestring""maxLength: 120A line for the foot of the board: an assembly, a changed bell.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "bell-schedule",
  "primitive": "card",
  "card": "bell-schedule",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "bell-schedule-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/bell-schedule-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"schedules":[],"footnote":""}}'