| 1   2     3   | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [N900] Nokia Clock Replacement (https://talk.maemo.org/showthread.php?t=75425)

F2thaK 2011-08-02 09:18

[N900] Nokia Clock Replacement
 
I though Id start a thread to increase interest in a replacement clock app.

We have a replacement clock app with portrait support, thanks to CepiPerez& ade.

Its still a work in progress, but is almost complete (IMHO).


DOWNLOAD
(version 31/10/11)

TO INSTALL/UPDATE:
1 - Rename /usr/bin/worldclock to /usr/bin/worldclock.bak (if you wish to backup)
2 - Copy new "worldclock" file to /usr/bin/
3 - Reboot




NEW
Video: [version 3/8/11]
http://i1.ytimg.com/vi/XVDFmTz2BWU/hqdefault.jpg
http://www.youtube.com/watch?v=XVDFmTz2BWU


[Old Version] Video:
http://i1.ytimg.com/vi/HevfnHNB9I0/hqdefault.jpg
http://www.youtube.com/watch?v=HevfnHNB9I0

bitrocky 2011-08-02 09:37

Re: [N900] Nokia Clock Replacement
 
where exactly is the problem?
the new clock can't be started directly, you have to copy it to "/usr/bin/worldclock" AFTER renaming the old!
The original clock is a link to maemo-invoker.

Here it works quiet good, the inactive alarms were previously not displayed correctly (instead of the time only a long number was displayed...) also the days when the alarms should occurs weren't displayed only a number was shown here...
But the replacement clock now is showing the alarms correctly! Thx for that cepiperez!

F2thaK 2011-08-02 09:40

Re: [N900] Nokia Clock Replacement
 
okay thanks, cepi's instructions werent that clear! I deleted the original file! I thought backing it up was optional.

lucky its my spare testing device!

edit: still doesnt work?!

TMavica 2011-08-02 09:55

Re: [N900] Nokia Clock Replacement
 
You need to chmod it and set dbus service to use it

TMavica 2011-08-02 10:08

Re: [N900] Nokia Clock Replacement
 
Quote:

Originally Posted by bitrocky (Post 1062697)
where exactly is the problem?
the new clock can't be started directly, you have to copy it to "/usr/bin/worldclock" AFTER renaming the old!
The original clock is a link to maemo-invoker.

Here it works quiet good, the inactive alarms were previously not displayed correctly (instead of the time only a long number was displayed...) also the days when the alarms should occurs weren't displayed only a number was shown here...
But the replacement clock now is showing the alarms correctly! Thx for that cepiperez!

What?
Mine one alarm not good, set the time and date not equal to the display

F2thaK 2011-08-02 10:13

Quote:

Originally Posted by TMavica (Post 1062705)
You need to chmod it and set dbus service to use it

Would you care to elaborate? Im keen to test! Please?

TMavica 2011-08-02 10:18

Re: [N900] Nokia Clock Replacement
 
1. Rename the orginal name to others.
2. Place worldclock to /usr/bin/
3. Xterminal:
root
cd /usr/bin/
chmod +x worldclock
worldclock

by the way, the alarm is not work for me, date and time not match at show after set alarm, and no icon show at status menu, but bitrocky mentioned his alarm is correctly

F2thaK 2011-08-02 10:22

Re: [N900] Nokia Clock Replacement
 
thanks, what about dbus part? I did chmod thru SSH already

TMavica 2011-08-02 10:25

Re: [N900] Nokia Clock Replacement
 
no need dbus, sorry

F2thaK 2011-08-02 10:31

Re: [N900] Nokia Clock Replacement
 
now it works thank you, great start! alarm time seems correct for me but alarm icon doesnt show.

vid coming soon

TMavica 2011-08-02 10:35

Re: [N900] Nokia Clock Replacement
 
really? alarm correct show?

F2thaK 2011-08-02 10:52

Re: [N900] Nokia Clock Replacement
 
pretty sure, yes

F2thaK 2011-08-02 11:00

Re: [N900] Nokia Clock Replacement
 
video added to first post

Alfred 2011-08-02 11:02

Re: [N900] Nokia Clock Replacement
 
@F2thaK

Buddy, mind putting a RO_oKIE manual in the first post?

RO_okie, so newbies won't break their devices, but others could still test it:D

F2thaK 2011-08-02 11:04

Re: [N900] Nokia Clock Replacement
 
No problems, but do note its not really at the stage to fully replace the stock app, but its close!

akrus 2011-08-02 11:15

Re: [N900] Nokia Clock Replacement
 
Just as a feature request :)
I'm really missing the ability to set separate sounds for different alarms!

