maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] binaryclock (https://talk.maemo.org/showthread.php?t=66964)

Wonko 2010-12-13 21:02

[Announce] binaryclock
 
Binary Clock is a desktop / homescreen widget that uses a binary representation for displaying the current time.
Currently, two different "styles" are available: "classical" binary display or display as binary coded decimal (BCD).

The single bits are displayed as "LEDs".
Well, at least they should look like LEDs.
The LED color can be freely chosen.

Version 0.1.0-1 is available in extras-devel.

Bratag 2010-12-13 21:07

Re: [Announce] binaryclock
 
Quote:

Originally Posted by Wonko (Post 896134)
Binary Clock is a desktop / homescreen widget that uses a binary representation for displaying the current time.
Currently, two different "styles" are available: "classical" binary display or display as binary coded decimal (BCD).

The single bits are displayed as "LEDs".
Well, at least they should look like LEDs.
The LED color can be freely chosen.

Version 0.1.0-1 is available in extras-devel.

Awesome. Perhaps a screenshot?

MINKIN2 2010-12-13 21:28

Re: [Announce] binaryclock
 
Ditto

Screenies plz :D

Wonko 2010-12-13 21:45

Re: [Announce] binaryclock
 
2 Attachment(s)
There you go. ;)

Edit:
The first image shows the "classical" binary display: seconds at the bottom, minutes in the middle and hours at the top.
The least significant bits (2 to the power of 0) are at the right.

The second image shows the BCD version.
Here, the single decimal digits are shown from left to right (hh:mm:ss).
The least significant bits are at the bottom.

MINKIN2 2010-12-13 21:54

Re: [Announce] binaryclock
 
Looking cool and I have installed it ok, but how do you launch it?

I can't find a launch icon

vir3us 2010-12-13 21:56

Re: [Announce] binaryclock
 
I am thankful for all these apps/widgets but why do we need things like these when you can allready see the time in status bar. Please dont shoot me.

Wonko 2010-12-13 21:58

Re: [Announce] binaryclock
 
Quote:

Originally Posted by MINKIN2 (Post 896184)
I can't find a launch icon

It's a widget.
Just tap anywhere in your screen (not on any icon or present widget) and then open the desktop-menu and select add widget.
There you should find "Binary Clock".

Wonko 2010-12-13 22:00

Re: [Announce] binaryclock
 
Quote:

Originally Posted by vir3us (Post 896185)
I am thankful for all these apps/widgets but why do we need things like these when you can allready see the time in status bar. Please dont shoot me.

:)
The ones who need it will know.
The ones who don't won't care.
;)

vir3us 2010-12-13 22:02

Re: [Announce] binaryclock
 
^^ Fair enough :)

jedi 2010-12-13 22:05

Re: [Announce] binaryclock
 
Quote:

Originally Posted by vir3us (Post 896185)
I am thankful for all these apps/widgets but why do we need things like these when you can allready see the time in status bar. Please dont shoot me.

It's a geek thing...

"There are only 10 types of people in the world: Those who understand binary, and those who don't"

MINKIN2 2010-12-13 22:10

Re: [Announce] binaryclock
 
Quote:

Originally Posted by Wonko (Post 896186)
It's a widget.
Just tap anywhere in your screen (not on any icon or present widget) and then open the desktop-menu and select add widget.
There you should find "Binary Clock".

Thanks, I have found it now. It was not there when I first checked but a quick reboot made it appear. Still can't launch it though :/

Nothing is happening when I select the widget. (God I sound like such a noob, lol)

TiagoTiago 2010-12-13 22:17

Re: [Announce] binaryclock
 
How many bits are used in UNIX time? Can you make a version that displays that raw value or would that be too many lights?

TiagoTiago 2010-12-13 22:41

Re: [Announce] binaryclock
 
Btw, i'm not finding it, what is it called in HAM?

MINKIN2 2010-12-13 22:46

Re: [Announce] binaryclock
 
Quote:

Originally Posted by TiagoTiago (Post 896216)
Btw, i'm not finding it, what is it called in HAM?

Hi Tiago

