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)

TiagoTiago 2010-12-20 23:41

Re: [Announce] binaryclock
 
awesome


paddingpadding

Wonko 2010-12-21 11:11

Re: [Announce] binaryclock
 
Quote:

Originally Posted by ndi (Post 900918)
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.

I just uploaded version 0.5.1 to extras-devel which should improve the sizing and spacing issue.
Could you please try if this version fixes your issue?

Still, I am not 100% satisfied with the placement of the clock inside the rounded rectangle.
Though, this version should avoid the "cut-off" problems you are experiencing.

ndi 2010-12-21 12:43

Re: [Announce] binaryclock
 
It's fixed in the new version.

I can't attach the old look because I can't post the ss, it contains private info. But if you are interested, I can edit the image and post when at home tonight.

Wonko 2010-12-21 12:59

Re: [Announce] binaryclock
 
Quote:

Originally Posted by ndi (Post 901242)
It's fixed in the new version.

I can't attach the old look because I can't post the ss, it contains private info. But if you are interested, I can edit the image and post when at home tonight.

Good to hear. :)
Well, as long as it's fixed it's fine for me. ;)
So, there is no need to send a screenshot.

Wonko 2010-12-21 14:18

Re: [Announce] binaryclock
 
Just uploaded version 0.6.0 which adds an option to display values as gray code.
Though, be aware that this looks best for displays which do the "complete cycle" from 0 to (2 to the power of n) - 1 (n being the number of digits).
Hence, this looks best for the two Unix Time displays.

For the other displays which display the local time there are "jumps" visible in which more than one LED changes.
E.g.: the seconds and minute displays perform such a "jump" when changing from 59 to 0.

apol657 2010-12-21 23:10

Re: [Announce] binaryclock
 
xD i broke a virtual clock...
i was expiremnting with the size and spacing and it became too big, and the settings icon is now out of reach... Is there a way to fix that?
thank you!

Wonko 2010-12-21 23:21

Re: [Announce] binaryclock
 
Quote:

Originally Posted by apol657 (Post 901697)
xD i broke a virtual clock...
i was expiremnting with the size and spacing and it became too big, and the settings icon is now out of reach... Is there a way to fix that?
thank you!

Try to execute the following as user in an xterm:
Code:

rm -rf /home/user/.config/Binary\ Clock
This should reset Binary Clock to its defaults.

apol657 2010-12-22 11:03

Re: [Announce] binaryclock
 
Thank you that fixed it :D

Wonko 2010-12-23 20:56

Re: [Announce] binaryclock
 
2 Attachment(s)
Alright,
this is for the adventurous:
I made a status area plugin which replaces the standard clock in the status area with a binary version.
Please be aware that this package is still a work in progress and hence may feature a number of pitfalls.

If you want to try it you can find the latest version in extras-devel.
The package is called "binaryclock-plugin".
Installing this will replace the standard clock with a binary version.
To get the standard clock back just uninstall binaryclock-plugin as usual via the application manager.

I'll open a dedicated "announce-thread" once I think this is mature enough to be released into the wild. ;)
So long, your comments are highly appreciated.
Note: a settings dialog is available via the status area menu.
Though, the settings are not stored yet.
Consequently, the changes are lost after, e.g., a reboot.

P.S.: Currently, somehow the uploaded package description and hence the package website is way messed up.
The application manager displays the description correctly, though.
I am working on getting this fixed.

Mentalist Traceur 2010-12-24 09:51

Re: [Announce] binaryclock
 
Question: Is the normal clock applet in the status bar open source? If not, I would use this as further benefit to my following feature request for the status bar version, though I think it's meritable enough in itself:

Also add normal 12 and 24 hour time displays. This would allow us users to switch casually to 12/24 hour and binary displays when desired without either A, editing the /etc/hildon-desktop/status-menu.plugins file, or B uninstalling and reinstalling the applet.

It also allows for the adding of the seconds on/off to the normal-numbers display. You could probably release the thing as "Advanced Clock Applet" or something (in the pattern of Advanced Power and Advanced Interface Switcher, but your app, your name, obviously). Possibly release both the simple Binary Clock, and the more feature-ladden version, IF you like the aesthetic of keeping them separate, or want the name of the more feature-ladden version to be more representative of the applet, without sacrificing the Binary Clock name. *Shrug*

