Thread
:
[Announce] PrayerTime app for N900
View Single Post
mohannad
2010-08-14 , 10:43
Posts: 205 | Thanked: 159 times | Joined on Oct 2009
#
74
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!
Make sure you have mPrayerTime installed and configured
Download Queen BeeCon Widget from the Extras repos if you dont already have it installed.
Add a new Queen BeeCon Widget to one of your homescreens
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
Add a new command by hitting the "Add Cmd" button.
Give your command a title (eg: mPrayerTime) and the following command:
/usr/bin/mprayertime nogui lfsdami
Hit save
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!
Attached Images
Quote & Reply
|
The Following 15 Users Say Thank You to mohannad For This Useful Post:
adhrie
,
afaq
,
anees
,
CasTTeLLo
,
Chrome
,
El Amir
,
HtheB
,
imo
,
kamiwey
,
MohammadAG
,
pindu
,
rasheddawabsheh
,
saadgadit
,
Sash
,
xuggs
mohannad
View Public Profile
Send a private message to mohannad
Find all posts by mohannad