The widget is simply called Binary Clock. I had to reboot to get it to show up in the Add Widgets list of the desktop menu.

I still cannot launch it though? I would like to hear if you can and how if it works for you :)

Wonko 2010-12-13 22:51

Re: [Announce] binaryclock
 
Quote:

Originally Posted by MINKIN2
Nothing is happening when I select the widget.

Hmm, this sounds really strange.
Actually, there are only two files being installed.
Could you please check the following:
Code:

ls -al /usr/share/applications/hildon-home/binaryclock.desktop
should show something like
Code:

-rw-r--r--    1 root    root          199 Dec 13 21:20 /usr/share/applications/hildon-home/binaryclock.desktop
and:
Code:

ls -al /opt/maemo/usr/bin/binaryclock
should show something like
Code:

-rwxr-xr-x    1 root    root        69192 Dec 13 21:17 /opt/maemo/usr/bin/binaryclock

Quote:

Originally Posted by TiagoTiago
Btw, i'm not finding it, what is it called in HAM?

It's called "binaryclock" and is categorized as "desktop".

MINKIN2 2010-12-13 23:07

Re: [Announce] binaryclock
 
[QUOTE=Wonko;896223]Hmm, this sounds really strange.
Actually, there are only two files being installed.
Could you please check the following:
Code:

ls -al /usr/share/applications/hildon-home/binaryclock.desktop
should show something like
Code:

-rw-r--r--    1 root    root          199 Dec 13 21:20 /usr/share/applications/hildon-home/binaryclock.desktop
and:
Code:

ls -al /opt/maemo/usr/bin/binaryclock
should show something like
Code:

-rwxr-xr-x    1 root    root        69192 Dec 13 21:17 /opt/maemo/usr/bin/binaryclock
Everything seems to be in check
http://i178.photobucket.com/albums/w...reenshot13.png

I am still running on PR1.2 if that could be a problem?

TiagoTiago 2010-12-13 23:39

Re: [Announce] binaryclock
 
I though HAM always refreshed the data when you closed and opened it again, aparently that isn't the case, i had to explicitly click on "Refresh" in order to get it to show; and i didn't had to reboot to see it, it went straight to the last home screen i had switched to after the installation was done.

Wonko 2010-12-14 20:32

Re: [Announce] binaryclock
 
Quote:

Originally Posted by MINKIN2 (Post 896232)
I am still running on PR1.2 if that could be a problem?

Well, this is at least a difference to my setup here.
Though, I wonder why PR1.2 should cause such an issue.
Maybe someone else who still has a PR1.2 installation could confirm this?

Wonko 2010-12-14 20:33

Re: [Announce] binaryclock
 
I just uploaded version 0.2.0 to extras-devel.
With this version you can adjust the size and the "border" of the LEDs.
Furthermore, I plan to release this version for "common desktop" Linux distributions and even Windows as well.

MINKIN2 2010-12-16 12:21

Re: [Announce] binaryclock
 
Has anyone else with PR1.2 had any problems with this?

