r/tasker • • 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?

  1. Calculates daily prayer times using your current location (GPS) via the Aladhan API.
  2. Automatically calculates Iqama times after each prayer (fully customizable).
  3. Notifies you before every prayer at multiple intervals (from 1 minute up to 45 minutes).
  4. Speaks the announcement in Arabic using Google TTS (e.g. “15 minutes remaining until Asr prayer”).
  5. Temporarily pauses media during the announcement and resumes it afterward.
  6. Displays a widget showing:

    • Current time + Gregorian & Hijri dates
    • All prayer times
    • Next prayer and remaining time
    • Qibla direction
    • Weather and location
  7. Works offline using the last saved prayer times when there is no internet.

How it works

  • The core task GetAllPrayTimes fetches 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: +35 minutes
    • Dhuhr: +20 minutes
    • Asr: +20 minutes
    • Maghrib: +5 minutes
    • Isha: +25 minutes
  • Duha: 15 minutes 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 = Hanafi

Calculation Methods (METHOD):

NumberMethod
1University of Islamic Sciences, Karachi
2Islamic Society of North America (ISNA)
3Muslim World League
4Umm Al-Qura, Makkah
5Egyptian General Authority of Survey (default)
7Institute of Geophysics, University of Tehran
8Gulf Region
9Kuwait
10Qatar
11Majlis Ugama Islam Singapura
12Union Organization islamique de France
13Diyanet İşleri Başkanlığı, Turkey
14Spiritual Administration of Muslims of Russia
15Moonsighting Committee Worldwide
16Dubai (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

11 comments sorted by

1

u/zhSHADOW Tasker Fan <3 5d ago

cant install!

1

u/MohamedAli188 5d ago

install beta

1

u/zhSHADOW Tasker Fan <3 5d ago

im already a beta tester. and i've already a similar project to track prayer times. i just wanted to see the widget from you project. can you share some screenshot in the post or here?

1

u/MohamedAli188 5d ago

2

u/zhSHADOW Tasker Fan <3 5d ago

thanks, here's mine. the top one is a 2x1 widget in the homepage and the black bottom one is an html pop-up opened up by clicking the homepage widget.

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/MohamedAli188 3d ago

I will try and feed you back very Soon ISA

1

u/maanz79 3d ago

I just updated to the newest version of tasker.(v6.7.9 direct version) and the problem persist. I contacted the tasker developer Joao about the error and he said the this profile has a problem. You might want to check the profile, brother.

2

u/mosaad_gaber 5d ago

thank you brother God bless you بارك الله فيك