Showtimes card

A cinema or theatre lobby board: the films showing with their posters, the next session times and the seats left, and a line for the next session.

Category: Events. Tags: Schedules, Lobbies and reception, Events and venues.

Previews

Showtimes
Canvas
Showtimes
Corner
Showtimes
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.showtimes/v1.

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

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"Now showing"maxLength: 40
venuestring""maxLength: 60The cinema's name, when the feed carries none.
perPageinteger4minimum: 2; maximum: 6Films on a page; further films take the next page.
pageSecondsinteger12minimum: 5; maximum: 60How long each page stays on screen.
maxTimesinteger4minimum: 2; maximum: 6Most session times shown for a film.
windowHoursinteger12minimum: 1; maximum: 48Sessions starting later than this are left out.
graceMinutesinteger10minimum: 0; maximum: 60A session stays on the board this long after it starts, as Now.
fewSeatsinteger20minimum: 1; maximum: 500Seats left at or below this show in the warning colour.
staleMinutesinteger30minimum: 1; maximum: 1440
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
filmsarray[]minItems: 0; maxItems: 40The films and their sessions. A feed (screenrig.showtimes/v1) wins when present; the data store supplies the same rows otherwise.
films[].idstringmaxLength: 40
films[].titlestringminLength: 1; maxLength: 80; Required
films[].ratingstringmaxLength: 10The classification, for example PG.
films[].runtimeMinnumberminimum: 1; maximum: 600
films[].genrestringmaxLength: 30
films[].formatstringmaxLength: 20For example IMAX or 3D.
films[].posterstringmaxLength: 120A media reference (media:<id>).
films[].sessionsarray[]minItems: 0; maxItems: 30
films[].sessions[].startstringmaxLength: 32; RequiredISO 8601.
films[].sessions[].screenstringmaxLength: 20
films[].sessions[].formatstringmaxLength: 20
films[].sessions[].seatsLeftnumberminimum: 0; maximum: 2000
films[].sessions[].soldOutboolean
updatedstring""maxLength: 32When the sessions were fetched, 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": "showtimes",
  "primitive": "card",
  "card": "showtimes",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "showtimes-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/showtimes-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"films":[],"updated":""}}'