khanfahad
Posts: 2
Joined: Tue Jul 09, 2013 10:17 pm

Prayer Time Clock

Tue Jul 09, 2013 10:21 pm

I had a question. Here's what I want to do:

Have a RPi connected to a speaker. As soon as it is prayer time, it would play an audio file (call to prayer). The prayer timings are same every similar day of the year (7/9/2001 vs 7/9/2013). So you'd have to input them only once.

Is this possible? Has anyone seen something similar done before?

thanks

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4044
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: Prayer Time Clock

Tue Jul 09, 2013 10:59 pm

i'm going to assume that you mean the time for prayer for Muslims (sorry if i'm incorrect but as a lapsed agnostic Druid with CofE and Methodist tendencies i'm not really up on what's what prayerwise and times) so would this do?

http://en.wikipedia.org/wiki/Minbar_(software)

khanfahad
Posts: 2
Joined: Tue Jul 09, 2013 10:17 pm

Re: Prayer Time Clock

Tue Jul 09, 2013 11:02 pm

yeah that looks good. Would I be able to install that on the Pi?

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4044
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: Prayer Time Clock

Tue Jul 09, 2013 11:34 pm

it's in the raspbian repos so i guess it will rin on the raspi although how well it runs i don't know

Code: Select all

[email protected] ~ $ sudo apt-cache search minbar
minbar - GNOME Islamic prayer times application
minbar-data - GNOME Islamic prayer times application - data package
[email protected] ~ $ 

shaz-london
Posts: 9
Joined: Wed Jul 24, 2013 12:24 pm

Re: Prayer Time Clock

Wed Jul 24, 2013 12:26 pm

Hi,

I've done this.

All instructions are on the following blog post:

http://randomconsultant.blogspot.co.uk/ ... rayer.html

Let me know if you need any help.

nexusrex
Posts: 234
Joined: Thu Jul 04, 2013 2:25 pm

Re: Prayer Time Clock

Tue Jul 30, 2013 10:51 pm

can i run this program when i use emulationstation
i mean can it make sound when i use xbmc or emulationstation on raspbian image
and how to change time to Egypt time

shaz-london
Posts: 9
Joined: Wed Jul 24, 2013 12:24 pm

Re: Prayer Time Clock

Mon Sep 30, 2013 9:10 am

@nexusrex you can change to egypt time by chaning the latitude and longitude variables in the python script.

See the first few lines here:

http://randomconsultant.blogspot.co.uk/ ... rayer.html

This should work even if you have xmbc running, but give it a go.

aquibrash87
Posts: 2
Joined: Sun May 06, 2018 10:01 am

Re: Prayer Time Clock

Sun May 06, 2018 10:08 am

Here is a new project for prayer timings project using Qt and C++ with detailed installation steps and documentation


https://github.com/aquibrash87/Takbeer

bamsi
Posts: 1
Joined: Sun May 05, 2019 10:31 pm

Re: Prayer Time Clock

Sun May 05, 2019 10:40 pm

Its long time to the last post but would happy to get some help from you.

For Ramadan I bought some Airplay Speakers and installed LMS (Logitech Media Server) and all sounds great if synced. Now trying to run a Adhan Script to play the Adhans from a mp3 file.

I found on github a script which runs with python and omxplayer which cant play on Airplay speakers and not on LMS.
https://github.com/achaudhry/adhan

The best would be to have an Adhan plugin for LMS but I am not a programmer to get out of it.

What would be your advice to do run an Adhan script over Airplay with synced speakers?

Thanks

Heater
Posts: 12089
Joined: Tue Jul 17, 2012 3:02 pm

Re: Prayer Time Clock

Mon May 06, 2019 5:19 pm

I thought religious topics were off limits for this forum?

User avatar
scruss
Posts: 2223
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Prayer Time Clock

Mon May 06, 2019 5:44 pm

Why would this particular technical question about a project to assist with observance be off limits?

If the question had been phrased “I wish to play a certain set of samples at certain times each day based on my location”, would it have been a problem? There have been questions about using a Raspberry Pi for church sermons and noticeboards before without comment or complaint.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
DougieLawson
Posts: 35117
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Prayer Time Clock

Mon May 06, 2019 5:47 pm

I think the line is drawn when folks start quoting parts of their religious texts.

Although this thread trips the "why bother necroing old junk" trigger.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a hippy & doctor free zone.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22045
Joined: Sat Jul 30, 2011 7:41 pm

Re: Prayer Time Clock

Mon May 06, 2019 9:19 pm

Heater wrote:
Mon May 06, 2019 5:19 pm
I thought religious topics were off limits for this forum?
This is technical, not religious.

And the post is seemingly relevent, so I have no problems with the necro.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

epoch1970
Posts: 2760
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Prayer Time Clock

Tue May 07, 2019 10:46 am

bamsi wrote:
Sun May 05, 2019 10:40 pm
The best would be to have an Adhan plugin for LMS but I am not a programmer to get out of it.

What would be your advice to do run an Adhan script over Airplay with synced speakers?
You're right, a plugin would be the best if you can't manage with built-in alarms and playlists.

I don't know much about omxplayer, but if it can output to a unix pipe (I guess it should) then you could use LMS's wavein plugin, authored by "bpa".
- Install the wave-in plugin on LMS, run omxplayer on LMS outputting to the pipe that the plugin reads from,
- Group your (airplay) players, select the group, from the GUI select and play the wavein:// source and you could get what comes out of omxplayer on the speakers.

In theory that should work. You should be able to find better advice and possibly bpa himself here.

(I guess I don't have to remind you the Pi only has a vague notion of time and date until it has reached an NTP server to sync its system clock.)
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
rpdom
Posts: 14069
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Prayer Time Clock

Tue May 07, 2019 11:50 am

jamesh wrote:
Mon May 06, 2019 9:19 pm
Heater wrote:
Mon May 06, 2019 5:19 pm
I thought religious topics were off limits for this forum?
This is technical, not religious.

And the post is seemingly relevent, so I have no problems with the necro.
Religious necro might have been even more relevant a few weeks ago.
Signature is on holiday.

User avatar
omegaman477
Posts: 140
Joined: Tue Feb 28, 2017 1:13 pm
Location: Sydney, Australia

Re: Prayer Time Clock

Fri May 17, 2019 7:42 am

khanfahad wrote:
Tue Jul 09, 2013 10:21 pm
I had a question. Here's what I want to do:

Have a RPi connected to a speaker. As soon as it is prayer time, it would play an audio file (call to prayer). The prayer timings are same every similar day of the year (7/9/2001 vs 7/9/2013). So you'd have to input them only once.

Is this possible? Has anyone seen something similar done before?

thanks
Consider attaching a GPS module to the RPI, as the GPS module also provides super accurate time reference in GMT, plus location so you can determine the local timezone. This would make its time & time zone synch automatic (as do modern smartphones)
..the only thing worse than a stupid question is a question not asked.

Return to “Other projects”