# Prayer times card

> Canonical HTML: https://screenrig.ai/docs/cards/prayer-times/

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](/cards/prayer-times/v1/screenshots/canvas-bloom.webp?sha=dfa6d26868c43259f32c829bb1df0b4b2dbb999cba8a029164844df2c3d04984)

Canvas

![Prayer times](/cards/prayer-times/v1/screenshots/corner-bloom.webp?sha=f07658b0cfd0622ad279ca0dfa31878231518b4a5825256a9bdc97d7bd8221ec)

Corner

![Prayer times](/cards/prayer-times/v1/screenshots/chip-bloom.webp?sha=6955849ade3f1a7058603cf44bd65f65a9ff4dac3c502cf522473c205e37ac59)

Chip

## Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#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

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `location` | object |  | additionalProperties: `false` |  |
| `location.name` | string |  | maxLength: `40`; Required |  |
| `location.latitude` | number |  | minimum: `-90`; maximum: `90`; Required |  |
| `location.longitude` | number |  | minimum: `-180`; maximum: `180`; Required |  |
| `method` | string | `"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. |
| `asr` | string | `"standard"` | `"standard"`, `"hanafi"` | The Asr juristic method: standard (shadow equals the object, Shafi'i, Maliki, Hanbali) or hanafi (twice the object). |
| `highLatitude` | string | `"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. |
| `adjustments` | object | `{}` | additionalProperties: `false` | Minutes added to each prayer, for a mosque's own precautions or fixed times. |
| `adjustments.fajr` | integer | `0` | minimum: `-60`; maximum: `60` |  |
| `adjustments.dhuhr` | integer | `0` | minimum: `-60`; maximum: `60` |  |
| `adjustments.asr` | integer | `0` | minimum: `-60`; maximum: `60` |  |
| `adjustments.maghrib` | integer | `0` | minimum: `-60`; maximum: `60` |  |
| `adjustments.isha` | integer | `0` | minimum: `-60`; maximum: `60` |  |
| `showSunrise` | boolean | `true` |  |  |
| `hour12` | boolean | `false` |  |  |
| `timeZone` | string, null | `null` |  |  |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `note` | string | `""` | maxLength: `120` | A 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](/docs/cards/#publish-a-card-canvas).

```json
{
  "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": "prayer-times-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](/docs/authentication/).

```console
curl --request PUT "https://api.screenrig.ai/api/card-data/prayer-times-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"note":""}}'
```
