Notices


Reply
Thread Tools
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#331
Alright,
I just uploaded version 0.14.0 to extras-devel.
Besides fixing some minor issues this version adds:
- support for using custom images for drawing the digits,
- support for animated gifs,
- and a working twelve hour mode for the binary clock.

The "custom images" feature should work with any of the present "stock" clocks that write digits as text.
The "animated gifs" feature currently only works well with the "Decimal Clock".
For the animated gifs feature to work it is important that:
- the animated gifs do not loop,
- and the animation time is shorter than one second.
Overall the new functionality is still pretty experimental.
I'd appreciate if you report any bugs you find either here, or even better in the projects bugtracker.
The settings user interface is also not 100% correctly implemented yet: it displays "." and ".." as entries.
I'll fix this but I finally wanted to get this version out in the wild so that you can leave feedback about the new features.


With respect to the "main loop":
Actually, there is no real main loop in the code in the sense that you would see some "infinite loop" that sleeps for some time and keeps triggering the updates.
Instead I used gobject.timeout_add to add a timer which triggers the updates in intervals of one second.
If the show seconds option is false then the logic checks whether the value for minutes has changed to determine whether an update is needed.
This whole logic is in "/usr/lib/hildon-desktop/advanced-clock-plugin.py".

In the current code for handling animated gifs I also used gobject.timeout_add to "install" a timer which triggers the updates for the animations.
Actually, this could also be a possibility to get an animation done.
Though, you have to keep in mind that the animation should not loop (i.e., eventually finishes) and it does not run longer than one second.
Else, for those who really want a fast refresh for having animations all the time could change the refresh delay in the gobject.timeout_add calls in "/usr/lib/hildon-desktop/advanced-clock-plugin.py".
__________________
 

The Following 5 Users Say Thank You to Wonko For This Useful Post:
Posts: 281 | Thanked: 679 times | Joined on Feb 2010
#332
I just made an upgrade from 0.13.0 to 0.14.0 and...

... it does not startup anymore so no clock in the statusbar anymore.

Are there any clues to get it work again?
 

The Following User Says Thank You to cy8aer For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#333
Originally Posted by cy8aer View Post
I just made an upgrade from 0.13.0 to 0.14.0 and...

... it does not startup anymore so no clock in the statusbar anymore.

Are there any clues to get it work again?
I just uploaded version 0.14.1 to extras-devel which should fix the problem.

Edit: There was still a problem in packaging which affected the new functionality.
Edit 2: Well I was somewhat clumsy on packaging this time.
Hopefully, 0.14.5 is in a good shape.
__________________

Last edited by Wonko; 2011-01-31 at 00:11.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post:
Scottlfa's Avatar
Posts: 124 | Thanked: 38 times | Joined on Feb 2010 @ Gaffney, South Carolina, USA
#334
Mine did the same thing, fiddled with it for an hour or so then removed it. Reboot and old clocks back.
__________________
Need more apps for the N900?
Qole's Easy Debian lets you choose from some 25,000 precompiled packages running safely on top of Maemo!
 
Posts: 6 | Thanked: 2 times | Joined on Jul 2010
#335
Originally Posted by rhastdan View Post
flip-clock widget like the HTC anyone??
Try this: [Announce] Queen BeeCon Widget - Flipclock Widget
 

The Following User Says Thank You to tuxoutpost For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#336
If you experience issues with Advanced Clock Plugin please run the following as root and post the output here:
Code:
DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu
Edit:
As far as I can tell version 0.14.5 installs well.
Though, there still might be issues for others.
To help track down these issues please post the output as mentioned above.
__________________
 

The Following User Says Thank You to Wonko For This Useful Post:
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#337
Originally Posted by Wonko View Post
In the current code for handling animated gifs I also used gobject.timeout_add to "install" a timer which triggers the updates for the animations.
Actually, this could also be a possibility to get an animation done.
Though, you have to keep in mind that the animation should not loop (i.e., eventually finishes) and it does not run longer than one second.
Else, for those who really want a fast refresh for having animations all the time could change the refresh delay in the gobject.timeout_add calls in "/usr/lib/hildon-desktop/advanced-clock-plugin.py".
So I could just make a set doing up all the numbers something like this?
Attached Images
 
 

The Following 2 Users Say Thank You to skykooler For This Useful Post:
Posts: 188 | Thanked: 53 times | Joined on May 2010
#338
waiting patiently for a flip clock, :P
 
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#339
Originally Posted by porselinaheart View Post
waiting patiently for a flip clock, :P
working on it...
 

The Following User Says Thank You to skykooler For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#340
Originally Posted by skykooler View Post
So I could just make a set doing up all the numbers something like this?
Exactly, with the above mentioned limitations (animation time < 1 second and the animation has to be non-looping).
For an example of how things work look at the provided test-animated image set.

For animated images you need one animated image (animated gifs work, don't know about other animated formats) with the digit name, e.g. "1.gif" and another static/non-animated image showing the final frame of the animated image called, e.g. "1_static.gif" (the "_static" suffix is important).
This is important because the animation is only played for digits that have changed since the last update.

Also, I noticed there are currently some "issues" when using transparency.
I.e., the frames of an animation are drawn one onto another.
Hence, when later frames have transparent regions that had not been transparent in earlier frames the earlier frames will "shine through".
__________________
 

The Following User Says Thank You to Wonko For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:40.