maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   ( Request): Ramadhan Application for N900 (https://talk.maemo.org/showthread.php?t=59947)

!!Nokia N900!! 2010-08-08 06:41

( Request): Ramadhan Application for N900
 
Hi,,,

Is there any applications for Ramadhan.?

Tnx

HtheB 2010-08-08 11:51

Re: ( Request): Ramadhan Application for N900
 
There is a prayer time app in the repos which is usefull

Though, I still want to have a desktop widget :(

usan14 2010-08-08 14:06

Re: ( Request): Ramadhan Application for N900
 
If any one can develop such an application in which there should be alam of azan at fast start(Fajar) and fast break(Magrib).

nokiaqueen 2010-08-08 14:07

Re: ( Request): Ramadhan Application for N900
 
is the prayer time app called "prayer time" lol

BluesLee 2010-08-08 17:56

Re: ( Request): Ramadhan Application for N900
 
1 Attachment(s)
Quote:

Originally Posted by usan14 (Post 779532)
If any one can develop such an application in which there should be alam of azan at fast start(Fajar) and fast break(Magrib).

hello,

the easiest way is to use a desktop command execution widget.
just download prayer times of your choice for one month as a
text file from the web and use simple linux commands like date
& cut for your purposes. you may also try the console version of
python pyprayertime in connection with cut etc. see screenshot.


Blues

El Amir 2010-08-08 18:12

Re: ( Request): Ramadhan Application for N900
 
Quote:

Originally Posted by BluesLee (Post 779682)
hello,

the easiest way is to use a desktop command execution widget.
just download prayer times of your choice for one month as a
text file from the web and use simple linux commands like date
& cut for your purposes. you may also try the console version of
python pyprayertime in connection with cut etc. see screenshot.


Blues

Could you share the script for these ones please?

BluesLee 2010-08-08 19:41

Re: ( Request): Ramadhan Application for N900
 
@El Amir: sure. say you have your prayer times in a tab
separated file called prayer_times.csv with the following
content as an example:


...
08.08.2010 4 02 5 32 13 19 17 23 20 54 22 14
09.08.2010 4 03 5 33 13 19 17 22 20 53 22 13
....

with highlighted tabs:
..
08.08.2010 ^I^I4 02 ^I5 32 ^I13 19 ^I17 23 ^I20 54 ^I22 14 $
09.08.2010 ^I^I4 03 ^I5 33 ^I13 19 ^I17 22 ^I20 53 ^I22 13 $
..


then you cut fadjr seen in the 3rd tab as follows:

#!/bin/sh
grep -i `date +%d.%m.%Y` prayer_times.csv | cut -f3,3 | sed -e "s/ /:/"

as mentioned above you can play with python and perl command
line scripts (google for them) which give you praying times for the
current date (you have to change the settings for location,
calculation method) and then you can cut the corresponding line
there.


Blues

!!Nokia N900!! 2010-08-13 09:48

Re: ( Request): Ramadhan Application for N900
 
Thnx dude & Ramadhan Kareem

mohannad 2010-08-14 10:46

Re: ( Request): Ramadhan Application for N900
 
Why use a text file when mPrayerTime can generate the times for you ;)

http://talk.maemo.org/showthread.php...194#post786194


All times are GMT. The time now is 23:09.

vBulletin® Version 3.8.8