Skip to main content

Ramadan

What​

Displays Sehar (Fajr) and Iftar (Maghrib) prayer times along with a countdown to the next event during Ramadan. Powered by the free Aladhan Prayer Times API. The segment auto-hides when it is not Ramadan (configurable via hide_outside_ramadan).

Sample Configuration​

{
"type": "ramadan",
"style": "diamond",
"foreground": "#ffffff",
"background": "#1a472a",
"leading_diamond": "ξ‚Ά",
"trailing_diamond": "ξ‚°",
"template": "U0001F319 Roza {{.RozaNumber}} Β· {{.NextEvent}} in {{.TimeRemaining}}",
"options": {
"city": "Lahore",
"country": "PK",
"method": 1,
"school": 1
}
}

Options​

NameTypeDefaultDescription
latitudefloat640Latitude for prayer time calculation (use with longitude)
longitudefloat640Longitude for prayer time calculation (use with latitude)
citystring""City name for location lookup β€” takes precedence over latitude/longitude
countrystring""Country name or ISO 3166 alpha-2 code β€” required when using city
methodint3Prayer calculation method (0–23, 99). See Aladhan methods for details
schoolint0Madhab school: 0 = Shafi (standard), 1 = Hanafi
hide_outside_ramadanbooltrueHide the segment when not in Ramadan
first_roza_datestring""Override first day of Ramadan as YYYY-MM-DD for local moon sighting
http_timeoutint20HTTP request timeout in milliseconds
info

Either city + country or latitude + longitude must be configured. If both are provided, city + country takes precedence.

Prayer calculation methods

Use the method associated with the issuing authority closest to your location. The full ID→authority mapping is:

IDAuthority
0Shia Ithna-Ashari, Leva Institute, Qum
1University of Islamic Sciences, Karachi
2Islamic Society of North America (ISNA)
3Muslim World League (default)
4Umm Al-Qura University, Makkah
5Egyptian General Authority of Survey
7Institute of Geophysics, University of Tehran
8Gulf Region
9Kuwait
10Qatar
11Majlis Ugama Islam Singapura, Singapore
12Union Organisation Islamique de France
13Diyanet İşleri Başkanlığı, Turkey (experimental)
14Spiritual Administration of Muslims of Russia
15Moonsighting Committee Worldwide
16Dubai (experimental)
17Jabatan Kemajuan Islam Malaysia (JAKIM)
18Tunisia
19Algeria
20Kementerian Agama Republik Indonesia
21Morocco
22Comunidade IslΓ’mica de Lisboa, Portugal
23Ministry of Awqaf, Islamic Affairs and Holy Places, Jordan
99Custom (use methodSettings via the API)

Note: ID 6 is not assigned.

Template (info)​

default template
 πŸŒ™ Roza {{.RozaNumber}} Β· {{.NextEvent}} in {{.TimeRemaining}}

Properties​

NameTypeDescription
.FajrstringSehar (Fajr) time in HH:MM format
.IftarstringIftar (Maghrib) time in HH:MM format
.ImsakstringImsak time in HH:MM format (~10 min before Fajr)
.RozaNumberintDay number within Ramadan (1–30)
.NextEventstringName of the next event: Sehar or Iftar
.TimeRemainingstringCountdown to the next event, e.g. 3h 42m
.Fastingbooltrue when currently between Fajr and Maghrib (fasting window)