I have also tried to reinstall the newer version but still no change, worth a try I though? :(

It really does look like a cool widget, I have always like binary clocks.

TiagoTiago 2010-12-16 18:37

Re: [Announce] binaryclock
 
Did anyone else notice the binary clock still eating processor time even when its homescreen isn't selected and even when you have other programs in focus?

lfkfe 2010-12-16 23:00

Re: [Announce] binaryclock
 
It shouldn't be much problem fixing it.

TiagoTiago 2010-12-17 00:40

Re: [Announce] binaryclock
 
Btw, i got an idea for a new feature (besides my request for UNIX time binary), how about adding a GUI for customizing the images?

I imagine it could be kinda like this:

* One slot for the background image and one slot for a foreground overlay

And for the LEDs (these settings would be the same for each individual LED)

* A background image

* A foreground image

* An image of the LED turned off (would go in the between the previous two

* An image of the LED turned on (positioned like the previous), to be blended using normal blending

* An image of the LED turned on (on top of everything) to be blended using additive blending

Add a tinting option (a color picker, with saturation and brightness parameters included, not just hue) for each layer and a checkbox to lock the tintings together. And if possible add an option to toggle between regular tinting (which transforms a grayscale from black to white into from black to color) and "mids tinting" (that turns a grayscale from black to white into from black to color to white), i'm not sure what is the right name for the second mode, for each layer.

Using PNG you can have gradual transparency, good for compositing; and with a few formats (including PNG) you can have a fully transparent image for any slot you don't wanna use.

222 2010-12-17 22:10

Re: [Announce] binaryclock
 
@Wonko

could you add an option for hiding "second" digits ? (for battery saving)

Wonko 2010-12-18 19:21

Re: [Announce] binaryclock
 
Just uploaded version 0.3.0 to extras-devel.
This version pauses the clock when the homescreen is changed or the screen is locked.

epitaph 2010-12-18 19:38

Re: [Announce] binaryclock
 
### Feature request ###

What about a gray-code clock!? Too complicated... there is even a gray-code solver on iphone.

TiagoTiago 2010-12-19 03:52

Re: [Announce] binaryclock
 
What about when you have a program in focus instead of the homescreen?

Wonko 2010-12-19 10:54

Re: [Announce] binaryclock
 
Quote:

Originally Posted by TiagoTiago (Post 899754)
What about when you have a program in focus instead of the homescreen?

Then the clock pauses/suspends as well.
Actually, the clock should always be suspended when it changes from visible to invisible and be resumed when it becomes visible again.

Wonko 2010-12-19 16:30

Re: [Announce] binaryclock
 
Just in case you want binaryclock also for your desktop you can grab it from sourceforge:
http://sourceforge.net/projects/qbin...files/Releases
Note: the desktop version is named "Q Binary Clock".

theonelaw 2010-12-19 22:47

Re: [Announce] binaryclock
 
Quote:

Originally Posted by TiagoTiago (Post 898459)
Btw, i got an idea for a new feature (besides my request for UNIX time binary), how about adding a GUI for customizing the images?.

I imagine it could be kinda like this:

* One slot for the background image and one slot for a foreground overlay

And for the LEDs (these settings would be the same for each individual LED)

* A background image

* A foreground image

* An image of the LED turned off (would go in the between the previous two

* An image of the LED turned on (positioned like the previous), to be blended using normal blending

* An image of the LED turned on (on top of everything) to be blended using additive blending

Add a tinting option (a color picker, with saturation and brightness parameters included, not just hue) for each layer and a checkbox to lock the tintings together. And if possible add an option to toggle between regular tinting (which transforms a grayscale from black to white into from black to color) and "mids tinting" (that turns a grayscale from black to white into from black to color to white), i'm not sure what is the right name for the second mode, for each layer.

Using PNG you can have gradual transparency, good for compositing; and with a few formats (including PNG) you can have a fully transparent image for any slot you don't wanna use.

I also have an interest in the Unix time idea :)
( Many years ago i wrote a windows and a java app for a similar
clock which is a version of a Unix clock)

I downloaded from sourceforge version 0.4.0
to have a look through this but it is a binary blob.

I have a desire to put such a creature into my locales,
but no joy there as time locales in the n900 have
some things going on I cannot seem to get past just yet.:(

Wonko 2010-12-19 23:30

Re: [Announce] binaryclock
 
Quote:

Originally Posted by theonelaw (Post 900163)
I downloaded from sourceforge version 0.4.0
to have a look through this but it is a binary blob.

The full source code (Binary Clock and the desktop version Q Binary Clock) is available at:
https://garage.maemo.org/projects/binaryclock

If you build it on a Linux or Windows machine you will simply end up with the Q Binary Clock version.
Actually, I differentiate between Maemo and "Desktop" version with quite a number of ifdefs.

If you are interested in coding your own binary widgets the BinaryDisplayWidget base class and its subclasses Horizontal- and VerticalBinaryDisplayWidget are probably the most interesting ones.
As you will also see, I am currently drawing the LEDs "by hand" using QPainter instead of using image files.
The reason for this is that this solution promises to scale without quality loss.

theonelaw 2010-12-20 00:51

Re: [Announce] binaryclock
 
Quote:

Originally Posted by Wonko (Post 900188)
The full source code (Binary Clock and the desktop version Q Binary Clock) is available at:
https://garage.maemo.org/projects/binaryclock

If you build it on a Linux or Windows machine you will simply end up with the Q Binary Clock version.
Actually, I differentiate between Maemo and "Desktop" version with quite a number of ifdefs.
...

Thanks for that, I will check it out. :D
I have a different need - very niche-oriented,
perhaps only of interest to myself and at most one or two others
on this planet. :cool:

Wonko 2010-12-20 09:08

Re: [Announce] binaryclock
 
Quote:

Originally Posted by theonelaw (Post 900219)
Thanks for that, I will check it out. :D
I have a different need - very niche-oriented,
perhaps only of interest to myself and at most one or two others
on this planet. :cool:

If you want to compile Binary Clock for Maemo you need to download qmaemo5homescreenadaptor.cpp and qmaemo5homescreenadaptor.h from http://qt.gitorious.org/qt-labs/maemo5-homescreen and change qmaemo5homescreenadaptor.cpp as described in http://talk.maemo.org/showthread.php?t=67151.

By the way, what kind of exotic use-case do you have, if I may ask. ;)

Wonko 2010-12-20 10:46

Re: [Announce] binaryclock
 
Alright,
just uploaded version 0.4.0 to extras-devel.
With this version you have the choice whether you want to display seconds or not.

ndi 2010-12-20 11:43

Re: [Announce] binaryclock
 
Quote:

Originally Posted by jedi (Post 896192)
It's a geek thing...

"There are only 10 types of people in the world: Those who understand binary, and those who don't"

There are 10 types of people in the world. Those who know binary, those who don't and those who confuse it with the Gray code.

----------

Also, bug: Mine displays GMT time instead of local, that is, time - 2h. 0.4.0 here

Wonko 2010-12-20 14:16

Re: [Announce] binaryclock
 
Quote:

Originally Posted by ndi (Post 900496)
Also, bug: Mine displays GMT time instead of local, that is, time - 2h. 0.4.0 here

Just uploaded version 0.4.1 to extras-devel.
This should fix the issue.

ndi 2010-12-20 14:47

Re: [Announce] binaryclock
 
--deleted--

Rebooting fixed it, it is now correctly showing local time.

Wonko 2010-12-20 20:11

Re: [Announce] binaryclock
 
Just uploaded version 0.5.0 to extras-devel.
With this version you can use two new display options: 'Unix Time' and 'Unix Time "BCH"'.

Unix Time is simply the Unix time stamp shown as 32 bit integer.
Well, to be accurate, it is not 100% exactly the Unix time, which is supposed to be a signed integer, but it is shown as unsigned integer.
The time is represented as four bytes on top of each other (most significant byte at the top).
The most significant bits are at the left.

Unix Time "BCH" displays the Unix time as well but uses a "Binary Coded Hexadecimal" representation.
Basically, it shows the nibbles (the hexadecimal digits) via a binary representation from left to right.
The most significant digit is located at the left.
The most significant bits are at the top.

For these two display options disabling the "Show Seconds" option simply omits the least significant byte from being drawn.

ndi 2010-12-20 23:05

Re: [Announce] binaryclock
 
I think something's broken in the resizing in 0.5.0, the LEDs are cut off. To avoid this, I had to increase space between and lower LED size, but not they are quite small and the effect is lost.

I have 22 LED size and 14 border. Lowering border exhibits cut off and increasing LED size puts one LED over the other.

Wonko 2010-12-20 23:28

Re: [Announce] binaryclock
 
Quote:

Originally Posted by ndi (Post 900918)
I have 22 LED size and 14 border. Lowering border exhibits cut off and increasing LED size puts one LED over the other.

What clock style are you using?
As a quick and dirty workaround could you try increasing both LED size and border?

Actually, I tried LED size of 22 and border 14 for all clock styles, but I cannot reproduce the issue here.
Any further information about your particular setup would help.

There are some sizing issues but I only experienced these with smaller values for LED size and border.


All times are GMT. The time now is 05:41.

vBulletin® Version 3.8.8