maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] PrayerTime app for N900 (https://talk.maemo.org/showthread.php?t=48797)

darkjoker 2010-05-30 22:12

Re: [Announce] PrayerTime app for N900
 
hey nice work bro :P finaly getting islamic apps on n900. i have a quick question would it be possible to make hadith book apps so that they can be viewed with bookmarks and contents page simalr to the ones for iphone that would be great. anyways nice work keep it up

mohannad 2010-05-30 23:58

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by snowman (Post 686727)
i dont know if this sw is working as designed after PR 1.2...i installed the sw after i updated to pr1.2...but all i get is the settings screen..i cant input lat and long as the text boxes are way too thin to see anything in them..all other text boxes for other options are fine..also if i hit save or try to exit the settings box it just keeps on popping back up..like no way to shut this thing down...any ideas..not compatible with pr1.2?

Thank you for reporting this problem. I just checked my installed version and the options screen is all screwed after the update. I will get this fixed and uploaded asap insa'allah.

In the meantime, you can modify the mPrayerTime.conf file under "/home/user/.config/Team Mohannad" with the correct Lat and Long values.

mohannad 2010-05-31 00:06

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by darkjoker (Post 690695)
hey nice work bro :P finaly getting islamic apps on n900. i have a quick question would it be possible to make hadith book apps so that they can be viewed with bookmarks and contents page simalr to the ones for iphone that would be great. anyways nice work keep it up

Thanks! Umm I was hoping to develop a Quran app and a Hadith app for the N900 but i havent figured out how to have arabic text showing in my app on the phone. I gave up on that and decided to wait for pr1.2. Now that thats here, I think ill get back to trying.

snowman 2010-05-31 03:37

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mohannad (Post 690837)
Thank you for reporting this problem. I just checked my installed version and the options screen is all screwed after the update. I will get this fixed and uploaded asap insa'allah.

In the meantime, you can modify the mPrayerTime.conf file under "/home/user/.config/Team Mohannad" with the correct Lat and Long values.

thanks..but how do i edit that file..and even if i do that..wont the program still open up to the settings screen..which doesnt work/exit?

mohannad 2010-05-31 09:43

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by snowman (Post 691019)
thanks..but how do i edit that file..and even if i do that..wont the program still open up to the settings screen..which doesnt work/exit?

ok run the following commands in Xterm:

cd /home/user/.config/Team\ Mohannad
vi mPrayerTime.conf

if you get an error it means that the file is not there, otherwise continue

Press Shift+I
modify the values of latitude and longitude to the correct ones
Once done, press ESC on the screen then hold down Shift and press Z twice (Shift -> Z -> Z) to save changes.
Open mPrayerTime and the options screen shouldnt appear.

snowman 2010-05-31 14:30

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mohannad (Post 691367)
ok run the following commands in Xterm:

cd /home/user/.config/Team\ Mohannad
vi mPrayerTime.conf

if you get an error it means that the file is not there, otherwise continue

Press Shift+I
modify the values of latitude and longitude to the correct ones
Once done, press and hold Shift then press Z twice (Shift -> Z -> Z) to save changes.
Open mPrayerTime and the options screen shouldnt appear.

i got to the file..but Shift+Z+Z just inputs two capital Zs into the file..doesnt save...if i try Ctrl+Z than it exits the file..any ideas?
Also what does Shift+I do?

mohannad 2010-05-31 20:31

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by snowman (Post 691841)
i got to the file..but Shift+Z+Z just inputs two capital Zs into the file..doesnt save...if i try Ctrl+Z than it exits the file..any ideas?
Also what does Shift+I do?

Sorry i forgot to mention that you had to press ESC (on the screen) before pressing Shift Z Z.

Shift+I = insert (i think). If you try to edit the file before pressing shift + I, it wont let you.

Amroush 2010-06-01 15:41

Re: [Announce] PrayerTime app for N900
 
Is it possible to have the muslim prayer application as Widget that shows the five prayers time at the N900 Desktop.

Thanks in advance,

snowman 2010-06-01 19:32

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mohannad (Post 692443)
Sorry i forgot to mention that you had to press ESC (on the screen) before pressing Shift Z Z.

Shift+I = insert (i think). If you try to edit the file before pressing shift + I, it wont let you.

salams and thank you so much..got it to work..hopefully see new features soon like Adhan..maybe Qibla direction based on location..be able to pick up latitude and longitude from gps..
May God reward you for your excellent efforts

woof404 2010-06-01 20:00

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by snowman (Post 694481)
May God reward you for your excellent efforts

That's how I end my morning speech every day to my programmers, also.

DeaTHY 2010-06-02 18:07

Re: [Announce] PrayerTime app for N900
 
yeslamo Mohannad.

mohannad 2010-06-20 11:10

Re: [Announce] PrayerTime app for N900
 
Options screen issue fixed. mPrayerTime 0.2-12 uploaded to extras-dev (finally).

Im currently working on the auto-detection of location functionality. I hope that doesnt take me too long.

!!Nokia N900!! 2010-06-20 11:17

Re: [Announce] PrayerTime app for N900
 
waiting to be in Extras soooooooooooon. :)
All The Best

