maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 clock replacement [continued] (https://talk.maemo.org/showthread.php?t=81582)

wicozani 2012-03-16 22:37

Re: N900 clock replacement [continued]
 
SUCCESS! I connected via SSH only to find that my command to move the worldclock program from its worldclock folder in /usr/bin was not successful. I copied the worldclock program to my docs on my PC, deleted the worldclock folder from /usr/bin, pasted the worldclock program back into /usr/bin, reran the chmod command, and now the program is brought up via the 'clock' icon. Excellent and thank you! One final question: Is there anyway to display the worldclock continuously on one of my homescreens? Or perhaps this isn't a good idea regarding battery usage or some other reason? Thanks again very much, and excellent work! Jeff

ade 2012-03-16 22:47

Re: N900 clock replacement [continued]
 
Finally :D

It should not use too much battery power, but I would opt for some kind of clock widget on one of the desktops.

ivgalvez 2012-04-03 12:18

Re: N900 clock replacement [continued]
 
Hi Ade,

Would you like to join the CSSU team and push World Clock Replacement to it?

Right now, there is lack of manpower in CSSU and they have lots of open issues so your help would be very much appreciated.

ade 2012-04-03 12:55

Re: N900 clock replacement [continued]
 
Ivgalvez,

Pushing the replacement clock to the CSSU git was one of the targets when we restarted the project. If I can assist in some way, no problem.

I am not sure what my further role would be. Freemangordon was willing to do the quality control once it arrived in CSSU git.
You can always contact me via PM if things get more concrete.

freemangordon 2012-04-03 14:34

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1187540)
Ivgalvez,

Pushing the replacement clock to the CSSU git was one of the targets when we restarted the project. If I can assist in some way, no problem.

I am not sure what my further role would be. Freemangordon was willing to do the quality control once it arrived in CSSU git.
You can always contact me via PM if things get more concrete.

@ade, doing some QA is not the same as maintaining the project, and that is what adeclock needs once in CSSU. I can bet there will be some bugs to chase, some rough edges to polish, etc. And it is much better to have someone in CSSU team who is familiar with the codebase to chase the bugs.

I think you should show some activity on #maemo-ssu at least. Along with some involvement with the project, i.e. asking CSSU maintainers to put adeclock in CSSU git, etc.

laith.m.y 2012-05-06 20:04

Re: N900 clock replacement [continued]
 
@ ade

first of all thnx for your great work :)

I will be a little bit annoying with my questions :D

is there any chance for adding background for the portrait mode ?

can you make (adjust date and time) appear when we click the time just like the stock clock?

Estel 2012-05-06 20:05

Re: N900 clock replacement [continued]
 
Both were asked&answered in this very (not so long) thread. At least few times, I must add.

nick_stokes 2012-05-21 09:59

Re: N900 clock replacement [continued]
 
Help please, tried everything.
Reflash. I'm trying to put those hours, but they do not start. The permissions given, but it does not help. In X-Terminal : "segmentation fault"... What is it?

nick_stokes 2012-05-21 10:07

Re: N900 clock replacement [continued]
 
In original clocks all fine... How I can load this clock?

ade 2012-05-21 11:48

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by nick_stokes (Post 1210117)
Help please, tried everything.
Reflash. I'm trying to put those hours, but they do not start. The permissions given, but it does not help. In X-Terminal : "segmentation fault"... What is it?

What does

Code:

ls -l /usr/bin/worldclock
give as output in x-terminal when the replacement clock is in place?

nick_stokes 2012-05-21 13:49

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1210160)
What does

Code:

ls -l /usr/bin/worldclock
give as output in x-terminal when the replacement clock is in place?



Nokia-N900:~# ls -l /usr/bin/worldclock
-rwxrwxrwx 1 root root 454420 Feb 29 04:19 /usr/bin/worldclock

