Course timetable card

A building's classes today in time order: course, title, instructor and room, with what is on now and what starts next.

Category: Schools. Tags: Schools and campuses, Schedules, Wayfinding and directories.

Previews

Course timetable
Canvas
Course timetable
Corner
Course timetable
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

Feed: screenrig.timetable/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Only the course, instructor and room the school publishes; never who is enrolled.

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"Today's classes"maxLength: 40
soonMinutesinteger15minimum: 1; maximum: 120A class starting within this many minutes reads as starting soon.
showInstructorbooleantrue
staleMinutesinteger60minimum: 1; maximum: 1440
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
sessionsarray[]maxItems: 200The building's classes today. A feed (screenrig.timetable/v1) wins when present; the data store supplies the same rows otherwise.
sessions[].coursestringminLength: 1; maxLength: 16; RequiredCPSC 110.
sessions[].titlestringmaxLength: 60Computation, Programs and Programming.
sessions[].instructorstringmaxLength: 40
sessions[].roomstringmaxLength: 24
sessions[].kindstringmaxLength: 16Lecture, lab, tutorial or seminar.
sessions[].startstringmaxLength: 32; RequiredISO 8601; with an offset or wall time in the screen's zone.
sessions[].endstringmaxLength: 32; Required
sessions[].statusstring"scheduled""scheduled", "moved", "cancelled"
sessions[].notestringmaxLength: 50Room changed from 101.
updatedstring""maxLength: 32When the timetable was read, ISO 8601 (data store only; a feed carries fetchedAt).

Canvas example

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

{
  "id": "course-timetable",
  "primitive": "card",
  "card": "course-timetable",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "course-timetable-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/course-timetable-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"sessions":[],"updated":""}}'