Ramadán
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra los horarios de oración del Sehar (Fajr) e Iftar (Maghrib) junto con una cuenta regresiva hasta el próximo evento durante el Ramadán. Utiliza la API gratuita Aladhan Prayer Times API. El segmento se oculta automáticamente fuera del Ramadán (configurable mediante hide_outside_ramadan).
Configuración de ejemplo
- json
- yaml
- toml
{
"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
}
}
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
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
Opciones
| Name | Type | Default | Description |
|---|---|---|---|
latitude | float64 | 0 | Latitude for prayer time calculation (use with longitude) |
longitude | float64 | 0 | Longitude for prayer time calculation (use with latitude) |
city | string | "" | City name for location lookup — takes precedence over latitude/longitude |
country | string | "" | Country name or ISO 3166 alpha-2 code — required when using city |
method | int | 3 | Prayer calculation method (0–23, 99). See Aladhan methods for details |
school | int | 0 | Madhab school: 0 = Shafi (standard), 1 = Hanafi |
hide_outside_ramadan | bool | true | Hide the segment when not in Ramadan |
first_roza_date | string | "" | Override first day of Ramadan as YYYY-MM-DD for local moon sighting |
http_timeout | int | 20 | HTTP request timeout in milliseconds |
información
Debes configurar ciudad + país o latitud + longitud. Si proporcionas ambos, city + country tiene prioridad.
Métodos de cálculo de oraciones
Usa el método asociado a la autoridad emisora más cercana a tu ubicación. El mapeo completo ID→autoridad es:
| ID | Autoridad |
|---|---|
| 0 | Shia Ithna-Ashari, Leva Institute, Qum |
| 1 | University of Islamic Sciences, Karachi |
| 2 | Islamic Society of North America (ISNA) |
| 3 | Muslim World League (predeterminado) |
| 4 | Umm Al-Qura University, Makkah |
| 5 | Egyptian General Authority of Survey |
| 7 | Institute of Geophysics, University of Tehran |
| 8 | Gulf Region |
| 9 | Kuwait |
| 10 | Qatar |
| 11 | Majlis Ugama Islam Singapura, Singapore |
| 12 | Union Organisation Islamique de France |
| 13 | Diyanet İşleri Başkanlığı, Turkey (experimental) |
| 14 | Spiritual Administration of Muslims of Russia |
| 15 | Moonsighting Committee Worldwide |
| 16 | Dubai (experimental) |
| 17 | Jabatan Kemajuan Islam Malaysia (JAKIM) |
| 18 | Tunisia |
| 19 | Algeria |
| 20 | Kementerian Agama Republik Indonesia |
| 21 | Morocco |
| 22 | Comunidade Islâmica de Lisboa, Portugal |
| 23 | Ministry of Awqaf, Islamic Affairs and Holy Places, Jordan |
| 99 | Personalizado (usa methodSettings mediante la API) |
Nota: El ID 6 no está asignado.
Plantilla (info)
Plantilla predeterminada
🌙 Roza {{.RozaNumber}} · {{.NextEvent}} in {{.TimeRemaining}}
Propiedades
| Name | Type | Description |
|---|---|---|
.Fajr | string | Sehar (Fajr) time in HH:MM format |
.Iftar | string | Iftar (Maghrib) time in HH:MM format |
.Imsak | string | Imsak time in HH:MM format (~10 min before Fajr) |
.RozaNumber | int | Day number within Ramadan (1–30) |
.NextEvent | string | Name of the next event: Sehar or Iftar |
.TimeRemaining | string | Countdown to the next event, e.g. 3h 42m |
.Fasting | bool | true when currently between Fajr and Maghrib (fasting window) |