Travel Times card

Driving, transit or walking times from here to key destinations, coloured by congestion against the usual journey. The host supplies the routes.

Supplied travel times sit alongside usual journey durations in route bars, with congestion words and a four-step meter. The board scales to its routes: a few get large type and a big number, many tighten and page, and long names wrap at word boundaries. Through Primetime, bars grow in row by row against a slow road-interchange background and the minutes count up, accompanied by quiet feed-update cues. Restrained outlines mark heavy, severe and closed routes. Congestion thresholds, ordering and rounding are unchanged.

Live card

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

Category: Public information. Tags: Transit and travel, Wayfinding and directories, Weather and environment.

Data and privacy

Feed: screenrig.traveltimes/v1.

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

Properties

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

Static properties

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 40Empty uses Travel times.
countinteger6minimum: 1; maximum: 12
orderstring"listed""listed", "fastest", "slowest"Closed and no-data routes always come last when sorting.
unitsstring"km""km", "mi"
scaleMinutesinteger60minimum: 10; maximum: 240The trip length a full bar stands for at least; a longer trip on the board widens the bar scale to the next round step.
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
originobject, nullnulladditionalProperties: falseWhere the trips start; the feed's wins.
origin.namestringminLength: 1; maxLength: 60; Required
routesarray[]minItems: 0; maxItems: 24Routes, the same rows as the screenrig.traveltimes/v1 feed's routes. A feed wins when present; the data store supplies the same rows otherwise.
routes[].destinationstringminLength: 1; maxLength: 60; Required
routes[].minutesnumberminimum: 0; maximum: 999The trip now. A route without it shows only when congestion is closed.
routes[].typicalMinutesnumberminimum: 0; maximum: 999The usual trip; the tick on the bar and the congestion when none is given.
routes[].viastringmaxLength: 60
routes[].distanceKmnumberminimum: 0; maximum: 100000
routes[].modestring"drive", "transit", "walk"drive (the default), transit or walk.
routes[].congestionstring"light", "moderate", "heavy", "severe", "closed"Empty works it out from the minutes against the usual time.
updatedAtstring""maxLength: 40When the times were fetched, ISO 8601 (data store only; a feed carries fetchedAt).

Example params

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

Example data

{
  "origin": null,
  "routes": [],
  "updatedAt": ""
}

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.