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)

ade 2012-10-31 08:21

Re: N900 clock replacement [continued]
 
I didn't make two versions just for fun.
As the clock was going to be incorporated in CSSU, I didn't want to have a new feature to interfere in that process.

In retrospect, I could say I could have spared me that trouble.

artpra 2012-10-31 08:47

Re: N900 clock replacement [continued]
 
@ade,
it`s a usefull option to have and I`m using it more and more - so please leave it included. For me it`s the essence of CSSU - not only to mimic stock app with portrait support added, but to expand its functionality. Therefore I would leave development of "without date on new alarm function" version, leading to only two maintained versions (non_thumb and thumb).

My suggestion was only aimed at possible change of date button text label from full month name to full day name.

Estel 2012-11-01 01:23

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1287956)
I didn't make two versions just for fun.
As the clock was going to be incorporated in CSSU, I didn't want to have a new feature to interfere in that process.

In retrospect, I could say I could have spared me that trouble.

Sure, I remember reasoning - just like you summarized it, I'm talking about current situation.

Quote:

Originally Posted by artpra (Post 1287967)
@ade,
it`s a usefull option to have and I`m using it more and more - so please leave it included. For me it`s the essence of CSSU - not only to mimic stock app with portrait support added, but to expand its functionality.

Sadly, due to maintainer's decisions, now essence of CSSU seem to be stagnation (not talking about -thumb fork and its maintainer). Don't want to go through this matter again, so enough to say, that it's reason why you won't see worldclock (or busybox-power, or...) in CSSU in foreseeable future, with or without date support.

/Estel

//Edit

*ghastly sound in the wind* fossclock into repooooos...

knarf 2012-11-04 05:04

Re: N900 clock replacement [continued]
 
1 Attachment(s)
Current "stable" download:
http://dl.dropbox.com/u/42147901/worldclock.zip (version: Sep 27 19:57 GMT)

when using this version going from portrait to landscape looks like this

ade 2012-11-04 08:26

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by knarf (Post 1289715)
Current "stable" download:
http://dl.dropbox.com/u/42147901/worldclock.zip (version: Sep 27 19:57 GMT)

when using this version going from portrait to landscape looks like this

Look likes some redrawing issue...
I did some testing with this version now, and it rotates and adapts fine.
Furthermore I activated forced rotation, and then the rotation is also working as expected.

I also have had no complaints by others after the last update. So if others can share their experience about the latest default clock on this matter...

Did you already reboot your device?

sixwheeledbeast 2012-11-04 08:32

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1289760)
Look likes some redrawing issue...
I also have had no complaints by others after the last update. So if others can share their experience about the latest default clock on this matter...

Never had this before with worldclock, forced-rotation on.
I have however had this with Open Media Player on the Now Playing screen. It that case restarting OMP did the trick.

knarf 2012-11-04 13:50

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1289760)
Look likes some redrawing issue...
I did some testing with this version now, and it rotates and adapts fine.
Furthermore I activated forced rotation, and then the rotation is also working as expected.

I also have had no complaints by others after the last update. So if others can share their experience about the latest default clock on this matter...

Did you already reboot your device?

had the problem, rebooted and it was still acting the same.

ade 2012-11-04 14:15

Re: N900 clock replacement [continued]
 
The chance it is a worldclock issue is unlikely in my view...
  • How does Open Media Player behave in terms of rotating (also a Qt app) ?
  • Any warnings when starting worldclock from the X-terminal (/usr/bin/worldclock)?
  • What's your configuration (kernel and/or CSSU version etc)?

sixwheeledbeast 2012-11-04 15:22

Re: N900 clock replacement [continued]
 
Remove the binary and reinstall before messing about.
If after you have re-installed and rebooted if you still have the issue do as ade above.

knarf 2012-11-05 13:41

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1289901)
The chance it is a worldclock issue is unlikely in my view...
  • How does Open Media Player behave in terms of rotating (also a Qt app) ?
  • Any warnings when starting worldclock from the X-terminal (/usr/bin/worldclock)?
  • What's your configuration (kernel and/or CSSU version etc)?

dont have omp installed
no warnings when running from terminal
cssu testing 5.1, no kernel power

ade 2012-11-05 15:39

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by knarf (Post 1290549)
dont have omp installed
no warnings when running from terminal
cssu testing 5.1, no kernel power

I am somewhat clueless for now. My suspicion that it is caused by some malfunctioning (Qt) libraries remains.
Would you consider installing OMP for a comparison test? As they are somewhat comparable regarding the use of Qt/C++ and the use of rotation. And sixwheeledbeast had seen it there (was solved by a restart).
You can just remove OMP after the rotation test (but I would keep it :D), it does not conflict with the stock player.