bitrocky 2011-08-02 16:32

Re: [N900] Nokia Clock Replacement
 
2 Attachment(s)
Quote:

Originally Posted by TMavica (Post 1062711)
What?
Mine one alarm not good, set the time and date not equal to the display

Here is a picture of the alarm window from the original clock:
Attachment 21875

And now with cepi's worldclock:
Attachment 21876

I also noticed that cepi's worldclock doesn't have the same alarms!? Is it a bug, or does it maintains an own config?

It also didn't sort them after you created a new or activated an alarm.

But for a first version its already useable!

Oh, wait I also noticed that if an alarm occurs the buttons to stop and "schlummern" (don't know the english word atm, sorry;) are switched!

CepiPerez 2011-08-02 19:49

Re: [N900] Nokia Clock Replacement
 
Here's another update for whoever wants to test:
http://dl.dropbox.com/u/12134784/CSSU/worldclock
Post bugs here please.

BTW: The alarm library has alarm_event_set_sound, that is supossed to set a custom ringtone for each alarm. But it doesn't work...

The source is here: https://gitorious.org/osso-clock
You're welcome to contribute

PS: My english sucks, I know...

TMavica 2011-08-02 20:04

Re: [N900] Nokia Clock Replacement
 
Alarm time is correct now
Bugs:
no status icon and the TICK box is over cover the time in alarm, so cant see the time clearly, example: I set 3:00, i only can see :00.

CepiPerez 2011-08-02 20:09

Re: [N900] Nokia Clock Replacement
 
Are you using a custom font?
Can you post a screenshot of default clock?
I want to see how it looks

TMavica 2011-08-02 20:51

Re: [N900] Nokia Clock Replacement
 
yes
i using nokia pure text..
later give u a shot

colin.stephane 2011-08-02 20:55

Re: [N900] Nokia Clock Replacement
 
Quote:

Originally Posted by CepiPerez (Post 1062958)
Here's another update for whoever wants to test:
http://dl.dropbox.com/u/12134784/CSSU/worldclock
Post bugs here please.

BTW: The alarm library has alarm_event_set_sound, that is supossed to set a custom ringtone for each alarm. But it doesn't work...

The source is here: https://gitorious.org/osso-clock
You're welcome to contribute

PS: My english sucks, I know...

Hi,

I'm trying to compile by myself from git, but it look like it was a big mess to compile :o

Many dependencies doesn't seem to be fulfilled ...

Any advice more than 'The source is here' ?

Here is where the compilation fail actually on my side :

Code:

[sbox-FREMANTLE_ARMEL: ~/tmp/Building/osso-clock/osso-clock] > make
g++ -c -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -I/usr/include/dbus-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DMAEMO_CHANGES -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG -DQT_MAEMO5_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/linux-g++-maemo5 -I. -I/targets/FREMANTLE_ARMEL/usr/include/QtCore -I/targets/FREMANTLE_ARMEL/usr/include/QtGui -I/targets/FREMANTLE_ARMEL/usr/include/QtMaemo5 -I/targets/FREMANTLE_ARMEL/usr/include -I. -I. -o alsettings.o alsettings.cpp
alsettings.cpp:5:23: error: gconfitem.h: No such file or directory
In file included from /usr/include/gst/gstelement.h:51,
                from /usr/include/gst/gstbin.h:27,
                from /usr/include/gstreamer-0.10/gst/gst.h:34,
                from tdialog.h:7,
                from alsettings.cpp:8:
/usr/include/gst/gstconfig.h:171:28: error: libxml/parser.h: No such file or directory
In file included from /usr/include/gst/gstelement.h:52,
                from /usr/include/gst/gstbin.h:27,
                from /usr/include/gstreamer-0.10/gst/gst.h:34,
                from tdialog.h:7,
                from alsettings.cpp:8:
/usr/include/gst/gstobject.h:260: error: 'xmlNodePtr' has not been declared
/usr/include/gst/gstobject.h:265: error: expected identifier before '*' token
/usr/include/gst/gstobject.h:265: error: 'xmlNodePtr' has not been declared
/usr/include/gst/gstobject.h:265: error: 'xmlNodePtr' declared as function returning a function
/usr/include/gst/gstobject.h:266: error: 'xmlNodePtr' is not a type
/usr/include/gst/gstobject.h:307: error: 'xmlNodePtr' does not name a type
/usr/include/gst/gstobject.h:308: error: 'xmlNodePtr' has not been declared
/usr/include/gst/gstobject.h:325: error: 'xmlNodePtr' has not been declared
In file included from /usr/include/gst/gstbuffer.h:29,
                from /usr/include/gst/gstpad.h:30,
                from /usr/include/gst/gstelement.h:53,
                from /usr/include/gst/gstbin.h:27,
                from /usr/include/gstreamer-0.10/gst/gst.h:34,
                from tdialog.h:7,
                from alsettings.cpp:8:
/usr/include/gst/gstcaps.h:243: error: 'xmlNodePtr' does not name a type
/usr/include/gst/gstcaps.h:245: error: 'xmlNodePtr' was not declared in this scope
In file included from /usr/include/gst/gstelement.h:53,
                from /usr/include/gst/gstbin.h:27,
                from /usr/include/gstreamer-0.10/gst/gst.h:34,
                from tdialog.h:7,
                from alsettings.cpp:8:
/usr/include/gst/gstpad.h:957: error: variable or field 'gst_pad_load_and_link' declared void
/usr/include/gst/gstpad.h:957: error: 'xmlNodePtr' was not declared in this scope
/usr/include/gst/gstpad.h:957: error: expected primary-expression before '*' token
/usr/include/gst/gstpad.h:957: error: 'parent' was not declared in this scope
In file included from /usr/include/gstreamer-0.10/gst/gst.h:75,
                from tdialog.h:7,
                from alsettings.cpp:8:
/usr/include/gst/gstxml.h:57: error: 'xmlNsPtr' does not name a type
/usr/include/gst/gstxml.h:67: error: 'xmlNodePtr' has not been declared
/usr/include/gst/gstxml.h:68: error: 'xmlNodePtr' has not been declared
/usr/include/gst/gstxml.h:77: error: 'xmlDocPtr' does not name a type
/usr/include/gst/gstxml.h:84: error: 'xmlDocPtr' has not been declared
/usr/include/gst/gstxml.h:92: error: 'xmlNodePtr' was not declared in this scope
/usr/include/gst/gstxml.h:92: error: expected primary-expression before '*' token
/usr/include/gst/gstxml.h:92: error: 'parent' was not declared in this scope
/usr/include/gst/gstxml.h:92: error: initializer expression list treated as compound expression
alsettings.cpp: In constructor 'AlSettings::AlSettings(QWidget*)':
alsettings.cpp:22: error: 'GConfItem' was not declared in this scope
alsettings.cpp:22: error: 'item' was not declared in this scope
alsettings.cpp:22: error: expected type-specifier before 'GConfItem'
alsettings.cpp:22: error: expected `;' before 'GConfItem'
make: *** [alsettings.o] Error 1
[sbox-FREMANTLE_ARMEL: ~/tmp/Building/osso-clock/osso-clock] >


A++

TMavica 2011-08-02 22:01

Re: [N900] Nokia Clock Replacement
 
1 Attachment(s)
this is my screenshot, I using pure text, I set to Sans, problem still here

CepiPerez 2011-08-02 22:56

Re: [N900] Nokia Clock Replacement
 
@colin.stephane:
Download new source. I forgot to add some things.

CepiPerez 2011-08-02 23:18

Re: [N900] Nokia Clock Replacement
 
@TMavica:
New test version: http://dl.dropbox.com/u/12134784/CSSU/worldclock

towhatend 2011-08-02 23:21

Re: [N900] Nokia Clock Replacement
 
You always makes great software CepiPerez. :)

F2thaK 2011-08-02 23:23

Re: [N900] Nokia Clock Replacement
 
Quote:

Originally Posted by cepiperez (Post 1063040)

will test new version


edit: 12 hours, am/pm, worldclock works... wow! thanks!

TMavica 2011-08-02 23:57

Re: [N900] Nokia Clock Replacement
 
1 Attachment(s)
Tick box fixed, but.....now the problem is am/pm...
others thing all works well

colin.stephane 2011-08-03 01:19

Re: [N900] Nokia Clock Replacement
 
Quote:

Originally Posted by CepiPerez (Post 1063032)
@colin.stephane:
Download new source. I forgot to add some things.

Look like there is another problem now :

Code:

g++ -c -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -I/usr/include/dbus-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DMAEMO_CHANGES -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG -DQT_MAEMO5_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/linux-g++-maemo5 -I. -I/targets/FREMANTLE_ARMEL/usr/include/QtCore -I/targets/FREMANTLE_ARMEL/usr/include/QtGui -I/targets/FREMANTLE_ARMEL/usr/include/QtMaemo5 -I/targets/FREMANTLE_ARMEL/usr/include -I. -I. -o mainwindow.o mainwindow.cpp
In file included from /usr/include/gtk-2.0/gtk/gtk.h:47,
                from mainwindow.cpp:18:
/usr/include/gtk-2.0/gtk/gtkbindings.h:79: error: expected unqualified-id before 'protected'
/usr/include/gtk-2.0/gtk/gtkbindings.h:79: error: expected ';' before 'protected'
make: *** [mainwindow.o] Error 1
[sbox-FREMANTLE_ARMEL: ~/tmp/Building/osso-clock/osso-clock] >

EDIT !!!

Fixed editing mainwindows.cpp and put '#include <libnotify/notify.h>
' at the top ...

But now compilation failed at :

Code:

g++ -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,--hash-style=gnu -o osso-clock main.o mainwindow.o alarmlist.o filedelegate.o newalarm.o dialog.o checkdelegate.o valuebutton.o dialog2.o alarmbutton.o maintdelegate.o world.o dialog3.o alsettings.o mdialog.o tdialog.o home.o moc_mainwindow.o moc_alarmlist.o moc_filedelegate.o moc_newalarm.o moc_dialog.o moc_checkdelegate.o moc_valuebutton.o moc_dialog2.o moc_alarmbutton.o moc_world.o moc_dialog3.o moc_alsettings.o moc_mdialog.o moc_tdialog.o moc_home.o moc_gconfitem.o    -L/usr/lib -lalarm -lhildon-time-zone-chooser0 -lclockcore0 -lcityinfo0 -lgq-gconf -losso -ldbus-glib-1 -ldbus-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lQtMaemo5 -L/usr/lib -L/usr/X11R6/lib -lQtGui -lQtDBus -lQtXml -lQtCore -lpthread
/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgq-gconf
collect2: ld returned 1 exit status
make: *** [osso-clock] Error 1
[sbox-FREMANTLE_ARMEL: ~/tmp/Building/osso-clock/osso-clock] >

What is this dependency ? What package need to be installed ?

Hope it help ...

A++

CepiPerez 2011-08-03 02:00

Re: [N900] Nokia Clock Replacement
 
Last update for today:
http://dl.dropbox.com/u/12134784/CSSU/worldclock

I think almos everything is working...

TMavica 2011-08-03 02:11

Re: [N900] Nokia Clock Replacement
 
THanks
it is a perfect version already
nil problem

F2thaK 2011-08-03 04:36

Re: [N900] Nokia Clock Replacement
 
awesome, only problem left is the times are cut off in alarms and world clock views

laith.m.y 2011-08-03 08:29

Re: [N900] Nokia Clock Replacement
 
Quote:

Originally Posted by CepiPerez (Post 1063073)
Last update for today:
http://dl.dropbox.com/u/12134784/CSSU/worldclock

I think almos everything is working...

is that a .deb file or what ?

and thanx for your work :)

pali 2011-08-03 09:15

Re: [N900] Nokia Clock Replacement
 
@CepiPerez:

What about rename package name to clock-ui (not binary file)? Original Nokia World Clock application (/usr/bin/worldclock) is located in clock-ui debian package.

If your application will be in CSSU it shoud have same debian package name (clock-ui) as in original nokia repositories due to working upgrade.

pali 2011-08-03 09:32

Re: [N900] Nokia Clock Replacement
 
I see you are using my osso-intl.h. Please update it to new version from https://gitorious.org/community-ssu/...er/osso-intl.h

neboja 2011-08-03 11:10

Re: [N900] Nokia Clock Replacement
 
nice work! :)

freemangordon 2011-08-03 11:41

Re: [N900] Nokia Clock Replacement
 
Two bugs so far

-Device language selection is not respected, i.e. my n900 is set up to use English as device language and Bulgarian as regional settings. Stock clock shows dates in english (Mon, Tue,...) while replacement shows them in Bulgarian.
-on main screen buttons are missing, only text is there. But they are functional. I am using hydrocarbon theme.

EDIT: (slightly OT) I am pretty sure what causes second bug having im mind your merge requests for osso-calculator on gitorious. And i agree on pali's comment that hardcoding image names and bypassing sapwood engine is not a good idea. I have an idea (which I think is better) - to use somehow QT widget object name for setting underlying Hildon/GTK widget name, for example "pushButton1-HildonWidgetName-fremantle-stylus-button", so "HildonWidgetName" to be a key and the remaining string from objectName ("fremantle-stylus-button") to be passed to GTK paint engine, so sapwood to find correct images/colors. Still waiting MohammadAG to upload/clone QT 4.7.0 on gitorious (while trying to fix 4.7.2 raster bug). Once it is there I will try to implement such workaround which will allow QT apps on Maemo to have native Hildon look and feel.

CepiPerez 2011-08-03 12:57

Re: [N900] Nokia Clock Replacement
 
Dates are showed using Qt, and the rest is using pali's osso-intl
What should I look? Qt or osso-inlt?

About buttons, let me try hydrocarbon to find the problem

About the merge request, I don't know. It's not my app.
But in my opinion, if the calculator will be replaced, at least it should looks like the original.

miqu 2011-08-03 13:10

Re: [N900] Nokia Clock Replacement
 
I am downloading this now thanks. :)

Wondering though how about the ability to wakeup even when battery has died or device is shutdown.

At least I have had an alarm go of with the original clock when battery had ended.

neboja 2011-08-03 13:20

Re: [N900] Nokia Clock Replacement
 
Quote:

Originally Posted by CepiPerez (Post 1063408)
About the merge request, I don't know. It's not my app.
But in my opinion, if the calculator will be replaced, at least it should looks like the original.

I think that no matter who works, it should be implemented in CSSU (what is the point of CSSU if a critical updates and enhancements are not part of it????)
I see you contributed a great deal of work, so you can influence...

it is not matter who is working, and this is my plea for all involved developers: send a marge request!

thanks and keep up the good work ;)


| 1   2     3   | Next | Last
All times are GMT. The time now is 11:13.

vBulletin® Version 3.8.8