Prayer times card

The five daily prayers (Fajr, Dhuhr, Asr, Maghrib, Isha) and sunrise, computed on the Player from latitude, longitude, date and zone. A calculation method, the Asr juristic method and a high-latitude rule are params; the next prayer is highlighted with a countdown. No feed.

Category: Time. Tags: Schedules, Clocks and calendars.

Previews

Prayer times
Canvas
Prayer times
Corner
Prayer times
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

This card uses its configured properties and live card data.

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
locationobjectadditionalProperties: false
location.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
methodstring"mwl""mwl", "isna", "egypt", "makkah", "karachi", "tehran", "jafari", "dubai", "kuwait", "qatar", "singapore"The calculation method: mwl Muslim World League (Fajr 18, Isha 17), isna Islamic Society of North America (15, 15), egypt Egyptian General Authority of Survey (19.5, 17.5), makkah Umm al-Qura (18.5, Isha 90 minutes after Maghrib), karachi University of Islamic Sciences (18, 18), tehran Institute of Geophysics, University of Tehran (17.7, Maghrib 4.5, Isha 14), jafari Shia Ithna-Ashari, Leva Institute, Qum (16, Maghrib 4, Isha 14), dubai (18.2, 18.2), kuwait (18, 17.5), qatar (18, Isha 90 minutes after Maghrib), singapore (20, 18). Angles are degrees below the horizon.
asrstring"standard""standard", "hanafi"The Asr juristic method: standard (shadow equals the object, Shafi'i, Maliki, Hanbali) or hanafi (twice the object).
highLatitudestring"auto""auto", "none", "middle-of-night", "one-seventh", "twilight-angle"Where the sky never gets dark enough, Fajr and Isha are held to a share of the night: auto (one-seventh above 48 degrees, middle of the night below), middle-of-night, one-seventh, or twilight-angle (the method's angle over 60). none leaves the times blank when the sun does not reach the angle.
adjustmentsobject{}additionalProperties: falseMinutes added to each prayer, for a mosque's own precautions or fixed times.
adjustments.fajrinteger0minimum: -60; maximum: 60
adjustments.dhuhrinteger0minimum: -60; maximum: 60
adjustments.asrinteger0minimum: -60; maximum: 60
adjustments.maghribinteger0minimum: -60; maximum: 60
adjustments.ishainteger0minimum: -60; maximum: 60
showSunrisebooleantrue
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
notestring""maxLength: 120A line for the foot of the board: the Jumu'ah time, a closure or an announcement. It replaces the method line.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "prayer-times",
  "primitive": "card",
  "card": "prayer-times",
  "major": 1,
  "params": {
    "theme": "neomustard",
    "location": {
      "name": "Vancouver",
      "latitude": 49.25,
      "longitude": -123.0
    }
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "example-key"
}

Write live data

The canvas example binds its data field to example-key. That value is a data key: a name this canvas item chooses, not the name of the card. Give each canvas item its own key when items should show different data, or share one key when they should show the same data. Keys are scoped to the project, follow the K/V key grammar, and cannot start with feed:.

Create this document before showing the card, then replace it to update the screen without republishing. Writes to a key that live canvas items bind are checked against each bound card’s dynamic properties. Use the same project as the playlist.

Save the document as card-data.json. The CLI reads the document itself, with no wrapper:

{
  "note": ""
}
screenrig card-data put example-key --file card-data.json

Or call the API directly. The API wraps the same document in a document field. An agent token already names its project, so no project header is sent; if you send ScreenRig-Project, it must match the token’s project. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/example-key" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"document":{"note":""}}'