sixwheeledbeast 2012-11-05 18:41

Re: N900 clock replacement [continued]
 
Did you try reinstalling the worldclock binary?

knarf 2012-11-06 01:08

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1290617)
I am somewhat clueless for now. My suspicion that it is caused by some malfunctioning (Qt) libraries remains.
Would you consider installing OMP for a comparison test? As they are somewhat comparable regarding the use of Qt/C++ and the use of rotation. And sixwheeledbeast had seen it there (was solved by a restart).
You can just remove OMP after the rotation test (but I would keep it :D), it does not conflict with the stock player.

no problems with omp (its great by the way)
could it be related to my transition.ini file or because i have my desktop set to scroll vertically in portrait mode?

Quote:

Originally Posted by sixwheeledbeast (Post 1290715)
Did you try reinstalling the worldclock binary?

reinstalled it, rebooted phone 3 times just to be sure, even downloaded and installed it again.

knarf 2012-11-06 01:23

Re: N900 clock replacement [continued]
 
2 Attachment(s)
i think the portrait view is being displayed alongside the landscape when i switch from portrait to landscape. if i leave one selected in portrait it shows the grey overlay when switched back to landscape.
also notice the scroll bar.

ade 2012-11-06 20:27

Re: N900 clock replacement [continued]
 
One good thing is you have your Mediaplayer upgraded now :)

I tested with vertical scroll in portrait mode, it still worked fine.

If we keep the focus on the transactions.ini for now:
Your could revert to the default values temporary (backup your transactions.ini and set the default values using CSSU features). Or you could give your transactions.ini to me, so I can test it on my phone.

P.s. and can you actually scroll the screen in landscape once the scrollbar is there?

knarf 2012-11-07 00:48

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

Originally Posted by ade (Post 1291204)
One good thing is you have your Mediaplayer upgraded now :)

P.s. and can you actually scroll the screen in landscape once the scrollbar is there?

Not able to scroll once the scrollbar is present
The transition file is attached.

ade 2012-11-07 20:38

Re: N900 clock replacement [continued]
 
@Knarf,

Installed your transactions.ini. It did not cause any issues when rotating the replacement clock the way you described :(

Things that come to mind are "reflash", but I can understand you are not waiting for such drastic measures.

I can't replay it in your exact configuration as I am using thumb2, but I also fear I won't hit your issue as I try further, as nobody else has ever reported this.

I hate to say it, but If no one else can give me a clue, I'm afraid I can't help you until I get some brainwave about a possible cause :o

sixwheeledbeast 2012-11-07 23:00

Re: N900 clock replacement [continued]
 
Re-install Qt libs?

knarf 2012-11-08 02:36

Re: N900 clock replacement [continued]
 
my problem has something to do with the background being redrawn incorrectly, it even does it without going to portrait. it works perfectly in portrait but in landscape it fails. I noticed when i turn on seconds it looks all messed up even without going to portrait. it appears as though whatever was on the screen before is being used as the background.
one last thing i want you to try. delete the clock background and see if you get my problem. i think that may be it. i deleted the clock background image (instead of replacing it with a blank one)
may not be qt lbs as omp works just fine

knarf 2012-11-08 03:01

Re: N900 clock replacement [continued]
 
I changed themes to one with a clock background and it solved the problem.

ade 2012-11-08 12:35

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by knarf (Post 1291658)
I changed themes to one with a clock background and it solved the problem.

I assumed you had the background turned off, but you used some theme with no background I now read.

Then you could also try to set
Code:

Background=false
in /home/user/.config/worldclock/worldclock.conf
and see if that works with your former theme.

Edit: I can confirm that a missing background will distort the screen when rotation, and setting Background to false in that case will prevent it.
In case of a background, the screen is drawn in a diffent way.

ade 2012-11-08 22:41

Re: N900 clock replacement [continued]
 
New versions are available in the opening post.
  • When a clock background is set active and missing, it will now act as if no background is set, to prevent screen distortion
  • The filebrowser to select a custom alarmtone will now resize correctly when rotating from landscape to portrait

Edit:
latest updates:
  • adapted worldclock so it cannot start multiple occurrences of the date/time applet in the worldclock and main screen
  • City list in worldclock section in portrait mode made somewhat larger
  • Added 30 minutes as snooze interval

ade 2013-01-06 18:36

Re: N900 clock replacement [continued]
 
For people that installed, or are going to install the latest Qt from cssu-devel: please download a new version of the replacement clock from the opening post.

The former replacement clock versions will otherwise stay in landscape mode, due to a false clearing of a windowflag being used (thanks to Arcean for pointing that out).

knarf 2013-01-15 20:01

Re: N900 clock replacement [continued]
 
if i set a one time alarm and leave the window visible, when i stop the alarm, the screen shows the alarm as active until i exit the alarm clock and enter it again.

ade 2013-01-15 20:39

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by knarf (Post 1315240)
if i set a one time alarm and leave the window visible like in the screenshot then when i stop the alarm, the screen shows the alarm as active until i exit the alarm clock and enter it again.

Hey knarf,

I must say I am aware of this for a long time. Chances that you have that particular window open during an alarm are slim, and most will realize it is related to the current alarm.

Nevertheless I will see if I can do something about it, as long as it does not lead to some complex solution.

ivgalvez 2013-01-16 08:23

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1311610)
For people that installed, or are going to install the latest Qt from cssu-devel: please download a new version of the replacement clock from the opening post.