At any rate, I am not pushing for getting this done now, because it can obviously wait. But I do think that in the long term, it would be great to see this clock go that way, because it makes it versatile enough that it can serve as a clock replacement for everyone who's not completely happy with the normal display, rather than just those who like the binary clock. (Don't get me wrong, I like it too, or I wouldn't have installed it. But I also like the versatility of being able to switch with the press of a settings option, and being able to have people not versed in binary read the time if I happen to let them fiddle with my phone. :P )

Also, quick second request: Recently MohammadAG came out with a mod for Hildon-Home and Hildon-Desktop that allowed you to open the status bar's menu from any application in portrait mode (by default, pressing on the status bar icons area does nothing in portrait mode). This allows some much greater versatility in the form of, say, turning flashlight on/off and adjusting brightness from Simple Brightness Applet when in portrait mode. However, while the status menu works wonderfully in portrait mode, most (scratch that - all that I use) applets are not themselves coded to work in both portrait and landscape. So, while your Binary Clock settings button appears in the status menu when it's brought up in portrait mode, pressing on it forces the entire screen into landscape, because that's the only mode the pop-up menu itself has.

Now, I've looked at the code and I am not well-versed in python enough to fully get what's going on, or how to do this, or else I'd try myself and submit a patch to you myself, so: I'm requesting that you add portrait support (maybe with auto rotation... probably ideal if it can auto rotate, but I'm sure someone out there won't like it) to the pop-up settings menu that comes out when you press the status menu Binary Clock button, if it's possible and Hildon itself doesn't impose some restriction on that.

At the same time, if you pull off the aforementioned pop-up menu from-status-menu-applet auto-rotation/portrait-support, that same python code would be helpful for both the Advanced Power and Advanced Interface Switcher applets, and Live Focus (the actual package name is something odd, but I know it's written in Python too) could use it, and I'm sure there's a bunch of other python status applets that would benefit from this when combined with the newly-emerged portrait mode status-menu usability.

Wonko 2010-12-24 19:25

Re: [Announce] binaryclock
 
Quote:

Originally Posted by Mentalist Traceur (Post 903357)
Question: Is the normal clock applet in the status bar open source?

Actually, I don't know whether it's open source or not.
But as I already started with this version in Python I prefer to extend my own version.
One of the benefits of Python as an interpreted language probably is that development and testing on the N900 itself is really straight forward. ;)

Quote:

Originally Posted by Mentalist Traceur (Post 903357)
Also add normal 12 and 24 hour time displays. This would allow us users to switch casually to 12/24 hour and binary displays when desired without either A, editing the /etc/hildon-desktop/status-menu.plugins file, or B uninstalling and reinstalling the applet.

Alright, I already have a more general version in development.
I'll open another thread for discussing this version.

Quote:

Originally Posted by Mentalist Traceur (Post 903357)
You could probably release the thing as "Advanced Clock Applet" or something (in the pattern of Advanced Power and Advanced Interface Switcher, but your app, your name, obviously).

That's indeed a good idea.
I'll call it "Advanced Clock Plugin".

Quote:

Originally Posted by Mentalist Traceur (Post 903357)
Possibly release both the simple Binary Clock, and the more feature-ladden version, IF you like the aesthetic of keeping them separate, or want the name of the more feature-ladden version to be more representative of the applet, without sacrificing the Binary Clock name. *Shrug*

Well, I'll focus my work on a single version for now.
This of course will be the advanced clock plugin.
I don't think it's worth to rip it apart and package things separately.

Quote:

Originally Posted by Mentalist Traceur (Post 903357)
Also, quick second request: Recently MohammadAG came out with a mod for Hildon-Home and Hildon-Desktop that allowed you to open the status bar's menu from any application in portrait mode (by default, pressing on the status bar icons area does nothing in portrait mode). This allows some much greater versatility in the form of, say, turning flashlight on/off and adjusting brightness from Simple Brightness Applet when in portrait mode. However, while the status menu works wonderfully in portrait mode, most (scratch that - all that I use) applets are not themselves coded to work in both portrait and landscape. So, while your Binary Clock settings button appears in the status menu when it's brought up in portrait mode, pressing on it forces the entire screen into landscape, because that's the only mode the pop-up menu itself has.

