Study rooms card

Which library and group study rooms are free now, for how long, and when each booked room frees up.

Category: Schools. Tags: Schools and campuses, Wayfinding and directories, Queues and waits.

Previews

Study rooms
Canvas
Study rooms
Corner
Study rooms
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.rooms/v1.

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

Times only: booking titles and names never show.

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"Study rooms"maxLength: 40
minFreeMinutesinteger20minimum: 0; maximum: 240A room free for less than this reads as booked soon, not free.
opensAtstring""maxLength: 5When the library opens, HH:MM in the screen's zone. Empty: always open.
closesAtstring""maxLength: 5When the library closes, HH:MM. Rooms read free until then; empty: until the day's end.
sortstring"free""free", "feed"free puts the room free the longest first; feed keeps the order given.
showSeatsbooleantrue
staleMinutesinteger10minimum: 1; maximum: 1440
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
roomsarray[]maxItems: 60The rooms. A feed (screenrig.rooms/v1) wins when present; the data store supplies the same rows otherwise.
rooms[].namestringminLength: 1; maxLength: 40; Required
rooms[].floorstringmaxLength: 24Level 2.
rooms[].capacityintegerminimum: 1; maximum: 500Seats.
rooms[].eventsarraymaxItems: 60The room's bookings. Titles and names never show.
rooms[].events[].startstringmaxLength: 32; RequiredISO 8601; with an offset or wall time in the screen's zone.
rooms[].events[].endstringmaxLength: 32Without it a booking lasts an hour.
updatedstring""maxLength: 32When the bookings were 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": "study-rooms",
  "primitive": "card",
  "card": "study-rooms",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "study-rooms-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/study-rooms-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"rooms":[],"updated":""}}'