The former replacement clock versions will otherwise stay in landscape mode, due to a false clearing of a windowflag being used (thanks to Arcean for pointing that out).

It would be nice to be able to install worldclock form CSSU devel too (for power users of course), this way it would be easier to notice updates.

ade 2013-01-16 09:14

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ivgalvez (Post 1315367)
It would be nice to be able to install worldclock form CSSU devel too (for power users of course), this way it would be easier to notice updates.

I absolutely agree with you.
But when we are talking about CSSU in particular, I do not have any permissions out there.
Like you can see in http://mg.pov.lt/maemo-ssu-irclog/%2...09-04T20:47:39 , the admin of the CSSU repo (Merlin1991) said he would take care of the packaging. That's more then 4 month ago now, and I have seen no activity on this matter.

You can try to poke Merlin1991 once again. But I am more and more tempted to do my own packaging and put it in extras-devel once it is up and running again.

pali 2013-01-16 13:21

Re: N900 clock replacement [continued]
 
@ade: Only debian packaging is missing?? If yes, I can do it without problem in some minutes. Just ping me on IRC.

ade 2013-01-16 23:09

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by knarf (Post 1315240)
if i set a one time alarm and leave the window visible, when i stop the alarm, the screen shows the alarm as active until i exit the alarm clock and enter it again.

Fix: the worldclock alarm list is now updated (when displayed on the screen) as soon as an alarm goes off. The downloads in the first post are updated with a new version.

BTW: you did not have to exit the clock in the old situation, just going back to the main screen and then to the alarmlist would have refreshed the list.


I also can inform you that Pali is now cleaning up some code and will create a deb file after that, what will hopefully end up in some repository soon :)

Edit::
Pali has done some minor changes and created deb control files.
One of the changes by Pali resulted in not being able to start the "date/time" applet anymore. Pali said he would have a further look at that.

Edit 2: current status:
Pali has fix it again using a workaround. Further deb creation/testing can now be done.

artpra 2013-02-12 08:18

Re: N900 clock replacement [continued]
 
@ade
I feel obliged to report: I`m using thumb version worldclock with date support version since like forever and no problems found (and oh sooo I tried to find one). Nada.

I still hope for it to reach repos - it`s silly how long we are waiting for it and copypasting binary instead.

ade 2013-02-12 09:52

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by artpra (Post 1322574)
@ade
I feel obliged to report: I`m using thumb version worldclock with date support version since like forever and no problems found (and oh sooo I tried to find one). Nada.

I still hope for it to reach repos - it`s silly how long we are waiting for it and copypasting binary instead.

Good to hear you found no issues so far with using specific dates for alarms. Same goes for me so far :)

As I updated the former post, Pali did some minor technical changes and preparations for packaging, and I already build my own. So next update there will be a package, not sure in some repository already.

Right now I am adding the screen that gives you more detailed info on the city timezone (the screen you get when pressing an already added city in the stock workclocks screen). It is done for the most part, so I hope to have an update within a two weeks or so. It will lack the graphic map representation as found in the stock clock.