Amroush 2010-06-20 22:29

Re: [Announce] PrayerTime app for N900
 
Thank you Muhanned for that useful application. Moreover Ihave one question:
Is it possible to develop a widget that can display the five pray time at screen of the N900.

Thanks a lot for your efforts and Best Regards,
Ammar

mohannad 2010-06-21 00:44

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by Amroush (Post 723061)
Thank you Muhanned for that useful application. Moreover Ihave one question:
Is it possible to develop a widget that can display the five pray time at screen of the N900.

Thanks a lot for your efforts and Best Regards,
Ammar

Hi Ammar,

Yes that is my goal. But first I need to get the application to a decent state or I will end up with a big mess that will give me headaches.

This is the order i am planning on getting things done:
1- Get the 'Auto Configure' button working in the options screen
2- Add other languages
3- Add some sort of notification for each athan time
4- Add desktop widget
5- Add more views to the main app (today, tomorrow, week view, etc)

Does that sound like a good plan? :)

mssusa 2010-06-21 00:52

Re: [Announce] PrayerTime app for N900
 
Salam Mohannad,

Thanks for your great work. I was just planning to do this myself and was reading on developing for Maemo, but I found your app by chance!

Good work and good luck.

BTW, I hope you do not make GPS detection automatic. I prefer that the user must manually select location auto detection so that prayer times do not change when moving around unless we manually auto detect the new location.

Amroush 2010-06-21 13:46

Re: [Announce] PrayerTime app for N900
 
Dear Mohanned,

I believe your plan is a great one. I wish you a very good luck in your work.

Thanks,
Ammar

aldevil 2010-06-21 13:55

Re: [Announce] PrayerTime app for N900
 
السلام عليكم
Very nice app, but do you have plans of introducing an app that shows you the Qibla using GPS...?

mssusa 2010-06-26 20:00

Re: [Announce] PrayerTime app for N900
 
Salam Mohannad,

Finally got around to testing it (0.2-12). It exists without warning and without a pattern. Sometimes it quits in the settings menu, sometimes a few seconds after displaying the times.

Moreover, Fajr and Isha are always nan:nan in (Lat 54.9881, Long -1.6194) using MWL method and all options for high latitude adjustment.

BTW, although I have never written anything for Maemo or Qt, I'd like to help if you have some subtask or research to be done.

mohannad 2010-06-26 22:17

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mssusa (Post 730573)
Salam Mohannad,

Finally got around to testing it (0.2-12). It exists without warning and without a pattern. Sometimes it quits in the settings menu, sometimes a few seconds after displaying the times.

Moreover, Fajr and Isha are always nan:nan in (Lat 54.9881, Long -1.6194) using MWL method and all options for high latitude adjustment.

Thank you for testing it! Yeh I came across the problem with it exiting randomly and I've seen a few other threads about this happening to Qt apps. I still dont know the cause but will try putting in a few lines of debugging in my code to see where it breaks.

The other issue you've mentioned is very strange. I was able to reproduce it by using the co-ordinates you mentioned with the a timezone of +1. However instead of 'nan' i got 12:00am for both fajr and isha. Ill look into that today and will hopefully have it fixed by the end of the day (inshallah).
edit: setting the time format to 24hour will result in nan:nan.

In other news, I managed to get the Auto Configure button to work with the phone's built in GPS so users dont need to know where in the world they are in order to use mPrayerTime. I will release a new version once I have the bug above fixed.

Quote:

Originally Posted by mssusa (Post 730573)
BTW, although I have never written anything for Maemo or Qt, I'd like to help if you have some subtask or research to be done.

Thank you for your offer! Umm, do you have the Qt SDK installed? My next task is to get translations working.. Ive had one crack at it before and couldnt figure out how it works, are you able to help me out with this please?

mssusa 2010-06-28 02:30

Re: [Announce] PrayerTime app for N900
 
Thanks for looking into this Mohannad.

Quote:

Originally Posted by mohannad (Post 730693)
Thank you for your offer! Umm, do you have the Qt SDK installed? My next task is to get translations working.. Ive had one crack at it before and couldnt figure out how it works, are you able to help me out with this please?

