Djihed Afifi

Minbar prayer calculation algorithms

4th January 2008 - 16687 Reads

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.

15 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..

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>