Office hours card

Faculty and teaching assistants in office hours now, when each is next in, and the room to find them.

Current office hours show which faculty and teaching assistants are in now. Next-in times and the room for each person round out the listing.

Live card

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

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

Data and privacy

This card uses its configured properties and live card data.

Only the hours and rooms the department publishes.

Properties

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

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Office hours"maxLength: 40
soonMinutesinteger60minimum: 5; maximum: 240Hours starting within this many minutes read as starting soon.
sortstring"status""status", "feed"status lists who is in first, then who is next; feed keeps the order given.
showCoursebooleantrue
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
peoplearray[]maxItems: 24Faculty and teaching assistants with their weekly office hours.
people[].namestringminLength: 1; maxLength: 40; Required
people[].rolestringmaxLength: 30Professor, TA, advisor.
people[].coursestringmaxLength: 30CPSC 110.
people[].roomstringmaxLength: 24ICICS 304.
people[].hoursarraymaxItems: 10The weekly office hours.
people[].hours[].daysarraymaxItems: 7Weekdays; empty means every day.
people[].hours[].startstringmaxLength: 5; RequiredHH:MM in the screen's zone.
people[].hours[].endstringmaxLength: 5; Required
people[].awaybooleanfalseOut for now whatever the hours say; note says why.
people[].notestringmaxLength: 40At a conference until Friday.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type office-hours --major 1 --file params.json --context-file context.md

Example data

{
  "people": []
}

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.