Minbar prayer calculation algorithms

I have received many emails about Minbar’s prayer calculation method. First, one thing I would like to make sure everyone understands is that Minbar is not supposed to replace a real human Athan call. It is software, and it may have errors and bugs, so make really sure that you check your times with your local mosque and see if Minbar conforms with them. If they don’t, let me know.

Don’t forget to try to change the calculation method and see if the software produces correct times: you can change the calculation method in the second tab of the preferences dialog:
Minbar preferences prayer calculation method
So far, the countries with the most problems are the far east countries: Indonesia and Malaysia. I have received many emails from these two countries. I would like to let you know that I acknowledge this problem and I will work on solving it. I take correct prayer times very seriously and will do my utmost to resolve it.

Minbar uses libitl for its prayer calculation. I have not written libitl, so I am planning to do a code overhaul and look at the correctness and authenticity of the implementation. This may take time, so I apologise for this in advance. In the mean time, feel free to always send me an email when you notice a calculation error; include in your report:

  • Your city details: Altitude, Longitude, Latitude, name, country.
  • Your country’s time zone.
  • The times that Minbar gives you for your city.
  • The date.
  • Your country’s calculation method: if you know it.
  • Your country’s Madhab.

32 Responses to “Minbar prayer calculation algorithms”

  1. Xlylith Says:

    Removing these lines from file prayer.c (line 695) in libitl0 source code solve the problem for me:

    if (part1

  2. Djihed Says:

    The code that Xlylith wanted to put is this (he sent me an email)

    /*mm    if (part1 < 1 || Lat < 0)
            part1 = mathhab - tan(DEG_TO_RAD(Lat) - dec);
     mm*/
    

    I’ll follow up.

  3. fauzan.sa Says:

    To where I have to report? Is there any bug reporting facility here? Or just type here?

    Ashr time problem :
    localtime: 15.15
    itl-time: 13.58

    Latitude: -7.8
    Longitude: 110.37
    City: Jogjakarta, Indonesia

  4. Farid Says:

    Assalamualaikum,

    I already installed Minbar 0.2 but still have bug.

    1. Find for our City [Jakarta] found indonesia in Australia&Ocean List not in Asia, we must correction Indonesia is Asia
    2. For Ashr Time is late,
    I use Prayer Time (plugn mozilla) : Asr Time = 15:27 with Muslim Worl League Method
    But I use Minbar : Asr Time = 14:18 with Muslim World Method –> this is wrong time

    Jakarta :
    Latitude = -6.12
    Logitude = 106.65
    Time = +7

    I mean this problem since minbar 0.1 version, How to fixed this bug ?

  5. Djihed Says:

    Farid:

    1. I will look this up with the creators of the list, which are GNOME applets developers.

    2. Yes, unfortunately, I have acknowledged this. Look up the subsequent posts in http://djihed.com/minbar

    Djihed

  6. Martin Says:

    Asalaamu alaikum,
    I have the problem that minbar seems to seize the sound channel. For example if I have realplayer working, then after an Athan, realplayer will no longer output sound.

    Anyone else have that problem? Or have a fix?

    WAS

  7. Tegap Says:

    Assalamu’alaikum WrWb.,
    Brother Martin, i have the same problems as well as you have.
    After an athan all the sounds will no longer heard.
    Brother Djihed, how was it….?
    Also i have the same problems with brother Farid (questions no.4), as i lived in Bogor, 60 km from Jakarta.

    Wass,

    Tegap

  8. NMC Says:

    SalaamAllakum,

    May Allah bless you for your efforts, brother.

    I’m still using Minbar 0.1 because 0.2 won’t install on Ubuntu Feisty for some reason. I’m fine with that because I’m using a cronjob to switch between the adthans. Everything was working fine, Alhamdilllah, until recently with the Daylight Savings Time. Minbar is still showing the old adthan times even though we’re now an hour ahead in the USA. I’m guessing this has something to do with libitl. Any thoughts on how I can fix it?

    Jazakhallahar and SalaamAllakum,
    NMC

  9. kozmonot Says:

    timings are wrong
    i am in edirne

    http://www.diyanet.gov.tr/turkish/vakithes_namazsonuc.asp

    this page shows goverments pray hours

    i am in edirne turkey

    http://www.islamicfinder.org/cityPrayerD.php?city=edirne&country=turkey&home=2008-4-6

    i checked coordinates forum that page

    and
    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=116867048083452509298.000001129af3561a40a4b&ll=41.63546,26.614552&spn=0.05273,0.103683&z=13

    this isthe google map adress

    how can i find coordinates for keeping programes hours same as goverment hours?

  10. safiyyah Says:

    I sent an e-mail but go no response, so I thought of leaving a comment here, the Minbar program works fine for the winter prayer times, however as of March - October when the clock changes to the summer clock, it still works 1 hour behind. I think that the program either needs to allow users to manipulate the time manually (which they can check for the correct time at masjids etc, this will eliminate a lot of the problems. ) Right now mine is working an hour ahead of the prayer times because it doesn’t recognise daylight savings and there is no facility for me to manually insert the prayer time.

  11. Djihed Says:

    Safiyyah, sorry for not getting back to your email as I am pretty swamped with a long baclklog of emails.

    Not recognising daylight savings is indeed a problem, but there is an easy fix by adjusting the clock under preferences. Just change the time zone by adding or subtracting 1 as needed.

    Which is indeed what you referred to as “manipulate the time manually”, it is possible in the current application. Have you checked under preferences?

  12. safiyyah Says:

    Thank you Djihed, that worked well for me!!! Am a happy bunny again.

  13. Hussain Says:

    Hi Djihed,

    Wondering if there is a way to play specific Athans only? I want Minbar to alert me for Fajr, Dhuhr and Maghrib. How can I do this?

    Thanks!

  14. Djihed Says:

    Salam Hussain,

    Hmm, that is not possible at the moment unfortunately. I think I should offer this in the next version. Thanks for your comment.

    Djihed

  15. Azeez P Says:

    Hi, assalamu alaikum…
    i understand minbar is not using the altitude information for calculation of prayer time.. one source of error may be this..

  16. Anonymous Says:

    lat: -6.16
    long: 106.48
    city: Jakarta
    the problem is when calculation Ashr time… my reference is from this page: http://www.pkpu.or.id/adzan.lite.php?lv=f05ed2f953&type=2&id=83&m=12&y=2008

  17. Anonymous Says:

    this is maybe algorithm for Jakarta, Indonesia:
    :: Fiqh Options
    Determination of Fajr : 20.0 deg. Sun’s depression
    Determination of Asr : Shadow ratio 1 (Shafi’i and others)
    Determination of Isha : 18.0 deg. Sun’s depression
    Determination of Imsyak : 1.5 deg. Sun’s depression to Fajr

    thanks

  18. Luqmán Says:

    Assalamu Alaykum

    In first place, sorry for my bad english :-D

    I want to give my sincere thanks to developers for so useful tool for GNU/linux users. Allah reward them. Ameen.

    I’m using Minbar from a few months. Now, the 0.2.1 included in Debian/Lenny, 64-bit version.

    As im reading in former posts, the calculation methods appears to be not reliables in near equator latitudes. Here, in tropic (im writing from Venezuela, and yes there we are many brothers and sisters ;-D), sun rises and goes down too quickly, despite the year’s month; just as should be in all the low latitude places around the world as Guyana, Suriname, Malasya, Indonesia, Singapore, etc…

    All calculing methods has problems in beginning of Al-fajr and at the end of Al-’Isha. This happens in all the solar year.

    The Sunrise (Shorooq), and the Sunset (prior to begin of Maghreb) works pretty good to me and the program follows the insignificant variation along the solar year. I chekced it with local weather data. Also the rest of prayer times appears to work good, all this prooved with all calculation methods included in Minbar.

    My Cordinates: 10,17 (North) Latitude; -67,93 (West) Longitude
    My City: (Valencia, Venezuela). Founded with that cordinates by program or library implied to do this. Works ok.

    For unfounded cities, the trick is to set up manually coordinates using some weather local service, or even Google Maps.

    Local Time: -4,5 GMT (Venezuela local time). setted up manually, we have not “Daylight saving”. I supose this must be a problem in other latitudes, to change hours two times at year… :-S

    The most “near” calculation method to my reality is the Islamic Asociation of North America alghorythm or method.

    It’s not 100% accurate in fajr and magreb as i said, but it work better than the rest, who gives really unreal times at this two moments.

    By this date, december 20, these are my praying times by mentioned setup and method:

    Fajr: 5:11

  19. Luqmán Says:

    Ops! truncated text… Continues:

    Fajr: 05:11

  20. Luqmán Says:

    some problems with xhtml… i repeat :-P

    Times of Salah at my local Masjid:

    Fajr 5:00-5:30 depending of solar year
    Zuhr 13:00
    ‘Asr 16:30
    Maghreb 18:00-18:30 the same issue
    ‘Isha 20:00

    Another matter i would like to comment, the muslim date in Minbar’s calendar doesn’t working good. The “new day” in minbar it just change with the system clock, at 0:00 hours.

    …Should be at the beginning of the Magreb or ‘Isha? (i dont remember, im a new muslim, he he)

    By the rest, one more time my greetings to developers. It’s a very good job, and the spanish translation works fine too. Still working on this program. Thanks for all and Salaam to everyone…!

  21. Khursheed Says:

    Asalam O Alaikum,

    Jazak Allah Khair for the software. We have been using this in our house for last month and everyone enjoys the athan through out the house. I need to if you can add a feature that will allow users to execute some script before athan and after athan. My need is the I have MPD server running in the house which my family uses to listen to lectures and nasheed and quran but i want to be able to mute those if athan is playing. If you can implement this that great.

    thanks
    K

  22. Skar Says:

    Is there a way to setup am/pm times instead of 24 hr military style time? If not this seems like a simple thing to add on.

  23. Aamina Says:

    ASAK,
    I have installed minbar but the prayer calculations seem to be wrong. It is showing city as Dallas which is correct but for some reason the calculations are one hour ahead of actual time. I recently upgraded to Ubuntu 8.10. What could be the problem?

  24. HAIRIE Says:

    salam. i’m hairie from malaysia. i’m doing research for final year project now in prayer time analysis. can u help me, in indonesia what are the official website that announced and display to the public for prayer time. in malaysia for example, public can access to jabatan kemajuan agama islam malaysia(malaysia islamic religion authority) gets the prayer time for whole city in malaysia

  25. Ahmed Says:

    Asalam Alaikum,
    I was not able to find a contact way to reach you for asking help from you about the algorithm that you used to get the Qibla direction.
    Can you please help me in this ?

  26. Arif Says:

    A’ssalaam Alaikum,

    first of all thank you for coming up with the program itself and making it available for us to use. God bless you son. I am from Maldives, tho currently accommodated here in Sri lanka. from where i am located the mosque (not near by) recites athan for prayers at random prayers, sometimes no fajr athan. its disappointing. specially during this ramadaan. i am happy to have this program though, the time given on the Minbar doesnt match the local time.
    here are my settings

    Calculation : Egyptian General Authority of Survey
    City Details : Custom Settings for Sri Lanka / Colombo
    Latitude : 6.66
    Longitude : 79.35
    City Name : Colombo (Custom Name for this city is not listed in it)
    Time Zone : 5.5

    The nearest Correction i got to local prayer time is by adjusting latitude and longitude ending in final result as follows

    Minbar Subh: 04:46
    Local Subh: 04:47

    Minbar Dhuhr: 12:12
    Local Dhuhr: 12:12

    Minbar Asr: 15:16
    Local Asr: 15:16

    Minbar Maghreb: 18:19
    Local Maghreb: 18:18

    Minbar Isha’a: 19:29
    Local Isha’a: 19:29

    These are the prayer times according to 1st of September 2009.

    hoping you could help me fix it.
    Insha allah, you will do good, be healthy and be safe always.

    tc.

    Salaam

  27. arif Says:

    A’ssalaam Alaikum once again dear brother,

    Sorry for my impatience. But please could you fix it? or tell me how to fix it. thank you. god bless you. insha Allah i wish you a happy eid.

    Salaam

  28. Aadrean Says:

    Assalamu’alaikum,
    I am from Padang (latitude -0.95,longitude 100.35) West Sumatra, Indonesia.
    There is a wrong calculation in Ashr.

    The problem will be appeared if you change latitude from 0 to -0.01, it will make a great different Ashr time.

    hoping you could fix it,
    Your work will be “amal jariyah”
    Good luck, and thank you very much.
    All the best,

    Aadrean

  29. boulboul Says:

    Salam

    Thank you brother for your help…I living in Algeria, and I found the prayer times were wrong:

    the details are as follows:

    (36.76 N, 3.05 E)
    the accurate times can be found at this website if this would help:

    http://www.islamicfinder.org/cityPrayerD.php?city=Algiers&country=algeria&month=&year=&start=0&home=&prayerService=&lang=&athan=&aversion=

    Baraka allah fik…Salam

  30. Adi Says:

    Assalamualaikum Djihed, following are correct information about my city: Jakarta (Indonesia), please update it to Minbar Prayer Times.

    * Your city details: Latitude: -6.17 Longitude: 106.86, name: Jakarta, country: Indonesia
    * Jakarta’s time zone: +7
    * Your country’s calculation method: if you know it: University Of Islamice Science, Shafii

    Jazakumullah for creating Minbar

  31. Dallas Says:

    Is this program ever going to be updated to add more features like pictures of Masjids around the world as part of the window that shows the prayer times and have the option for day light saving time?

  32. Djihed Says:

    Dallas - it will be updated, but not with pictures of Masjids :)

    I’d like to keep it simple and minimalistic. There are a few features already implemented. Just a question of finding an afternoon free to release it.

Leave a Reply