
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
KClock has 12 clock styles.
The KClock has the following features:
Timezones - You can have multiple clocks on your desktop, each set to a different timezone
Clock hands can be shaded (only if PIL or ImageMagick is installed, see below about auto detection).
Option to remove the second hand. KClock will automatically reduce the update frequency from superkaramba if the second hand is not show.
All clock hand images are cached, so reduce system overhead.
All clocks styles are in svg format and so can be resized to any size (see auto detection of Inkscape or librsvg below).
Extra clock styles can be added from the configuration menu. See below about adding the 'Color Clock Styles'.
Clock styles can be removed from the configuration menu.
Since this release is a bit bigger, I have had to remove the 'Color' clock styles Red, Green and Blue out into their own .gz file.
To install these clock styles, download the .gz file 'Color Clock Styles', then go to the KClock configuration menu/editor and select 'Import Style...' and select the .gz file to import.
or to do this manually you can extract the contents of the ColorClockStyles.tar.gz into the 'styles' folder in KClock.
Auto Detection for extra features
KClock will work with still work with the basic python libraries. But to get extra features and functionality working with KClock we surggest that you have some of these libraries/applications installed:
PIL (Python Image Library) - With this library KClock can draw the shading on the clock hands and rotate the clock hands with out seeing jagged edges.
Image Magick - This provides the same functionality as PIL, but is stlightly slower and more resourse instense grapthic library
PyQt - The Python QT library will provide a nicer interface to choosing the clock styles.
Inkscape - Inkscape is used to resize the png images without loss of quality from 250 by 250 pixels and higher.
librsvg - librsvg does basically the same as Inkscape, so if you do not have Inkscape installed you can install this lighter application instead.
pytz - To get the timezone working you will need to install the python library pytz. See http://pytz.sourceforge.net. If you have pyqt installed then the Configuration window can install this library for you into the KClock/libs folder.
13 years ago
version 1.2a corrects a bug where kclock will not start up if you do not have some of the supported applications installed.
Version 1.2b fixes a bug where the PIL image library is always imported even if you do not have the library installed.
Version 1.2c fixes a bug where a non pyqt user tries to set a timezone.
Version 1.2d may fix a syntax error when running python 2.4.
Version 1.2e - On KClock startup if the current used style or the default 'chrome' style is removed, then the first available style will be used.
13 years ago
version 1.2a corrects a bug where kclock will not start up if you do not have some of the supported applications installed.
Version 1.2b fixes a bug where the PIL image library is always imported even if you do not have the library installed.
Version 1.2c fixes a bug where a non pyqt user tries to set a timezone.
Version 1.2d may fix a syntax error when running python 2.4.
Version 1.2e - On KClock startup if the current used style or the default 'chrome' style is removed, then the first available style will be used.
YAFU
11 years ago
Thank you.
Report
linuxbob
11 years ago
Bob
Report
mrschmitz
11 years ago
First of all this is a great work/widget/theme.
I m trying to run this using superkaramba om KDE4 but get this errors:
mrschmitz@tesla:~/Downloads/Karamba/KClock-1.2e$ superkaramba KClock.theme
Kross: "Loading the interpreter library for python"
Kross: "Successfully loaded Interpreter instance from library."
Kross: "PythonScript::Constructor."
Kross: "PythonScript::execute"
KClock: ImageMagick found version 6.5.1
KClock: Inkscape found version 0.46
KClock: ImageMagick found version 6.5.1
KClock: Inkscape found version 0.46
Kross: "PythonInterpreter::extractException:
File "/home/mrschmitz/Downloads/Karamba/KClock-1.2e/KClock.py", line 4, in <module>
KCLOCK_VERSION = "1.2e"
File "/home/mrschmitz/Downloads/Karamba/KClock-1.2e/KClock.py", line 35, in <module>
from KClockWidget import KClockWidget
File "<string>", line 18, in _import
File "KClockWidget.py", line 6, in <module>
from AnalogClock import AnalogClock
File "<string>", line 18, in _import
File "AnalogClock.py", line 5, in <module>
from KClock import DEFAULT_STYLE_NAME, appLibFinder
File "<string>", line 18, in _import
File "KClock.py", line 35, in <module>
from KClockWidget import KClockWidget
"
Kross: "Error error=cannot import name KClockWidget lineno=35 trace=
File "/home/mrschmitz/Downloads/Karamba/KClock-1.2e/KClock.py", line 4, in <module>
KCLOCK_VERSION = "1.2e"
File "/home/mrschmitz/Downloads/Karamba/KClock-1.2e/KClock.py", line 35, in <module>
What I am doing wrong or am didn't?
Thank you once more.
Report
weberkai
11 years ago
http://ubuntuforums.org/showthread.php?p=7012790#post7012790
Greetz from Brazil
Weber Kai
Report
linuxbob
11 years ago
Report
beagle87
11 years ago
I had to disable second hand, because it's eating my processor time. When enabled, it displays about 45-50% busy. When disabled, it's around 3-5 %
Can this be fixed somehow?
Report
weberkai
11 years ago
Change in Kclock.theme:
image x=0 y=0 path="image/Minute.png" rotation=program program="expr $(date +%S) / 30 + $(date +%M) \* 2" full=120
image x=0 y=0 path="image/Hour.png" rotation=program program="expr $(date +%M) / 6 + $(date +%I) \* 10" full=120
Greetz from Brazil!!
Weber Kai!!
Report
cgroh
12 years ago
my kclock always shows 12 o'clock. when i run it in a terminal, i get the following messages.
Quote:
KClock: ImageMagick found version 6.4.0
KClock: Inkscape found version 0.46
KClock: rsvg found version 2.22.2
KClock: PyQt is loaded
KClock: pytz timezone library is loaded
KClock: Loaded!
convert -background none "/home/cgroh/download/kde/karamba/66205-KClock_1.2e/styles/Chrome/100x100/Hour.png" -resize 100x100 -rotate 262.0 \( +clone -background black -shadow 40x1+1+1 \) +swap -composite "/home/cgroh/.superkaramba/KClock_cache/Chrome_100x100_1/Hour_-1.png"
convert: no decode delegate for this image format `/home/cgroh/download/kde/karamba/66205-KClock_1.2e/styles/Chrome/100x100/Hour.png'.
convert: image sequence is required `+clone'.
the same message appears for minutes and seconds.
any help would be most appreciated.
cheers
christian
Report
linuxbob
12 years ago
It looks like the version of ImageMagick you have installed on your system does not have the libpng library files. You may need to reinstall ImageMagick. See the posting below for more information:
http://gallery.menalto.com/node/39633
or
http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=11060
Bob
Report
cgroh
12 years ago
my kclock always shows 12 o'clock. when i run it in a terminal, i get the following messages.
Quote:
KClock: ImageMagick found version 6.4.0
KClock: Inkscape found version 0.46
KClock: rsvg found version 2.22.2
KClock: PyQt is loaded
KClock: pytz timezone library is loaded
KClock: Loaded!
convert -background none "/home/cgroh/download/kde/karamba/66205-KClock_1.2e/styles/Chrome/100x100/Hour.png" -resize 100x100 -rotate 262.0 \( +clone -background black -shadow 40x1+1+1 \) +swap -composite "/home/cgroh/.superkaramba/KClock_cache/Chrome_100x100_1/Hour_-1.png"
convert: no decode delegate for this image format `/home/cgroh/download/kde/karamba/66205-KClock_1.2e/styles/Chrome/100x100/Hour.png'.
convert: image sequence is required `+clone'.
the same message appears for minutes and seconds.
any help would be most appreciated.
cheers
christian
Report
illmortal
12 years ago
Report
illmortal
12 years ago
But I don't know what to do from there. How do I install this?
Report
linuxbob
12 years ago
Download and install superkaramba from http://netdragon.sourceforge.net Once superkaramba is installed:
Download and unzip the theme archive. You can put it in any directory you want.
Run superkaramba, select "Open Theme", and open the .theme file from wherever you unzipped the theme archive.
The orginal instructions above can be found by on this page by clicking on the 'how to install' link to the right hand side of the 'Download Source' link.
Report
mcarni
12 years ago
Thanks for clock, it is really nice, right now using the red theme....very very good...
I have a question, please forgive me if it is too silly, I'm a newbie....
The clock comes with a black background behind the clock, which looks kind of strange when I use a light colour wallpaper.
Is there a way of not having the background at all???
Thank you so much for your help
M
Report
mcarni
12 years ago
brilliant clocks...really really nice
Thanks
M
Report
rowancompsciguy
13 years ago
Thanks again for a great theme!!
Report
linuxbob
13 years ago
I will put this in for the next release.
Report
linuxfever
13 years ago
KClock: Python Image Library (PIL) found
KClock: ImageMagick found version 6.2.4
KClock: Inkscape found version 0.45.1
KClock: PyQt is loaded
KClock: Loaded!
My python version is 2-5-1. Any ideas? Thanks!
Report
linuxfever
13 years ago
Thanks again.
Report
linuxbob
13 years ago
The current download gives all the images in svg format. You can then use Inkscape to export these svg images to any size or resolution png files.
Report
fcardone
13 years ago
looks very nice :-) however... I enabled the timezones, it downloaded what it needed, but no matter what I select it always remains in my home timezone. The caption does change, however...
any clues?
Thanks,
Flavio
Report
linuxbob
13 years ago
The best way to find out is to run superkaramba and kclock.theme in a console window.
This will display any errors that have occured.
Bob
Report
janas
13 years ago
Traceback (most recent call last):
File "/home/johnny/Karamba_themes/KClock/KClock.py", line 16, in ?
from AppLibFinder import AppLibFinder
File "AppLibFinder.py", line 10
class AppLibFinder():
^
SyntaxError: invalid syntax
------------------------------------------------------
What does ImportError mean?
It means that I couldn't load a python add-on KClock.py
If this is a regular theme and doesn't use python
extensions, then nothing is wrong.
------------------------------------------------------
There was no theme on the desktop. What can be the reason?
Report
linuxbob
13 years ago
Report
janas
13 years ago
Report