---
slug: "pi-masjidly-prayer-times"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/mwijanarko1/pi-prayer-times@main/README.md"
repo: "https://github.com/mwijanarko1/pi-prayer-times"
source_file: "README.md"
branch: "main"
---
# pi-masjidly-prayer-times

![Current prayer highlighted in the Pi footer](https://github.com/mwijanarko1/pi-prayer-times/raw/HEAD/assets/prayer-times-highlight.png)

Pi extension that shows today's mosque prayer times beneath the editor.

Prayer data comes from Masjidly and includes mosques across multiple countries and cities.

## Install

```bash
pi install npm:pi-masjidly-prayer-times
```

Or from GitHub:

```bash
pi install git:github.com/mwijanarko1/pi-prayer-times
```

Then run `/reload` or restart Pi.

## Configure

Run:

```text
/prayer-settings
```

Choose:

1. Country
2. City
3. Mosque
4. `Adhan only` or `Adhan and Iqamah`

The default is Muslim Welfare House Sheffield with Adhan-only times.

Settings are stored in:

```text
~/.pi/agent/pi-prayer-times.json
```

## Footer examples

Adhan only:

```text
Prayer: Fajr 03:46 · Dhuhr 13:12 · Asr 17:34 · Maghrib 21:30 · Isha 22:36
```

Adhan and Iqamah:

```text
Fajr 03:46/04:00 · Dhuhr 13:12/13:30 · Asr 17:34/18:15 · Maghrib 21:30/21:30 · Isha 22:36/22:36
```

The upcoming prayer is highlighted using the mosque's Iqamah schedule. Times refresh when Pi starts, on each turn, and after midnight in the selected mosque's timezone.

## Development

```bash
bun test
npm pack --dry-run
pi -e /absolute/path/to/pi-prayer-times
```

## Data attribution

Prayer timetable data: Masjidly.

## License

MIT