Unfortunately, not yet. Since I don't have a linux machine nearby I tried to get the SDK virtual image. For some reason, it is offline for sometime now. I'll try to see if I can find out if it'll be back online.

I had a look at Qt localization from http://doc.qt.nokia.com/qt-maemo-4.6...alization.html and http://doc.qt.nokia.com/qt-maemo-4.6...anslation.html
It is a bit confusing, but if I understand correctly,
1. you need to pass tr("hard coded string") instead of "hard coded string" for all strings in your source.
2. you also need to add supported localizations to your project file (very simple. Just file names like mPrayerTime_ar.ts).
3. you need to use the "lupdate" command line tool to process the project file and generate the source localization files mentioned in it (like mPrayerTime_ar.ts). These auto-generated files are xml files. lupdate parses all source files in your project and adds all strings inside tr() into the *.ts files. Strings not covered by tr() will not be translated.
4. use the "linguist" graphical tool to open these translation source files (*.ts) and translate the strings into the target languages then save the files again.
5. use the "lrelease" command line tool to pack the translation source files into binary *.qm files that are used by Qt at runtime for translations.

I'll try to get the virtual image and test this. Meanwhile, you can either move into something else or have a second attempt using Qt internationalization

unixlife 2010-06-28 10:09

Re: [Announce] PrayerTime app for N900
 
Please add a silent option before and after azzan time to make N900 silent in the Masjid. It is every embarrassing in the Masjid when phone rings....May Allah SWT help you...

mohannad 2010-06-30 20:40

Re: [Announce] PrayerTime app for N900
 
Thank you for the instructions mssusa. I will have another crack at using Qt Linguist and see if i can get it to work.

@unixlife, I will look into that as soon as I've got the basic functionality working.


Ive uploaded version 0.3-1 to extras-dev. Its supposed to have the location detection working (at least it did when I was testing in Qt Creator) but for some reason its not. So I still have some work to do there.

The nan:nan bug that mssusa mentioned has been fixed. Please test and let me know if its not working as it should :)

mssusa 2010-07-01 17:29

Re: [Announce] PrayerTime app for N900
 
I can confirm that the nan:nan bug is fixed. However, tapping on auto configure does nothing (unless auto setup of location is done somewhere else).

It also still exits randomly. Happened twice after showing the times.

Azer1 2010-07-04 07:29

Re: [Announce] PrayerTime app for N900
 
Salam aleikum.
I can't install the programm becouse of problem with package libqtm-location. Couldn't find it. Help me please. Thank you for programm.

rebelnoob 2010-07-05 21:24

Re: [Announce] PrayerTime app for N900
 
after reading the comments im waiting for a stable version so i can install and appreciate your work.. there are three packages as prayertime which ones to install?/
jazakallah

mohannad 2010-07-06 08:51

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mssusa (Post 737486)
I can confirm that the nan:nan bug is fixed. However, tapping on auto configure does nothing (unless auto setup of location is done somewhere else).

It also still exits randomly. Happened twice after showing the times.

thank u for testing 0.3-1 mssusa. I uploaded 0.3-2 which should fix the non responsive auto configure button, did u get a chance to try it?

Im still looking into the sudden exitting. Will hopefully have that fixed soon.

mohannad 2010-07-06 09:06

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by Azer1 (Post 740138)
Salam aleikum.
I can't install the programm becouse of problem with package libqtm-location. Couldn't find it. Help me please. Thank you for programm.

Wa'alaikum essalaam, are you trying to install it from the app manager? it should pull in libqtm-location for you. Are u on the latest firmware(PR1.2)?

Quote:

Originally Posted by rebelnoob (Post 741664)
after reading the comments im waiting for a stable version so i can install and appreciate your work.. there are three packages as prayertime which ones to install?/
jazakallah

the app is called mPrayerTime. It should be stable enough to try now :)

mssusa 2010-07-06 20:02

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mohannad (Post 742132)
thank u for testing 0.3-1 mssusa. I uploaded 0.3-2 which should fix the non responsive auto configure button, did u get a chance to try it?

Im still looking into the sudden exitting. Will hopefully have that fixed soon.

Well done Mohannad. Auto configure worked fine for me. I am still suffering from the sudden exit, but I guess once the real cause is found it will be easy to fix.

Thanks again.

Edit: Arrgh. Computers. When they know you are watching they behave. Once you turn your head they misbehave.
I tried to run it from the command line to see if any errors are shown on sudden exit, but it refused to exit! I tried everything but it kept running fine!

Azer1 2010-07-07 20:06

