Praying Time / Athan

Hello Guys

I want to add prayer time (Athan) to my vera which on prayer time will excute an mp3 sound which is the Athan
The prayer time changes every day that’s why we gotta use API

How am I able to do so?

do you using SONOS player ?

Hi therealabdo,

You haven’t said what is providing the
API, but if it’s something like praytime.info, there is an XML feed that you could use. You would need to write a plugin which fetches the prayer times from that XML feed (it’s a whole month of data), finds today’s row, and extracts the times from it. Perhaps the closest existing plugin that you could use for inspiration is the Weather Underground plugin.

Having schedules that vary each day is new territory. The plugin could use luup.call_delay() to sleep until the next prayer time. Playing an MP3 is one way that the plugin could alert you. Another way is to send you a notification through Prowl to your phone. (But if you are carrying your phone anyway then it probably has an app that will do this better.) if you want to be super-generic just make the plugin generate an event trigger, so you can attach whatever scenes you want to it.

Here is what I have done

I have added the Praying times to my Google Calender and then downloaded the Google calendar plug in
So when the time the google calender is triggered and a scene is activated
How about that?
The only thing that i have to update my calendar every year.

Now how can I play the mp3 file :frowning: ?

One way is to play your sound file with VLC Mediaplayer on an appropriately sited PC. See: http://forum.micasaverde.com/index.php/topic,13619.msg105826.html#msg105826

This is the no-cost option. :smiley:

Or you could use VeraAlerts. I have it playing .mp3’s in my house.

If i have a sonos player how can i use it to play the prayer?

Another thing!!my plan didnt work well :frowning: as when i take the calender to my outlook calender the times changes :frowning:
the 5:00 AM becomes 8:00 AM :frowning:
is there any other way?
There is a prayer calender for iGoogle can be added easily can this benefit me?

[quote=“therealabdo, post:7, topic:175048”]If i have a sonos player how can i use it to play the prayer?

Another thing!!my plan didnt work well :frowning: as when i take the calender to my outlook calender the times changes :frowning:
the 5:00 AM becomes 8:00 AM :frowning:
is there any other way?
There is a prayer calender for iGoogle can be added easily can this benefit me?[/quote]

About the times changing, there ought to be some time zone settings in your calendars that are not set consistently. If so, using the calendar plugin would be a simpler solution than having to write a plugin (which might also have to concern itself with timezones, but should require less ongoing attention than having to update the calendar periodically).

watou