Prayer Times card

Fajr, Dhuhr, Asr, Maghrib and Isha, plus sunrise, calculated on the Player from latitude, longitude, date and time zone. Parameters cover the calculation method, Asr juristic method and high-latitude rule; the next prayer is highlighted with a countdown. No feed.

Next prayer takes prominence in a daily timetable calculated from the supplied location, calculation method, Asr method and high-latitude rule. Primetime adds a restrained entrance, a quiet five-minute reminder and a synchronised cue at prayer boundaries. Existing rules continue to govern location, method, adjustments and polar-day behaviour.

Live card

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

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

Data and privacy

This card uses its configured properties and live card data.

Properties

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

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.

Example params

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

Example data

{
  "note": ""
}

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.