Binary Clock for Conky

Conky

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
This is a python script to display a binary clock with conky. The last preview is an example of how to read the time. You must have the font "Pizza Dude Bullets" installed which is included in the archive along with a sample conkyrc. The clock can be either horizontal or vertical, 12 hour or 24 hour, and the column numbers can be turned on or off. It can even display different timezones. Make sure to read the help.

[QUOTE]
Usage: byclock.py -v|-o|-m|-c|-f|--vertical|--offset|--military|--font|--columns

Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --vertical Output a vertical clock
-o OFFSET, --offset=OFFSET
Use a different time zone by specifying the offset
-m, --military Output a 24-hour clock
-c, --columns Display column numbers
-f FONT, --font=FONT Specify a font for the column numbers. Default is Sans
if not specified

[/QUOTE]

I'm sure there's probably some bugs in it. If you find any, let me know.
Last changelog:

0.9
Initial release.


Ratings & Comments

5 Comments

lonerocker

I don't know if it is a bug or not, but it didn't work well. With the script the conky displayed repeated, like a black shadow behind every character; besides, some pizza fonts appeared on top, when the clock was on bottom, and the clock itself wasn't right either, some characters were on top of others, some on the side... it was a mess. But the idea is really good.

downdiagonal

Hi lonerocker, Can you post a screenshot so that I can maybe tell what the problem is? Also, you might try changing draw_shades to no.

lonerocker

Ok, it's strange, but before the shades were set to yes and weren't displayed, so I changed it to no, and now looks better and those characters on top are no longer. But there's still a problem of alignment, as you can see in the screenshot. http://img255.imageshack.us/img255/4880/pantallazo2xp7.png Again, nice work with the nerdy clock.

downdiagonal

Thanks. That seems to be a problem with trying to use the clock in an existing conkyrc. You might try adding a ${font} tag before the call to the clock, or we can try to add some space to that first line to make it line up. To do that, you'll have to change the line: Quote:

for g,i in enumerate(horzclock(hours,minutes,seconds)): print cols(columns,g,options.font)+fontpiz + ' '.join(i)
To: Quote:
for g,i in enumerate(horzclock(hours,minutes,seconds)): print ['',' '][g==0] + cols(columns,g,options.font)+fontpiz + ' '.join(i)
Note that that should still be just one line. You should be able to change the number of spaces in this part, ,' '] until you can get it to line up correctly.

lonerocker

the script had this line, not exactly like the one you say Quote:

for g,i in enumerate(horzclock(hours,minutes,seconds)): print '${offset %s}' % hoffset,cols(columns,g,options.font), fontpiz + ' '.join(i)
when replaced, it got all aligned.

Pling
0 Affiliates
Details
license
version 0.9
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Conky from downdiagonal:

Lyricsdownloader for Conky
downdiagonal
last update date: 16 years ago

Score 5.0

Other Conky:

System Status
Whise
last update date: 17 years ago

Score 5.0

Genetic code
Whise
last update date: 17 years ago

Score 5.0

BCCRScreenlet
gartuz
last update date: 17 years ago

Score 5.0

Diggler
Whise
last update date: 17 years ago

Score 5.0

Comic
Whise
last update date: 17 years ago

Score 5.0

Clear-enGlish Theme pack (Picframe Theme
ClearenGlish
last update date: 17 years ago

Score 4.7