Re: [Announce] PrayerTime app for N900
 
Mohannad thank you very much. I was able to install the program. Very pleased auto configuration. For me it is very actuality.
JazakAllah.

ABDALLAH 2010-07-17 12:30

Re: [Announce] PrayerTime app for N900
 
Where can I down load this application for Nokia N900?

Many thanks and Jezakoum Allah Khayran

Abdallah

Quote:

Originally Posted by mohannad (Post 589045)
After battling with C++ and Qt for a few weeks I am pleased to announce that I finally have a working and stable prayer time calculator app for the N900. For the time being im calling it PrayerTime, that name will change.

http://mohannadh.blogspot.com/2010/0...rayertime.html

Feel free to test it and post any comments you have or bugs u come across.

You will be prompted for the latitude, longitude and timezone of your location when you run the app for the first time.

Note: this is not the final version so excuse the lack of functionality

------------------------

EDIT: 03/04/2010

http://mohannadh.blogspot.com/2010/0...rayertime.html

There is now an 'Options' screen which gives the user access to the application configurations. I've added an option for the user to switch between 12Hr and 24Hr formats. I've also added functionality to allow different prayer time calculation methods based on the globally accepted Islamic conventions. The 'Auto Configure' button doesn't work yet, I'll hopefully have it functioning in the next version.

------------------------

EDIT: 05/04/2010

Application uploaded to extras-devel


------------------------

EDIT: 19/04/2010

Fixed issue with time zone only taking whole numbers. Time zones with decimals are now allowed. Thanks to drasu for pointing this out :).

------------------------

EDIT: 30/04/2010

mprayertime 0.1.1-6

Fixed issue with asr juristiction setting not working. Thanks to drasu for pointing this out :).

------------------------

EDIT: 31/05/2010

The options screen layout is messed up as a result of pr1.2 (Qt 4.6.2). I am working on resolving this, should have a new version soon.

------------------------

EDIT: 20/06/2010

Options screen issue fixed. mPrayerTime 0.2-12 uploaded to extras-dev


mohannad 2010-07-19 21:07

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by ABDALLAH (Post 754897)
Where can I down load this application for Nokia N900?

Many thanks and Jezakoum Allah Khayran

Abdallah

Salaam Abdallah,

You need to enable the Extras-devel repository, mPrayerTime can be found there.

If you dont have Extras-devel you can enable it as follows:
1. Open the Application manager
2. Hit the title bar to display the application manager menu
3. Hit Application catalogs
4. Add a new catalog with the following details:
Catalog name: Maemo Extras-devel
Web address: http://repository.maemo.org/extras-devel
Distribution: fremantle
Components: free non-free

raedn900 2010-08-08 15:17

Re: [Announce] PrayerTime app for N900
 
في ميزان حسناتك ان شاء مالك الملك........

mohannad 2010-08-14 10:43

Re: [Announce] PrayerTime app for N900
 
1 Attachment(s)
I am pleased to announce the latest added feature to mPrayerTime: command line output!

usage: [path/to/mprayertime] nogui [lfsdami]

What does this feature bring?
Well, a whole lot of people have been asking me to add a desktop widget to mPrayertime. Since mPrayerTime was developed using Qt, extending the application to include a desktop widget wouldnt have been too difficult. However the limitations of Qt widgets on Maemo (the biggest one being that you have to reload the widget every time you restart the phone) made me look for a different approach. I wanted the widget to be as customisable as possible, but that would mean that I had to write a LOT of code which requires time and that is the one thing I seem to always be running out of. And then it hit me! Why not just output the times to the command line and let the users (using the QueenBeeCon widget) display them in what ever way they like! So thats what I did in version 0.4-1.

How do I display the prayertimes on my homescreen?
Simple!
  1. Make sure you have mPrayerTime installed and configured
  2. Download Queen BeeCon Widget from the Extras repos if you dont already have it installed.
  3. Add a new Queen BeeCon Widget to one of your homescreens
  4. Edit the added widget by long-pressing an empty area on your homescreen and then pressing the spanner logo on the bottom left of the widget
  5. Add a new command by hitting the "Add Cmd" button.
  6. Give your command a title (eg: mPrayerTime) and the following command:
    /usr/bin/mprayertime nogui lfsdami
  7. Hit save
  8. Hit Save & Run.
The prayer times should appear in your widget.
You can modify the settings of the widget to suit your preferences.

What if I dont want to display all the times?
If you noticed the weird "lfsdami" (no this is not a typo) command used in the instructions above, this is what allows you to specify what times you want to print out.
l = Show Labels
f = Print Fajr time
s = Print Shurooq time
d = Print Duhr time
a = Print Asr time
m = Print Magrib time
i = Print Ishaa time

