Forum: Ruby Ruby script to calculate Muslim prayer times

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F745d7fbe0dbe947aa1082aabb2b6a4f?d=identicon&s=25 Redd Vinylene (reddvinylene)
on 2009-05-14 10:42
(Received via mailing list)
Hi,

does anybody know of a Ruby script to calculate Muslim prayer times?

Here's one that calculates Jewish prayer times:

http://pastie.org/477760
9dec3df8319c613f6f4f14a27da0fdb4?d=identicon&s=25 Kyle Schmitt (Guest)
on 2009-05-14 15:10
(Received via mailing list)
Sorry, because I really don't know, but why wouldn't it be at the same
time every day?

--Kyle
F745d7fbe0dbe947aa1082aabb2b6a4f?d=identicon&s=25 Redd Vinylene (reddvinylene)
on 2009-05-14 15:19
(Received via mailing list)
On Thu, May 14, 2009 at 3:10 PM, Kyle Schmitt
<kyleaschmitt@gmail.com>wrote:

> Sorry, because I really don't know, but why wouldn't it be at the same
> time every day?
>
> --Kyle
>
>
I think it depends on the position of the moon and stuff, kinda like the
Jewish one uses the position of the sun.
B3881a28fe402dd2d1de44717486cae8?d=identicon&s=25 Michael Kohl (Guest)
on 2009-05-14 15:21
(Received via mailing list)
On Thu, May 14, 2009 at 3:10 PM, Kyle Schmitt <kyleaschmitt@gmail.com>
wrote:
> Sorry, because I really don't know, but why wouldn't it be at the same
> time every day?

Because they depend on sunrise and sunset which are not at the same
time every day.

@Redd: Maybe look at this:
http://forums.mpadc.com/showthread.php/prayer-time...

There's a PHP script in this thread that scraps the times from some
website, this is probably really easy to copy with Ruby and Hpricot.
9dec3df8319c613f6f4f14a27da0fdb4?d=identicon&s=25 Kyle Schmitt (Guest)
on 2009-05-14 15:43
(Received via mailing list)
Local sunrise & sunset, or at a specific place (Mecca I'd assume)?

I think there are some astronomy & nasa pages that give some basic
formulas for that...humm.
9dec3df8319c613f6f4f14a27da0fdb4?d=identicon&s=25 Kyle Schmitt (Guest)
on 2009-05-14 15:48
(Received via mailing list)
This FAA site has an online calculator (you could always read through
the javascript):
http://akweathercams.faa.gov/srsscalc.php

And here's  a site with the formulas (at a glance I'd say grab a cup
of coffee & a quite corner this weekend if you really want to
understand it) :
http://herbert.gandraxa.com/herbert/lod.asp
F745d7fbe0dbe947aa1082aabb2b6a4f?d=identicon&s=25 Redd Vinylene (reddvinylene)
on 2009-05-14 23:24
(Received via mailing list)
On Thu, May 14, 2009 at 3:16 PM, Redd Vinylene
<reddvinylene@gmail.com>wrote:

>
>
> --
> http://www.home.no/reddvinylene
>

Sorry for the mixup. The moon is used to calculate fasting times I
think?
This topic is locked and can not be replied to.