I'll add this to my to-do list.
Though, I don't know whether I find the time to implement this.

Quote:

Originally Posted by Mentalist Traceur (Post 903357)
Now, I've looked at the code and I am not well-versed in python enough to fully get what's going on, ...

Well, as you saw the code I think you noticed this project is in a very early stage.
In order to start the Advanced Clock Plugin I did a major refactoring of the code etc.
As a result the Advanced Clock Plugin is now dynamically extendable with custom clock styles. :)

Also not to forget: thanks a lot for the really helpful input Mentalist Traceur. :)

Edit: you can find the Advanced Clock Plugin thread under the following URL:
http://talk.maemo.org/showthread.php?p=903590

Mentalist Traceur 2010-12-25 04:46

Re: [Announce] binaryclock
 
Quote:

Actually, I don't know whether it's open source or not.
But as I already started with this version in Python I prefer to extend my own version.
One of the benefits of Python as an interpreted language probably is that development and testing on the N900 itself is really straight forward. ;)
I like Python for the same reason. When I learn it, I won't have to bother setting up scratchbox to do the actual basic stuff. Will probably have to figure it out when sending stuff into the autobuilder, but it's a long way between me learning python and me being good enough to code a useful program.

Quote:

Alright, I already have a more general version in development.
I'll open another thread for discussing this version.
Wonderful. :) Makes me happy to see you already had the idea in mind, so my suggestion didn't make you take up too much of your time.

Quote:

Well, I'll focus my work on a single version for now.
This of course will be the advanced clock plugin.
I don't think it's worth to rip it apart and package things separately.
Yeah, development wise that's probably a good idea. In the meantime, I'd push your current version (of Advanced Clock Plugin) into Extras-Testing, actually. Near as I can tell it's perfectly fine, doesn't seem to mess up anything in status-menu.plugins, and runs good in my opinion. Hopefully there's also more testers down there who don't run so many devel things that they can get more accurate test results for, say, battery consumption.

Quote:

I'll add this to my to-do list.
Though, I don't know whether I find the time to implement this.
Well, it's something I've been intending to make happen, and if anything, it's one of the first things on my todo list after I learn enough python to make it happen... So if I can become useful quickly enough, I will be happy to send you a patch.

Quote:

Well, as you saw the code I think you noticed this project is in a very early stage.
I saw the code, doesn't mean I understood it enough to know if it's good/bad, elegant/inefficient, simple/complex, etc. :)

Quote:

In order to start the Advanced Clock Plugin I did a major refactoring of the code etc.
As a result the Advanced Clock Plugin is now dynamically extendable with custom clock styles. :)
A wonderful idea, which has added yet another thing to inspire me to learn Python. And as you may have noticed from the thread on Advanced Clock Plugin (like the name choice btw :)) I already have an idea for what this can become in the long term if this gets really popular, and a custom Clock Style for including both the time and extra system info (Which before couldn't really be conveniently fitted into the status bar because the icon size you could use was limited, where-as your python code seems to indicate the clock slot can be dynamically resized easily).

Anyway, I'm glad you liked my idea.

xboxsky 2010-12-30 03:24

Re: [Announce] binaryclock
 
Hey, I can understand binary, but it takes a while, so can anyone here actually decipher the time as quickly as they can by looking at a digital clock widget or something?

epitaph 2010-12-30 07:18

Re: [Announce] binaryclock
 
Quote:

Originally Posted by xboxsky (Post 907204)
Hey, I can understand binary, but it takes a while, so can anyone here actually decipher the time as quickly as they can by looking at a digital clock widget or something?

Me and perhaps Mr. Spock. But I admit I have problems to read Gray-Codes! Did you?

xboxsky 2010-12-30 12:38

Re: [Announce] binaryclock
 
Yeah, but as I said before, it takes me a while to decipher the time from the binary clock anyway, as I can't say I use binary all that often lol :D


All times are GMT. The time now is 16:11.

vBulletin® Version 3.8.8