Description:

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.
  • Last changelog:

    9 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

    7 years ago

    Is this project discontinued? Do you know if someone is trying to make it work in KDE4?
    Thank you.

    Report

    linuxbob

    7 years ago

    It's been on hold. I have moved over to xfce, since I found the earlier kde 4.0 a pain to use. I will start getting KClock working on kde 4..

    Bob

    Report

    mrschmitz

    7 years ago

    Hi!

    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

    8 years ago

    Take a look at:
    http://ubuntuforums.org/showthread.php?p=7012790#post7012790

    Greetz from Brazil
    Weber Kai

    Report

    linuxbob

    8 years ago

    Great idea, many thanks for the changes, I will drop it in on the next release.

    Report

    beagle87

    8 years ago

    It's great widget, but it has one glitch :(

    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

    8 years ago

    Here is my contribution!!

    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

    8 years ago

    hi

    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

    8 years ago

    Hi Christian

    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

    8 years ago

    hi

    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

    8 years ago

    Thanks! I became confused, I thought the clock was called a, "widget" not a "theme". So now I gotta figure out how to install the Aezins(sp?) custom theme for the KClock

    Report

    illmortal

    8 years ago

    Can someone please explain how to install KClock? I have SuperKaramba installed but KClock doesn't even exist in SuperKaramba. I downloaded KClock from here: http://kde-look.org/CONTENT/content-files/66205-KClock_1.2e.tar.gz
    But I don't know what to do from there. How do I install this?

    Report

    linuxbob

    8 years ago

    Here are the instructions to install KClock or any other superkaramba theme.



    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

    9 years ago

    Hi,

    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

    9 years ago

    Sorry, my mistake, i found on the superkaramba FAQ's that the problem with the black background is because karamba "doesn't like" solid colour wallpaper...I changed the wallpaper to a jpg and everything is now fine....

    brilliant clocks...really really nice

    Thanks

    M

    Report

    rowancompsciguy

    9 years ago

    This is a great widget. Thanks so much!! I did have one minor issue with it. The path to my clock images contains spaces so inkscape would bomb out when converting the svg file to the appropriate png file size. I just wrapped svgpath and pngpath in the inkspace commandline calls with quotes and that did the trick. I'm not sure if anyone else is having that problem. I think the files I changed were buildImages.py and Style.py.

    Thanks again for a great theme!!

    Report

    linuxbob

    9 years ago

    Many thanks for the feedback and path fix.

    I will put this in for the next release.

    Report

    linuxfever

    9 years ago

    Hello. I am having problem with the resolution of the clock. I have installed everything needed and when I run it from a terminal I get this:

    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

    9 years ago

    I think I found out what's wrong. Clock sizes between 100x100 - 200x200 do not look good while sizes larger than 200x200 look very good. Is there any way to make it work for lower resolutions?

    Thanks again.

    Report

    linuxbob

    9 years ago

    Hi

    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

    9 years ago

    Hello -

    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

    9 years ago

    You may be having a problem with the pytz library, this library provides the timezone information and time.

    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

    9 years ago

    Please help. I opened the console and run the suerkaramba with KClock.theme and I got this:

    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

    9 years ago

    which version of python do you have installed?

    Report

    janas

    9 years ago

    Python 2.4.4c1

    Report

    9 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.

    File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install
    Score 75%
    75.00 Likes
    25 Dislikes
    Details
    version
    1.2e
    updated Oct 03 2007
    added Sep 13 2007
    downloads
    page views 1301