ade 2012-05-21 14:23

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by nick_stokes (Post 1210201)
Nokia-N900:~# ls -l /usr/bin/worldclock
-rwxrwxrwx 1 root root 454420 Feb 29 04:19 /usr/bin/worldclock

My first impression is that this looks okay.

Do you have PR1.3 and/or CSSU installed on your phone?

nick_stokes 2012-05-21 14:29

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1210220)
My first impression is that this looks okay.

Do you have PR1.3 and/or CSSU installed on your phone?

Yes, PR1.3.1 (last), CSSU testing, kernel-power-50.

ade 2012-05-21 14:42

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by nick_stokes (Post 1210225)
Yes, PR1.3.1 (last), CSSU testing, kernel-power-50.

If you don't mind I will ask you (via PM) to do some more tests when I get home (in about 3 to 4 hours from now). At the moment I can't do much more.

Edit: As I understand the PM's correctly the problem seized to exist in the meantime...

nick_stokes 2012-05-21 14:44

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1210231)
If you don't mind I will ask you (via PM) to do some more tests when I get home (in about 3 to 4 hours from now). At the moment I can't do much more.

OK, i will be waiting :)

marmistrz 2012-07-02 09:48

Re: N900 clock replacement [continued]
 
It seems that the worldclock mod doesn't show the ogg files when selecting alternate alarm sound. I've got ogg support installed.

Could u fix it please?

ade 2012-07-02 10:29

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by marmistrz (Post 1230043)
It seems that the worldclock mod doesn't show the ogg files when selecting alternate alarm sound. I've got ogg support installed.

Could u fix it please?

I have never looked at this part of the code, but I will do so this on short notice. Hopefully this evening :)

artpra 2012-07-02 10:41

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1230072)
I have never looked at this part of the code, but I will do so this on short notice. Hopefully this evening :)

When You do, I have one more UI bug to report (yeah, I know :p ):
on the main clock view go to settings (tap the app title at the top panel), choose last option (my system language is not english - "alarm settings"?), change snooze time to any of the three proposed values and watch as text label at this button is changed automagically to "300", "600" or "1200" strings.

Latest CSSU-Testing@stock kernel here.

ade 2012-07-03 00:47

Re: N900 clock replacement [continued]
 
Fixes:
- fixed the issue addressed by artpra (text label change when changing snooze time)
- fixed: listed custom alarm files where always split by the first dot ("13.Metallica.ogg" would become "13" with file extension "Metallica.ogg", thus not equal to "ogg"

Changes:
- Wallpaper background in landscape will be set the first time used (was initially off)
- Change in config file location:
The config file was located in /home/user/.config/cepiperez/ and is now moved to /home/user/.config/worldclock/
(it only contains your selected worldclock city codes and the preferences of wallpaper/seconds shown or not)
If you want to preserve this settings:
Code:

mkdir /home/user/.config/worldclock
mv /home/user/.config/cepiperez/worldclock.conf /home/user/.config/worldclock/

download info in the first post...

@marmistrz:
The clock replacement does show and support ogg files. Your finding could be related with the second fix. If not please give me the name of the ogg file not shown.

ivgalvez 2012-07-03 08:44

Re: N900 clock replacement [continued]
 
Any news about it's inclusion in CSSU?

ivgalvez 2012-07-03 08:54

Re: N900 clock replacement [continued]
 
I had a strange problem during last week.

I travelled to a different time zone (from GMT+2 to GMT+1) while using worldclock replacement with automatic time adjustment.

The time zone didn't change and I had to manually change the time. I tried it several times, even rebooting with no luck.

The question is that it didn't seem to be a network problem, as a second phone (with Android) in the same network received the time change message.

When returning home, I configured it again to automatic change of time zone and it changed to GMT+2 without a problem.

I don't know if this could be related with worldclock replacement but I have travelled a lot in the last 2 years with stock clock and haven't seen this problem before.

artpra 2012-07-03 09:08

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1230415)
Fixes:
- fixed the issue addressed by artpra (text label change when changing snooze time)

