Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Salah and Hijri Times

AfzGitAfzGit54 downloads

Get Salah Timings with notifications, set Iqamah, and track Islamic Hijri dates. A must-have for practicing Muslims.

Add to Obsidian
Salah and Hijri Times screenshot
Salah and Hijri Times screenshot
Salah and Hijri Times screenshot
Salah and Hijri Times screenshot
Salah and Hijri Times screenshot
  • Overview
  • Scorecard
  • Updates5

بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ

An Obsidian plugin built for daily prayer times, Iqama, Hijri dates, calendar, and configurable reminders.

2026-10-27_18-55

Gallery

Calendar View Commands
Calendar View Commands
Notifications Iqama Support
Notifications Iqama Support
Customize Status Bar Countdown Support
Customize Status Bar Countdown Support

Features

  • Show the next prayer, Iqama, or custom event and its live countdown in the status bar.
  • Right-click the status bar countdown for quick actions: update Iqama times, set the Hijri offset, view the calendar, or display today's prayer times.
  • Open a prayer schedule with prayer and Iqama times, the calculated Islamic midnight and Last Third, Hijri date, and location. The schedule aligns its time columns in a table and includes buttons for Update Iqama times, Set Hijri offset, and View calendar.
  • Browse a calendar by Hijri month or Gregorian month, with highlighted days for Fasting and Jummah and a brighter current day. Select a day to see its prayer times, midnight, and Last Third.
  • Configure prayer calculations, Hijri offset and rollover, Iqama rules, custom daily times, countdown colors, and notifications.
  • Search for a location or use approximate IP location detection.

Commands

  • Set manual location: search for and select a location.
  • Refresh all prayer and Hijri times now: fetch a new schedule immediately.
  • Set Hijri offset: add or subtract days from the calculated Hijri date.
  • Update Iqama times: edit all Iqama rules in one modal.
  • Display prayer times: open today's schedule.
  • Open prayer calendar: browse Hijri- or Gregorian-month calendar views and view a selected day's prayer times.
  • Toggle status bar visibility: show or hide the status bar item.

Right-clicking the status bar countdown opens a menu with Update Iqama times, Set Hijri offset, View calendar, and Display prayer times. The menu executes the commands above rather than duplicating their logic. The prayer-times modal shows the same Update Iqama times, Set Hijri offset, and View calendar actions as buttons.

Location

On first launch, the plugin detects an approximate location from the public IP address. It tries ipwho.is first and falls back to ipapi.co, with a 10-second budget per provider so a stalled request cannot block startup. Responses are validated: missing, null, out-of-range, and placeholder 0,0 coordinates are rejected. IP detection is coarse and can reflect a VPN or ISP egress point, so review the result in settings and set a location manually when accuracy matters.

If detection fails, the status bar shows a setup hint and the settings tab lets you search for a place, detect again, or enter coordinates directly.

Location search uses Open-Meteo's Geocoding API. Coordinates are decimal degrees. New York City: latitude 40.7128, longitude -74.0060. Find coordinates on Google Maps or OpenStreetMap.

Status bar template

Default: {next}: {time} ({countdown}) · {hijri}.

Available tokens:

  • {next}: next prayer, Iqama, or custom event name.
  • {time}: event time.
  • {countdown}: time remaining.
  • {hijri} or {hijri:dd/mm/yyyy}: numeric Hijri date, such as 12/11/1448.
  • {hijri:month}: two-digit Hijri month number.
  • {hijri:long}: Hijri date with month name.
  • {location}: saved location name.

Notifications and reminders

An Obsidian notice can appear when a prayer, enabled Iqama, or custom event is reached. Notices stay visible for 10 seconds. Optional sound is generated locally. Set separate advance reminders for prayer/custom events and Iqama; each event's reached-time and advance notices can be enabled or disabled individually.

Custom daily times and fixed Iqama entries accept 24-hour HH:mm values or the adjacent time picker. The picker supports 12- and 24-hour display and always rests on one of five aligned rows (two above, the selected row, two below); the selected hour/minute is centred exactly, including after trackpad, touch, wheel, or keyboard input.

Prayer and Hijri calculations

Prayer times and calendar dates are provided by the AlAdhan API, using the selected calculation method and saved coordinates. Islamic midnight is calculated as the midpoint between Maghrib and the next Fajr; Last Third is two-thirds of the way through the same night. Both are derived locally and have no Iqama. Hijri rollover compares Maghrib with the saved location's local clock and requests the corresponding location-local Gregorian date, so it remains correct when the device timezone differs from the prayer location. For offsets and post-Maghrib rollover, the plugin requests the service conversion for the shifted Gregorian day, preserving its actual Hijri month lengths. The calendar displays the service's Hijri dates with the configured day offset. Hijri rollover in the daily schedule can occur after Maghrib or at midnight.

