Digital Clock Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

0
Score 67%
Description:

A Digital Clock Screenlet that changes skins from day to night with sound alarm

by Helder Fraga aka Whise

Instalation
Put it in your /usr/local/share/screenlets and run it from there
Last changelog:

6 years ago

v0.5

added configurable sound alarm
changed text position for better look

MomoSailor

9 years ago

I like the day/night look specially if I could use it to display the time of friends in a different time zone.
For this I would need it to change the time to a differ from systemtime like it is done in the ClockScreenlet 0.6 included in GNOME by default.

Report

saxonjf

10 years ago

And make it so I can make it Month/Day/Year instead of Year-Day-Month, and I'll be happy.

Report

someguydude

10 years ago

Make it so I can put this thing in 12 hour mode and you've got yourself a winner.

Report

adambot

11 years ago

Gentoo 2007.0

Report

adambot

11 years ago

Also, i tried changing the font and that didn't work. I ended up changing the font back to what you had it, but changing the font size from 26 to 22 which made it so it looks really good now.

Report

adambot

11 years ago

This Screenlet is AWESOME, however, i have found 1 bug. The time and date text are not all shown, they go over the Right border and i can't real all the time all the time (ex: right now it is 18:22 and over half the second 2 is cut off)

Report

C

Whise

11 years ago

can you post a screenshot and what resolution are you using?

Report

adambot

11 years ago

1280x1024
http://adambot.googlepages.com/004-1.jpg

Report

C

Whise

11 years ago

got it , i guess its about your font that is diferent then mine even if its got the same name on your sistem , for a quick fix open the digitalclockscreenlet.py and search for the font (i guess its either sans or serif ) and change it

may i ask what distro are you using? m

Report

C

Whise

11 years ago

please run it on the terminal and give me the out put

Report

castironpants

11 years ago

jeremy@box:~$ python /usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py
CachingBackend: Loading instances from cache
CachingBackend: Loading <DigitalClock1>
Loading instances in: /home/jeremy/.config/Screenlets/DigitalClock/default/
File: DigitalClock1.ini
Creating new instance:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Set options in DigitalClockScreenlet
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Restored instances from session 'default' ...
CachingBackend.save_option: x=0
CachingBackend.save_option: y=0
CachingBackend.save_option: x=1172
CachingBackend.save_option: y=46
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
CachingBackend: Saving <#DigitalClock1> :) ...
OK
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1137, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/DigitalClock/DigitalClockScreenlet.py", line 81, in on_draw
self.theme.render(ctx, 'sun')
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 136, in __getattr__
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'

Report

C

Whise

11 years ago

you running screenlets 0.09?

Report

adambot

11 years ago

Originally i got these exact same error messages, and it turned out i was running .0.0.8 not realizing that there was a .0.0.9 out... Is there an official distribution point for screenlets?

Report

castironpants

11 years ago

I don't get any numbers or pictures. Currently, it's just a light blue rectangle.

Report

C

Whise

11 years ago

please run it on the terminal and give me the out put?
are you on kde or other besides gnome?

Report

C

Whise

11 years ago

i was thinking about puting the numbers on the top right , maybe i will , about the size i think its good that way because it can be resized

Report

tecknojoe

11 years ago

i think this one would be great if it was a little smaller, and the sun and moons were small icons that didn't go behind the numbers.

Report

6 years ago

v0.5

added configurable sound alarm
changed text position for better look

product-maker 14 35

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.5
updated May 30 2012
added Aug 03 2007
downloads today
0
page views today 5