If you want to have arabic labels instead of the default english, you can create a picture with arabic words and use that as your widget background. Then run the command above without the "l" (i.e. fsdami).

Thats all for now. Ill be looking forward to hearing some feedback from anyone who wishes to test this.

Thank you all for testing mPrayerTime

Ramadan Mubarak!

mmoomm 2010-08-14 12:47

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mohannad (Post 786194)
I am pleased to announce the latest added feature to mPrayerTime: command line output!

usage: [path/to/mprayertime] nogui [lfsdami]

What does this feature bring?
Well, a whole lot of people have been asking me to add a desktop widget to mPrayertime. Since mPrayerTime was developed using Qt, extending the application to include a desktop widget wouldnt have been too difficult. However the limitations of Qt widgets on Maemo (the biggest one being that you have to reload the widget every time you restart the phone) made me look for a different approach. I wanted the widget to be as customisable as possible, but that would mean that I had to write a LOT of code which requires time and that is the one thing I seem to always be running out of. And then it hit me! Why not just output the times to the command line and let the users (using the QueenBeeCon widget) display them in what ever way they like! So thats what I did in version 0.4-1.

How do I display the prayertimes on my homescreen?
Simple!
  1. Make sure you have mPrayerTime installed and configured
  2. Download Queen BeeCon Widget from the Extras repos if you dont already have it installed.
  3. Add a new Queen BeeCon Widget to one of your homescreens
  4. Edit the added widget by long-pressing an empty area on your homescreen and then pressing the spanner logo on the bottom left of the widget
  5. Add a new command by hitting the "Add Cmd" button.
  6. Give your command a title (eg: mPrayerTime) and the following command:
    /usr/bin/mprayertime nogui lfsdami
  7. Hit save
  8. Hit Save & Run.
The prayer times should appear in your widget.
You can modify the settings of the widget to suit your preferences.

What if I dont want to display all the times?
If you noticed the weird "lfsdami" (no this is not a typo) command used in the instructions above, this is what allows you to specify what times you want to print out.
l = Show Labels
f = Print Fajr time
s = Print Shurooq time
d = Print Duhr time
a = Print Asr time
m = Print Magrib time
i = Print Ishaa time

If you want to have arabic labels instead of the default english, you can create a picture with arabic words and use that as your widget background. Then run the command above without the "l" (i.e. fsdami).

Thats all for now. Ill be looking forward to hearing some feedback from anyone who wishes to test this.

Thank you all for testing mPrayerTime

Ramadan Mubarak!


PLEASE HELP!
because i am a genius, i thought "why not try this with desktop command widget" i added the script then it didnt show anything in stead it opened mprayertime app. and every time i closed it, it opened. i deleted the widget but still the app opens every time i close it. i rebooted but STILL!! it opens every time i close it and also most of the widgets on my desktops are invisible.

what should i do? please help

xuggs 2010-08-14 13:02

Re: [Announce] PrayerTime app for N900
 
mohannad do the prayer times dynamically update on the widget from the mprayertime app?

HtheB 2010-08-14 13:56

Re: [Announce] PrayerTime app for N900
 
This isn't userfriendly...
Is it possible to make something so that everyone can handle it?

pindu 2010-08-14 13:59

Re: [Announce] PrayerTime app for N900
 
assalaamualaykum
akhee i have followed your instructions as above but i dont get the prayer names to show, how do i fix this please?

http://i674.photobucket.com/albums/v...ent-X2CIHV.png

mohannad 2010-08-14 18:02

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by mmoomm (Post 786279)
PLEASE HELP!
because i am a genius, i thought "why not try this with desktop command widget" i added the script then it didnt show anything in stead it opened mprayertime app. and every time i closed it, it opened. i deleted the widget but still the app opens every time i close it. i rebooted but STILL!! it opens every time i close it and also most of the widgets on my desktops are invisible.

what should i do? please help

I dont see why it wouldnt work with the desktop command widget.

Did you have mPrayerTime installed and configured before you attempted to load the times using the widget?

By default if the application doesnt see the configuration file it will open up the main application window.

I hope this helps

mohannad 2010-08-14 18:04

Re: [Announce] PrayerTime app for N900
 
Quote:

Originally Posted by xuggs (Post 786286)
mohannad do the prayer times dynamically update on the widget from the mprayertime app?

Hi xuggs,
You can set the Queen BeeCon widget to update every given time interval, so you can set it to update every 24 hours.


All times are GMT. The time now is 10:31.

vBulletin® Version 3.8.8