Sunset is represented by Maghrib in the prayer schedule; there is no separate Sunset Iqama because Maghrib is the sunset prayer.

Development checks

Run npm test to execute the unit test suite. Run npm run build to type-check the full TypeScript project and create the main.js bundle. Run npm run lint:obsidian to check the source against the official Obsidian plugin guidelines; the repository currently reports zero errors and zero warnings.

The tests cover clock math, rollover and location timezones, Gregorian date shifting, calendar month lengths and boundaries, fasting markers, Iqama rules, custom times, midnight and Last Third calculations, IP-location payload parsing, time-picker row geometry, and coordinates.

Data and privacy

Settings, coordinates, and notification deduplication history are stored in Obsidian plugin data. The plugin sends requests to:

  • api.aladhan.com for prayer times and calendar data.
  • ipwho.is and ipapi.co for approximate IP-based location detection when no location is saved.
  • geocoding-api.open-meteo.com for location search when the user searches for a place.

The plugin does not use client-side telemetry. Requests include location coordinates when fetching schedules or calendar data.

Compatibility

The plugin supports Obsidian desktop and mobile. Runtime networking uses Obsidian's requestUrl() API; plugin runtime code does not use Node.js or Electron APIs. Calendar styles adapt to narrow screens. See the architecture notes for implementation details.

Install for development

Copy this folder to the Obsidian plugin folder .obsidian/plugins/salah-hijri-times, run npm install and npm run build, then enable the plugin in Obsidian. Run npm run dev to rebuild while editing. Obsidian loads the generated main.js file.

License

This plugin is distributed under the MIT License. See LICENSE.

Source modules

  • main.ts: Obsidian lifecycle, commands, notifications, status bar, settings, and schedule modal.
  • src/calendar.ts: Hijri/Gregorian calendar, API loading, and selected-day prayer times.
  • src/calendar-data.ts: validated calendar records and fasting/Jummah markers.
  • src/hijri-date.ts: Hijri rollover policy and location-local clock/date helpers.
  • src/schedule-events.ts: Iqama and custom event construction.
  • src/location.ts and src/location-picker.ts: IP location fallback and place search.
  • src/coordinates.ts: shared WGS84 coordinate validation and IP-location payload parsing.
  • src/prayer-times.ts: prayer API loading, date adjustment, and midnight/Last Third calculation.
  • src/status-template.ts: status bar token rendering.
  • src/calculation-methods.ts: labeled AlAdhan method IDs.
  • src/time.ts: clock math and countdown.
  • src/time-wheel.ts: time-picker row geometry and alignment helpers.
  • src/types.ts: shared data types.
  • tests/plugin.test.ts: Node test-runner coverage for platform-independent business logic.
  • docs/architecture.md: lifecycle, data flow, cross-platform choices, and release notes.
HealthExcellent
ReviewPassed
About
Display the next prayer, Iqama, or custom event with a live status-bar countdown and quick actions to update Iqama, set Hijri offset, or show today's times. Open detailed schedules and Hijri/Gregorian calendars to view prayer and Iqama times, Islamic midnight and Last Third, fasting and Jummah highlights, and configure reminders and location-based calculations.
CalendarDatesStatus bar
Details
Current version
1.0.8
Last updated
3 weeks ago
Created
3 weeks ago
Updates
5 releases
Downloads
54
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
AfzGitAfzGitafzgit
www.github.com/afzgit
GitHubafzgit
  1. Community
  2. Plugins
  3. Calendar
  4. Salah and Hijri Times

Related plugins

Day Planner

Turn tasks from daily notes, the Tasks plugin, and calendars into time blocks on an editable timeline, with built-in time tracker.

Full Calendar Remastered

Complete Calendar HUB experience. Work with all your calendars in one place. Analyze your time and take action!

Journals

Manage your journals.

Itinerary

Make planning your trip or event easier by rendering a calendar from event information found in your notes.

Day Planner OG

Day planning from a simple task list in a Markdown note (bare bones, preserves the features and behavior of the original plugin).

Periodic Notes

Manage your daily, weekly, and monthly notes.

Tasks Calendar Wrapper

Simple wrapper for Tasks Calendar and Tasks Timeline.

Calendarium

Craft mind-bending fantasy and sci-fi calendars.

Yearly Glance

Year at a glance - overview of annual events with customizable management options.

Journal Review

Review your daily notes on their anniversaries, like "what happened today last year".