I can confirm that it`s fixed indeed. Thanks for the quick response.

ade 2012-07-03 09:21

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ivgalvez (Post 1230542)
Any news about it's inclusion in CSSU?

The CSSU team has agreed to include it in CSSU as you know. I can't say anything about a timeline. It all depends on the time I can spend on it and how the integration process in CSSU evolves. I hope to do some minor changes first and then get more in contact with the CSSU team for further steps.

About your question about the timezone issue:
The worldclock is not involved in any timezone change. It just reads values or makes calls to existing system functionality. So I cannot explain the behaviour you have seen.

ade 2012-07-04 21:25

Re: N900 clock replacement [continued]
 
It was asked a couple of times, but had no priority for me. It turned out to be a rather small code change:
-> the date and time can now be altered by tapping on the time display (just like in the stock clock).

edit: noticed that date in portrait mode missed it secondary colorsetting: fixed

Download link in the first post (as always).

ade 2012-07-09 22:31

Re: N900 clock replacement [continued]
 
Just as you think you have spotted all the differences with the stock clock, I noticed the possible snooze repeat intervals are 5/10/20 minutes, whereas in the stock clock it is 5/10/15 minutes.

After changing it to the stock clock interval times, I found out the snooze interval is not saved and will always be 10 minutes. As it is never reported I guess everybody is happy with this snooze interval :)

I will try to fix it, as soon as I found how the stock clock deals with this.

ade 2012-07-10 22:35

Re: N900 clock replacement [continued]
 
No wonder the snooze interval problem was not reported: I introduced it myself in the last version :o

CepiPerez used the value he put on the button to actually use that value later. So by "fixing" artpra's bugreport, that value was lost. I solved it in another way, so it should work again without reintroducing the values on the buttons.

It now has the snooze options of 5/10/15 minutes (the 20 minutes is replaced by the stock clock value of 15 minutes). The downloadlink in the first post is updated with a new version.

ade 2012-07-11 22:25

Re: N900 clock replacement [continued]
 
Sorry to bother you again with a new version, but in the process of making the time clickable for adjustment (enhancement from a while ago), I must have lost the correct font (Nokia Sans) in the QT Creator form. This has resulted in a font different from the stock clock in the main screen, I very recently noticed.

I now have set the correct font in the code itself to prevent accidental change in QT Creator.

The download is updated as usual.

NightShift79 2012-07-11 23:48

Re: N900 clock replacement [continued]
 
how can I set a wallpaper for portrait mode?

ade 2012-07-12 06:25

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by NightShift79 (Post 1236323)
how can I set a wallpaper for portrait mode?

You can't. It is the same as in the openmediaplayer. The way the portrait screen is build, makes it hard to have a background. And I do not miss it, to be honest.

sixwheeledbeast 2012-07-14 23:25

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1236310)
Sorry to bother you again with a new version, but in the process of making the time clickable for adjustment (enhancement from a while ago), I must have lost the correct font (Nokia Sans) in the QT Creator form. This has resulted in a font different from the stock clock in the main screen, I very recently noticed.

I now have set the correct font in the code itself to prevent accidental change in QT Creator.

Doesn't this mean worldclock ignores the system font.

I have my System font as Ubuntu and worldclock is Nokia Sans.
Stock clock used to be Ubuntu.

It would be nice to have worldclock follow the systems font.

sixwheeledbeast 2012-07-14 23:53

Re: N900 clock replacement [continued]
 
Also found some bugs/features missing from original clock.
Just switched to worldclock on my testing N900 so I can compare both clock apps side by side.

Bug?
If you switch off automatic update and change the time manually, then Save; the application crashes.

Bug?
Even tho I have set the location to London, World Clocks shows Local time as Cardiff.

Missing?
Non-local items in World Clocks cannot be clicked on to show World Clock Details including the map etc.
Also clicking on Local time in World Clocks should resolve to "Adjust Date and Time"

Missing?
The glow around the buttons on clicking is not there.
Useful to provide positive feedback of pressing the screen/button.

Missing?
When setting alarm the original version remembers your last alarm time, worldclocks always shows current time.
(Not a problem for me)

Missing?
When selecting repeat in alarm original version shows full day name 'Wednesday' where as worldclock shows 'Wed' for example.
(Again not a problem, just looks odd when you are used to the original)

Hope this helps.

ade 2012-07-15 06:31

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by sixwheeledbeast (Post 1237596)
Doesn't this mean worldclock ignores the system font.

I have my System font as Ubuntu and worldclock is Nokia Sans.
Stock clock used to be Ubuntu.

It would be nice to have worldclock follow the systems font.

Your are right.
Some how, in my memories, the font was always Nokia Sans.
But that is not true. Not in the stock clock and was not in the replacement clock. It should indeed adapt to the theme font.

I will revert this change later.

ade 2012-07-15 10:31

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by sixwheeledbeast (Post 1237602)
Bug?
If you switch off automatic update and change the time manually, then Save; the application crashes.

I cannot reproduce this...

Quote:

Bug?
Even tho I have set the location to London, World Clocks shows Local time as Cardiff.
I can set London or Cardiff and do not see a difference with the stock clock for that matter. Can you give some additional info?

Quote:

Missing?
Non-local items in World Clocks cannot be clicked on to show World Clock Details including the map etc.
Also clicking on Local time in World Clocks should resolve to "Adjust Date and Time"
The absence of the map has been mentioned before. It won't be included by me. The details screen is also absent. It does not add much extra in my opinion, as does the possibility to click on localtime in the worldclock screen.

Quote:

Missing?
The glow around the buttons on clicking is not there.
Useful to provide positive feedback of pressing the screen/button.
I think it is harder to achive in QT. Not my intention to change this.

Quote:

Missing?
When setting alarm the original version remembers your last alarm time, worldclocks always shows current time.
(Not a problem for me)
I think the replacement clock approche is more convenient. The last alarm time not interesting most of the time, often you want to set an alarm an hour or so from now.

Quote:

Missing?
When selecting repeat in alarm original version shows full day name 'Wednesday' where as worldclock shows 'Wed' for example.
(Again not a problem, just looks odd when you are used to the original)
The stock clock uses full daynames, and as soon as too many days are selected for repeat, it switches to short daynames. The replacement clock always shows the short daynames. I think you will get used to that soon. I could have a look at it though.

And before it is reported as a difference :) : the replacement clock also shows the year in the worldclock screen, the stock clock does not. Also: the stock clock shows a clock picture with the time in the worldclock screen, the replacement clock does not.

It is not going to be a one on one copy of the original, but should have a very comparable experience in my opinion.

Thanks for your report, sixwheeledbeast.

sixwheeledbeast 2012-07-15 11:31

Re: N900 clock replacement [continued]
 
2 Attachment(s)
Quote:

Originally Posted by ade (Post 1237731)
I cannot reproduce this...

Upon first installation last night I reproduced this 6/6 times, now I can't make it happen I have no idea why?

Although in addition I have noticed if you select your timezone from adjust date and time and click done then save the application disappears to.

Anything I can do to to help solve let me know

Quote:

Originally Posted by ade (Post 1237731)
I can set London or Cardiff and do not see a difference with the stock clock for that matter. Can you give some additional info?

See Screenshots
The default clock only shows local time but I like your feature.

Quote:

Originally Posted by ade (Post 1237731)
The absence of the map has been mentioned before. It won't be included by me. The details screen is also absent. It does not add much extra in my opinion, as does the possibility to click on localtime in the worldclock screen.

Agreed

Quote:

Originally Posted by ade (Post 1237731)
I think it is harder to achive in QT. Not my intention to change this.

Shame I think it makes a huge difference, but I understand.

Quote:

Originally Posted by ade (Post 1237731)
I think the replacement clock approach is more convenient. The last alarm time not interesting most of the time, often you want to set an alarm an hour or so from now.

Agreed

Quote:

Originally Posted by ade (Post 1237731)
The stock clock uses full daynames, and as soon as too many days are selected for repeat, it switches to short daynames. The replacement clock always shows the short daynames. I think you will get used to that soon. I could have a look at it though.

Cool, did notice that they go short when not enough room.
I could get used to it, if not changed.

Quote:

Originally Posted by ade (Post 1237731)
And before it is reported as a difference :) : the replacement clock also shows the year in the worldclock screen, the stock clock does not. Also: the stock clock shows a clock picture with the time in the worldclock screen, the replacement clock does not.

It is not going to be a one on one copy of the original, but should have a very comparable experience in my opinion.

I understand. It is nice to have a fresh tester look over a project. The comments were meant to be constructive :)

I was only pointing out missing items not changes/extra features.

Not bothered about the little clock picture, never used it so didn't realise it was missing.

Quote:

Originally Posted by ade (Post 1237731)
Thanks for your report, sixwheeledbeast.

Anytime :D

ade 2012-07-15 16:26

Re: N900 clock replacement [continued]
 
timezone change:
What I do see is that the replacement clock goes to the background then a new timezone is choosen. But it does not crash or something.
If you can reproduce a crash, see if there is any terminal output after starting the clock using /usr/bin/worldclock

cardiff/london timezone:
I can reproduce it now. A bit odd, but the timezone itself is the same (for now). Gonna have a look at it.

sixwheeledbeast 2012-07-15 16:47

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1237828)
timezone change:
What I do see is that the replacement clock goes to the background then a new timezone is choosen. But it does not crash or something.
If you can reproduce a crash, see if there is any terminal output after starting the clock using /usr/bin/worldclock

cardiff/london timezone:
I can reproduce it now. A bit odd, but the timezone itself is the same (for now). Gonna have a look at it.

Thanks all lot.

The timezone issue doesn't crash, it get minimized as you say.
Sorry if I didn't explain that correctly.

This is different from the issue when changing the time.
Annoyingly still can't reproduce it.
I will try to reproduce this run from a terminal if possible and let you know to output.

Oddly it's not just Cardiff my Local time is now London on one and Belfast on the other.
This happened after changing to USA time closing the application and then changing back to London.
It's something to do with the City's in this same timezone as London?

ade 2012-07-15 21:35

Re: N900 clock replacement [continued]
 
The local timezone city issue should be tackled.

The replacement clock choose the local city based on the current timezone.
In case of timezone "Europe/London", it matched 3 cities (Cardiff, Edinburgh and London itself), and would pick the city first alphabetically.
I now base the local city on the info stored in gconf (based on city-id).

Will revert the theme font change and look at some other things addressed in the comming week. But if you want to test the local city fix, the downloadable file is refreshed.

sixwheeledbeast 2012-07-16 07:19

Re: N900 clock replacement [continued]
 
Thanks that's great.

I have a request if possible.
Any chance of having UTC as a timezone in world clocks?

ade 2012-07-16 08:08

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by sixwheeledbeast (Post 1238085)
Thanks that's great.

I have a request if possible.
Any chance of having UTC as a timezone in world clocks?

I once introduced it :) :
http://talk.maemo.org/showpost.php?p...&postcount=100
And then I reverted that for reasons mentioned here:
http://talk.maemo.org/showpost.php?p...&postcount=105

marmistrz 2012-07-16 08:53

Re: N900 clock replacement [continued]
 
I'm experiencing a strange problem.
Even though the hour is 10:44 right now, N900 shows 8:44.
What's more every city in the world seems to be GMT+0 (London), no matter whether it's Warsaw, Kyiv, London, Brasilia or Honolulu.
I'm using libc6 2.10 from this thread: http://talk.maemo.org/showpost.php?p...&postcount=105


All times are GMT. The time now is 15:19.

vBulletin® Version 3.8.8