maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Advanced Clock Plugin (https://talk.maemo.org/showthread.php?t=67408)

leojab 2011-01-05 11:42

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Radicalz38 (Post 912059)
Hi again wonko... Another bug report :p
Seems like 12/24 hours option isn't working on the latest version. a while ago advanced clock plugin shows the time as 12:07AM while it should be 12:07PM(On any clocks)... Also whenever I change it to 24 hours mode it still show as 12:07AM where I don't think it should show AM or PM when on 24 hours mode right? :/
BTW changed my timezone...

Yes.. same issue here as well..

P@t 2011-01-05 13:10

Re: [Announce] Advanced Clock Plugin
 
probably a stupid question but I am not able to have it working properly. I have just installed version from extra-testing (0.11.1-1) but it seems that only analog and binary clocks are working.
For all others I get nothing displayed.
I tried to change the font (using Nokia Sans), I tried to change the colors. I reinstalled the plugin. I rebooted several times. I tried the different options (seconds, 12 hour mode,...)...
I am out of ideas now...
Thanks for this anyway.

EDIT: I found the problem: 'text scaling'. Increasing it from 1 to some more reasonable numbers seems to make it visible now... But maybe a bigger default value would be better?!

ddiscodave 2011-01-05 17:17

Re: [Announce] Advanced Clock Plugin
 
it wont install.... so frustrating. any ideas?

ddiscodave 2011-01-05 19:20

Re: [Announce] Advanced Clock Plugin
 
??????????????????

Wonko 2011-01-05 22:00

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Radicalz38 (Post 912059)
Hi again wonko... Another bug report :p
Seems like 12/24 hours option isn't working on the latest version. a while ago advanced clock plugin shows the time as 12:07AM while it should be 12:07PM(On any clocks)... Also whenever I change it to 24 hours mode it still show as 12:07AM where I don't think it should show AM or PM when on 24 hours mode right? :/
BTW changed my timezone...

Should be fixed in 0.11.2.
Could you please try if this solves your issue.

@ddiscodave
Please be patient.
It is usually considered bad netiquette to bump a question that quickly.
We do understand that some problems might be unpleasant but typically we cannot answer instantly.
Usually, your question will be answered sooner or later.

With respect to your question:
Did you have an earlier version of advanced-clock-plugin installed?
If so, could you try removing it completely by running the following as root:
Code:

dpkg -r advanced-clock-plugin
dpkg -r advanced-clock-plugin-settings-ui

If this still does not solve your issue try installing it via the command line by running (as root):
Code:

apt-get install advanced-clock-plugin
and post the output here.

Edit:
@P@t:
Did you have an earlier version installed or was this the first time you installed advanced-clock-plugin?

porselinaheart 2011-01-06 02:47

Re: [Announce] Advanced Clock Plugin
 
can anybody be so kind as to point me to where i should be looking to change the alarm 'on' icon for the decimal clock?? is it an actual png?, or is it in the code ( enlarged fullstop character ) if its the latter, can i have some help locating where in the code i need to edit to change its color?

theonelaw 2011-01-06 06:36

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by porselinaheart (Post 912830)
can anybody be so kind as to point me to where i should be looking to change the alarm 'on' icon for the decimal clock?? is it an actual png?, or is it in the code ( enlarged fullstop character ) if its the latter, can i have some help locating where in the code i need to edit to change its color?

I have 0.11.1-1 but not the latest 0.12
best you take a look in that latest code,
but to get you started -

I see the alarm is only implemented in some of the clocks,
adding the alarm is a bit more work depending on the clock type.

Anyways
Looks like it is here (in version 0.11.1-1)
in the master file - clock.py:

Code:

    def draw_alarm_indicator(self):
        self.context.set_source_rgb(1.0, 0.0, 0.0)
        self.context.arc(self.drawing_area.get_size_request()[0] - 8, 8, 7, 0, 2 * math.pi)
        self.context.fill()

adjust
self.context.set_source_rgb(1.0, 0.0, 0.0)

for your favorite color, maybe?
looks like red=1, green=0, blue=0 gives you a red dot I guess.

but to be sure, you should best download the latest
as it has possibly/probably changed by now

cheers :D

Mentalist Traceur 2011-01-06 07:02

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by porselinaheart (Post 912830)
can anybody be so kind as to point me to where i should be looking to change the alarm 'on' icon for the decimal clock?? is it an actual png?, or is it in the code ( enlarged fullstop character ) if its the latter, can i have some help locating where in the code i need to edit to change its color?

theonelaw gave a pretty nice answer, but basically, everything you see in the clock styles is drawn with "Cairo". Cairo is a vector image editing program, pretty basis, but pretty flexible.

It basically has the ability to draw defined shapes - either rectangular, or arc-based ones. So, boxes or ovals, of any size, color, and shape.

The alarm indicator is a circle - the Python code basically says "load the python-cairo interface", twiddles it's thumbs and does other stuff for a while, then says, okay, for this data, use cairo to draw X, for that data draw Y, etc. (Cairo can do text too, which is what draws the time/date/whatever.) For the alarm indicator, the code basically says "at the following location [starting from where the clock applet's space starts], using rgb values of 1.0, 0.0, 0.0, and of the following shape and size, draw me an arc-defined shape."

You can look up a cairo tutorial - combined with some basic geometry/trigonometry understanding, almost anything you can do with Cairo for a clock style is a piece of cake. It MAY be able to display an actual image though; I've been contemplating doing that for a while now, if possible.

DJRedline 2011-01-06 08:58

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by P@t (Post 912154)
probably a stupid question but I am not able to have it working properly. I have just installed version from extra-testing (0.11.1-1) but it seems that only analog and binary clocks are working.
For all others I get nothing displayed.
I tried to change the font (using Nokia Sans), I tried to change the colors. I reinstalled the plugin. I rebooted several times. I tried the different options (seconds, 12 hour mode,...)...
I am out of ideas now...
Thanks for this anyway.

EDIT: I found the problem: 'text scaling'. Increasing it from 1 to some more reasonable numbers seems to make it visible now... But maybe a bigger default value would be better?!

I can confirm this.
Changing the text scaling to around 100 allowed the clocks to appear.

Wonko 2011-01-06 11:06

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by P@t (Post 912154)
EDIT: I found the problem: 'text scaling'. Increasing it from 1 to some more reasonable numbers seems to make it visible now... But maybe a bigger default value would be better?!

The default should be 100%.
There was some problem in an older version in which the default value was not correctly read.
Hence, my question whether this was the first installation. ;)

For testing this issue I deleted all settings and restarted the plugin to force the default values being set and the scaling was correctly set to 100%.


Edit: I promoted 0.11.2 to extras-testing as the twelve-hour mode bug is fixed there.


All times are GMT. The time now is 07:34.

vBulletin® Version 3.8.8