r/tasker • u/MohamedAli188 • 5d ago
How To [Project Share] Moslem Pray Project – Complete Prayer Times System
Moslem Pray Project – Complete Prayer Times System
A comprehensive Tasker project for managing prayer times, voice announcements, widgets, and Qibla direction.
What does this project do?
- Calculates daily prayer times using your current location (GPS) via the Aladhan API.
- Automatically calculates Iqama times after each prayer (fully customizable).
- Notifies you before every prayer at multiple intervals (from 1 minute up to 45 minutes).
- Speaks the announcement in Arabic using Google TTS (e.g. “15 minutes remaining until Asr prayer”).
- Temporarily pauses media during the announcement and resumes it afterward.
Displays a widget showing:
- Current time + Gregorian & Hijri dates
- All prayer times
- Next prayer and remaining time
- Qibla direction
- Weather and location
- Works offline using the last saved prayer times when there is no internet.
How it works
- The core task
GetAllPrayTimesfetches the times and calculates all variables. - Dozens of Profiles are automatically triggered at the calculated times (before prayer, at prayer time, and at Iqama).
- When a notification is due:
media is paused→announcement is spoken→media is resumed. - The widget updates periodically to show the current status.
Default Settings (Egypt)
- Calculation method: Egyptian General Authority of Survey (Method
5) - School: Shafi (School
0) Default Iqama delays:
- Fajr:
+35minutes - Dhuhr:
+20minutes - Asr:
+20minutes - Maghrib:
+5minutes - Isha:
+25minutes
- Fajr:
- Duha:
15minutes after Sunrise
What you need to change for your country
Open the task GetAllPrayTimes and edit the following part in the Java code:
int METHOD = 5; // Calculation method (see table below)
int SCHOOL = 0; // 0 = Shafi / Maliki / Hanbali | 1 = HanafiCalculation Methods (METHOD):
| Number | Method |
|---|---|
| 1 | University of Islamic Sciences, Karachi |
| 2 | Islamic Society of North America (ISNA) |
| 3 | Muslim World League |
| 4 | Umm Al-Qura, Makkah |
| 5 | Egyptian General Authority of Survey (default) |
| 7 | Institute of Geophysics, University of Tehran |
| 8 | Gulf Region |
| 9 | Kuwait |
| 10 | Qatar |
| 11 | Majlis Ugama Islam Singapura |
| 12 | Union Organization islamique de France |
| 13 | Diyanet İşleri Başkanlığı, Turkey |
| 14 | Spiritual Administration of Muslims of Russia |
| 15 | Moonsighting Committee Worldwide |
| 16 | Dubai (experimental) |
Iqama times (depends on your mosque, not your country):
int IQ_FAJR = 35;
int IQ_DHUHR = 20;
int IQ_ASR = 20;
int IQ_MAGHRIB = 5;
int IQ_ISHA = 25;
int DUHA_AFTER_SUNRISE = 15;Important notes:
Requirements
- Tasker (preferably a recent version)
- Location permission
- Google TTS (for Arabic speech)
- Internet connection the first time (to fetch prayer times). After that it works offline.
The project is ready to use after import. Just change METHOD, SCHOOL, and the Iqama values according to your country and mosque.
7
Upvotes
1
u/zhSHADOW Tasker Fan <3 5d ago
cant install!
1
u/maanz79 3d ago edited 3d ago
Salam brother. Me too got this error import. I'm using tasker purchase direct version, not beta. Is there anyway you could upload a non-beta of this project somewhere? Thanks..
2
u/mosaad_gaber 5d ago
thank you brother God bless you بارك الله فيك
2
u/WhirlWolf 4d ago
Very similar to mine: http://taskernet.com/shares/?user=AS35m8m8L9YzBV3qbzaAAqHiSYXYBbD3QfZ7hr0hRK4ojOFTCrjWh2CScbjMw4NaudRi1zKKzq85&id=Project%3AAdhan+Prayer+Times