Ramadan
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche les heures de prière du Sehar (Fajr) et de l'Iftar (Maghrib) ainsi qu'un compte à rebours jusqu'au prochain événement pendant le Ramadan. Fonctionne grâce à l'API gratuite Aladhan Prayer Times API. Le segment se masque automatiquement en dehors du Ramadan (configurable via hide_outside_ramadan).
Exemple de configuration
- 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
Options
| 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 |
info
Vous devez configurer soit city + country soit latitude + longitude. Si les deux sont fournis, city + country prend le pas.
Méthodes de calcul des prières
Utilisez la méthode associée à l'autorité émettrice la plus proche de votre lieu de résidence. Le mappage complet ID→autorité est :
| ID | Autorité |
|---|---|
| 0 | Shia Ithna-Ashari, Leva Institute, Qum |
| 1 | University of Islamic Sciences, Karachi |
| 2 | Islamic Society of North America (ISNA) |
| 3 | Muslim World League (par défaut) |
| 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ığı, Turquie (expérimental) |
| 14 | Spiritual Administration of Muslims of Russia |
| 15 | Moonsighting Committee Worldwide |
| 16 | Dubai (expérimental) |
| 17 | Jabatan Kemajuan Islam Malaysia (JAKIM) |
| 18 | Tunisie |
| 19 | Algérie |
| 20 | Kementerian Agama Republik Indonesia |
| 21 | Maroc |
| 22 | Comunidade Islâmica de Lisboa, Portugal |
| 23 | Ministry of Awqaf, Islamic Affairs and Holy Places, Jordan |
| 99 | Personnalisée (utilisez methodSettings via l'API) |
Note : l'ID 6 n'est pas attribué.
Modèle (info)
modèle par défaut
🌙 Roza {{.RozaNumber}} · {{.NextEvent}} in {{.TimeRemaining}}
Propriétés
| 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) |