PHP API for JAKIM's e-solat

852 views
Skip to first unread message

Hasanuddin Abu Bakar

unread,
Jan 3, 2010, 10:08:33 AM1/3/10
to osdcm...@googlegroups.com
Anyone got contact with e-solat developers at http://www.e-solat.gov.my/MainWS.php ?
I like to ask them for PHP API, if any. I can get it done with php-curl but it's better to have an official API for it. I tried to email them but don't get any reply, yet.




Hasanuddin Abu Bakar
-------------------------------
Ubuntu embedded developer/tester
https://wiki.ubuntu.com/bizkut

Get FireGPG for your Firefox! http://getfiregpg.org

PGP Public Key http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0xC5A1B11965D43C5C

linuxmalaysia

unread,
Jan 4, 2010, 10:02:02 AM1/4/10
to OSDC.my Mailing List
Assalamualaikum,

The data maybe load to database like MySQL, prepare earlier by manual
calculation. This isonly my assumption.

You may love this article.

http://www.directionsmag.com/article.php?article_id=2956

Using Google MAPS Api or any map api to calculate prayer time. You may
not using it, but formula for calculation is discuss in the article.

4. Prayer times equations are calculated based on Astronomical
Algorithms by Jean Meeus.
For example, to calculate the Fajr prayer time, we use the following
equation:
TF = ACOS ((SIN(-18)-SIN(ASIN(SIN(23.439-0.0000004*D)*SIN(L +1.915*SIN
(M)+0.02*SIN(2*M)))*SIN(Lat))/(COS(ASIN(SIN(23.439-0.0000004*D)
*SIN(L+1.915*SIN(M)+0.02*SIN(2*M)))*COS(Lat)))
Where,
D = ((367*Y)-(INT((7/4)*(Y+INT((M+9)/12))))+INT(275*(M/9))+d-730531.5)
M = 357.528+0.9856003*D


On 3 Jan, 23:08, Hasanuddin Abu Bakar <bizkut...@gmail.com> wrote:
> Anyone got contact with e-solat developers athttp://www.e-solat.gov.my/MainWS.php?
> I like to ask them for PHP API, if any. I can get it done with php-curl but
> it's better to have an official API for it. I tried to email them but don't
> get any reply, yet.
>
> Hasanuddin Abu Bakar
> -------------------------------

> Ubuntu embedded developer/testerhttps://wiki.ubuntu.com/bizkut


>
> Get FireGPG for your Firefox!http://getfiregpg.org
>

> PGP Public Keyhttp://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0xC5A1B119...

Hasanuddin Abu Bakar

unread,
Jan 4, 2010, 10:15:12 AM1/4/10
to osdcm...@googlegroups.com
Waalaikumussalam

Saya dah cuba tapi ada beberapa perbezaan
umumnya ada 5 cara:

1)Muslim World League
2)Egyptian General Authority of Survey (Malaysia guna yang ni)
3)University Of Islamic Sciences, Karachi
4)Umm Al-Qura
5)ISNA

dan untuk pengiraan waktu asar
1)standard method
2) mazhab hanafi method

dan saya tak pasti JAKIM pakai yang mana. Sebab tu saya minta orang yang tahu/berhubung dengan JAKIM untuk mengesahkan algorithm yang tepat, dan jika pakai database, maka terpaksalah JAKIM sediakan API atau saya tarik pakai curl. API ni boleh dijadikan sebagai module drupal dan joomla.



Hasanuddin Abu Bakar
-------------------------------
Ubuntu embedded developer/tester
https://wiki.ubuntu.com/bizkut

> --
> Join Open Source Developers Club Malaysia http://www.osdc.my/
>
> Facebook Fan page
>
> http://www.facebook.com/group.php?gid=98685301577
>
> http://www.facebook.com/OSDC.my
>
> You received this message because you are subscribed to the Google
>
> Groups "OSDC.my Mailing List" group.
> To post to this group, send email to osdcm...@googlegroups.com
> To unsubscribe from this group, send email to
> osdcmy-list...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/osdcmy-list?hl=en

E A Faisal

unread,
Jan 4, 2010, 9:49:40 PM1/4/10
to osdcm...@googlegroups.com
As far as I know, JAKIM is using a proper method to calculate. Based from a few articles by "ahlul falak", both within the country and abroad, the "ready-made" algorithm spread across the Internet is not "accurate" enough. There's another variable must be taken into consideration and included in the algorithm and these variable comes from annual astronomical almanac (these figures varies from month to month and are deduced by both observation and calculation as far as I know).

IMHO, it's still best to use JAKIM's takwim (or from jabatan agama) since they have their own falak unit.

Harisfazillah Jamel

unread,
Jan 4, 2010, 9:51:32 PM1/4/10
to osdcm...@googlegroups.com
Yes. I do agree. They may not have the API. We may request sharing of
data to be used. Or we help them to build one.
Reply all
Reply to author
Forward
0 new messages