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
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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Office hours" | maxLength: 40 | |
soonMinutes | integer | 60 | minimum: 5; maximum: 240 | Hours starting within this many minutes read as starting soon. |
sort | string | "status" | "status", "feed" | status lists who is in first, then who is next; feed keeps the order given. |
showCourse | boolean | true | ||
hour12 | boolean | false | ||
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
people | array | [] | maxItems: 24 | Faculty and teaching assistants with their weekly office hours. |
people[].name | string | minLength: 1; maxLength: 40; Required | ||
people[].role | string | maxLength: 30 | Professor, TA, advisor. | |
people[].course | string | maxLength: 30 | CPSC 110. | |
people[].room | string | maxLength: 24 | ICICS 304. | |
people[].hours | array | maxItems: 10 | The weekly office hours. | |
people[].hours[].days | array | maxItems: 7 | Weekdays; empty means every day. | |
people[].hours[].start | string | maxLength: 5; Required | HH:MM in the screen's zone. | |
people[].hours[].end | string | maxLength: 5; Required | ||
people[].away | boolean | false | Out for now whatever the hours say; note says why. | |
people[].note | string | maxLength: 40 | At 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.