sixwheeledbeast 2013-02-12 12:06

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by artpra (Post 1322574)
@ade
I feel obliged to report: I`m using thumb version worldclock with date support version since like forever and no problems found (and oh sooo I tried to find one). Nada.

I also now feel obliged to report the same for non-thumb with date support :)

ade 2013-02-12 13:56

Re: N900 clock replacement [continued]
 
I would like to report a bug :D

All GMT offsets not equal to a full hour get ":30" added. This is correct in a lot of cases, but certainly not all. There are also timezones like Chatham, New Zealand that have GMT +13:45, and not +13:30. The time is displayed correctly, the GMT offset is not.

Edit: okay, fixed for the next release :)

ade 2013-02-13 20:01

Re: N900 clock replacement [continued]
 
Latest changelog (0.6-1):
  • some internal improvements by Pali
  • fixed some incorrect GMT offsets
  • tapping on a city in your 'selected worldclocks' screen will now open a new window with details and the option to remove the city using the menu (stock clock like)

And ... we have debian installation packages. Hope it all works fine, see the opening post for the downloads.

Wikiwide 2013-02-13 22:26

Re: N900 clock replacement [continued]
 
Quick reply...
Does the new worldclock read list of world clocks from the 'original' one? In either case, in which file it might be stored? Just curiosity, because the only world clock remaining is the one of my own time-zone.
Thank you.
Best wishes.
_________________
Per aspera ad astra...

ade 2013-02-13 23:01

Re: N900 clock replacement [continued]
 
It uses it`s own list, also because I have no idea where the stock clock stores it's non-local cities.
So you just have to re-add them. Not much work, but thanks for pointing it out.

sixwheeledbeast 2013-02-13 23:41

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1322926)
It uses it`s own list, also because I have no idea where the stock clock stores it's non-local cities.
So you just have to re-add them. Not much work, but thanks for pointing it out.

I am guessing replacement worldclock uses QSettings whereas the old one didn't.

I would think /home/user/.clock/wdb-user is the settings.
/usr/share/clock/wbd is the database.

Is there any chance of adding an option to remove the "alarm flag" from an alarm. I [don't like/have got used to] not seeing the alarm status symbol for my regular day to day alarms. This means I have to use alarmd for these tasks when I could use worldclock.

Thanks

Wikiwide 2013-02-14 04:54

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by sixwheeledbeast (Post 1322931)
I am guessing replacement worldclock uses QSettings whereas the old one didn't.

It's likely correct. The 'original' clock-ui wasn't written in Qt...
Quote:

Originally Posted by sixwheeledbeast (Post 1322931)
I would think /home/user/.clock/wdb-user is the settings.

Maybe. Only letter 'i' in the file, though. Strange format for settings.
Quote:

Originally Posted by sixwheeledbeast (Post 1322931)
/usr/share/clock/wbd is the database.

Sorry to disappoint, but it seems to be database of 396 cities for the world map, with geographic coordinates included. Though I wouldn't recommend using this file, unless it's proven to be open-source-licensed.
Quote:

Originally Posted by sixwheeledbeast (Post 1322931)
Is there any chance of adding an option to remove the "alarm flag" from an alarm. I [don't like/have got used to] not seeing the alarm status symbol for my regular day to day alarms. This means I have to use alarmd for these tasks when I could use worldclock.

Second this suggestion. Thank you.
Best wishes.
_________________
Per aspera ad astra...

ade 2013-02-14 07:28

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by sixwheeledbeast
I am guessing replacement worldclock uses QSettings whereas the old one didn't.

Yep, it uses a QSettings config file which is described in the wiki.

Quote:

Originally Posted by sixwheeledbeast
I would think /home/user/.clock/wdb-user is the settings.

I did not test it, but that file would make sense. My first impression is that is some binary file with citycodes in hex format. Not some standard (database) format.
As the current solution works fine, I see no reason to look into that further.

Quote:

Originally Posted by Wikiwide
Sorry to disappoint, but it seems to be database of 396 cities for the world map, with geographic coordinates included. Though I wouldn't recommend using this file, unless it's proven to be open-source-licensed.

It's not related that way. The replacement clock uses an API, described and provided by Nokia. That this API could use this file, has no direct relationship to the open source character of the replacement clock. If it just contains the map data, I will probably not use it anyway.


Quote:

Originally Posted by sixwheeledbeast
Is there any chance of adding an option to remove the "alarm flag" from an alarm. I [don't like/have got used to] not seeing the alarm status symbol for my regular day to day alarms. This means I have to use alarmd for these tasks when I could use worldclock.

Adding any new feature will likely break the translations, unless it can be provided by some other default translation file. I don't want to end up with a semi translated worldclock.
A solution for that would be to create and maintain our own translations, as the openmediaplayer project does. I sort of decided I do not want to go that way, just for one or two missing translations.

AapoRantalainen 2013-02-14 08:13

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by Wikiwide (Post 1322941)
Though I wouldn't recommend using this file, unless it's proven to be open-source-licensed.

Code:

dpkg -S /usr/share/clock/wdb
>libcityinfo0-0. Seems to be closed.

As Ade said using this file is legal. But redistribution and modifying/tuning not (e.g. wdb.new in http://www.webwizardry.net/~timeless/n900/clock/ ).


All times are GMT. The time now is 21:27.

vBulletin® Version 3.8.8