Earthquakes card

Largest quake in the chosen window shown as a big magnitude, alongside the latest events with place, time and depth, plus a seismogram of the day.

Display centres on the largest supplied quake in the chosen window, with recent events and a magnitude history. Primetime retains its severity colours while adding slow attention outlines and quiet cues tied to quake and update instants. Filtering, sorting, tsunami flags and stale-data behaviour follow the supplied feed or card data.

Live card

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

Category: Weather. Tags: Alerts and status, Weather and environment.

Data and privacy

Feed: screenrig.earthquakes/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"Earthquakes"maxLength: 40
areastring""maxLength: 60Where the list covers, shown beside the title: Within 500 km of Vancouver. A feed's area name fills it when empty.
windowHoursinteger24minimum: 1; maximum: 168How far back the card looks.
minMagnitudenumber2.5minimum: 0; maximum: 9
countinteger10minimum: 3; maximum: 20Most rows in the list.
sortstring"recent""recent", "largest"
unitsstring"km""km", "mi"
staleMinutesinteger90minimum: 5; maximum: 1440
hour12booleanfalse
locationobjectadditionalProperties: falsePlace the distances are measured from. Selects the feed.
location.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
radiusKmnumber500minimum: 10; maximum: 20000Quakes within this distance of the location. Selects the feed.

Dynamic properties

NameTypeDefaultValues and limitsDescription
quakesarray[]minItems: 0; maxItems: 200Recent quakes. A feed (screenrig.earthquakes/v1) wins when present; the data store supplies the same rows otherwise.
quakes[].idstringmaxLength: 40
quakes[].timestringmaxLength: 32; RequiredWhen it happened, ISO 8601.
quakes[].magnitudenumberminimum: -2; maximum: 10; Required
quakes[].placestringminLength: 1; maxLength: 100; Required12 km W of Ridgecrest, CA.
quakes[].depthKmnumberminimum: 0; maximum: 800
quakes[].distanceKmnumberminimum: 0; maximum: 20000From the screen's place.
quakes[].tsunamibooleanfalse
updatedstring""maxLength: 32When the list was fetched, ISO 8601 (data store only; a feed carries fetchedAt).

Example params

{
  "theme": "neomustard",
  "location": {
    "name": "Vancouver",
    "latitude": 49.25,
    "longitude": -123.0
  }
}
screenrig card create --type earthquakes --major 1 --file params.json --context-file context.md

Example data

{
  "quakes": [],
  "updated": ""
}

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.