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)

CasTTeLLo 2010-12-29 16:26

Re: [Announce] Advanced Clock Plugin
 
do i have to install with setting ui after update?

cloud596 2010-12-29 16:48

Re: [Announce] Advanced Clock Plugin
 
didnt appear on control panel.

Tumleh 2010-12-29 16:56

Re: [Announce] Advanced Clock Plugin
 
Please note that now, after the last update to 0.7.0-0, I cannot find anymore the Advanced Clock in the status bar despite of a) deinstallation - re-installation and b) reboot.

Wonko 2010-12-29 17:22

Re: [Announce] Advanced Clock Plugin
 
Version 0.1.0-2 of the UI fixes the issue.
Just upgrade again and you should be fine.
Please excuse the inconvenience.

-miniME- 2010-12-29 17:27

Re: [Announce] Advanced Clock Plugin
 
hi

analogue clock's hour hand points only to current hour. analogue clock would be more readable if you draw hand according hour's minutes.

add following lines to AnalogClock.py after calculation of h but before drawing of h:

m = self.time.minute
h = h + m / 60.0

remove the m variable assignment later on.

ciao and tx

Tumleh 2010-12-29 17:37

Re: [Announce] Advanced Clock Plugin
 
Wonko, thousand thanks! So the problem has been settled very quickly.
And please let me say that your Advanced Clock plugin is one of the best apps of 2010! Congratulations!

skykooler 2010-12-29 19:19

Re: [Announce] Advanced Clock Plugin
 
I uploaded my plugin to extras-devel about 9 hours ago. It built in around a minute, but nine hours later it still hasn't shown up in extras-devel, nor have I received an e-mail.How long does this process usually take?

Wonko 2010-12-29 19:28

Re: [Announce] Advanced Clock Plugin
 
Changed the analog clock as -miniME- suggested.
@skykooler
It's there: http://maemo.org/packages/view/advan...kpluginsbinary
Didn't try it yet though.

zvogt 2010-12-29 19:48

Re: [Announce] Advanced Clock Plugin
 
I'm not a fan of the new color picker interface. I really liked being able to directly type in hex rgb values. Anyone else share my opinion?

NightShift79 2010-12-29 19:51

Re: [Announce] Advanced Clock Plugin
 
that's a really needy plugin! thanks a lot for it!
Ohh, and I hope you can focus on a new operater logo plugin afterwards :P

Thanks a lot for your work!

skykooler 2010-12-29 20:02

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Wonko (Post 906893)
Changed the analog clock as -miniME- suggested.
@skykooler
It's there: http://maemo.org/packages/view/advan...kpluginsbinary
Didn't try it yet though.

So it is! I was forgetting that spaces come before letters when it sorts alphabetically. Still haven't gotten an email yet, though.

@All: Okay, advancedclockpluginsbinary is officially in extras-devel (although apparently it has been for the past six hours without my knowledge). It installs three clocks, but does not overwrite any of the existing ones. Please try it and let me know of any bugs! The forum may be faster than the bug tracker, I'm not quite sure I configured that right.

CasTTeLLo 2010-12-29 23:49

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Wonko (Post 906829)
Version 0.1.0-2 of the UI fixes the issue.
Just upgrade again and you should be fine.
Please excuse the inconvenience.

do u mean advanceclockpluginsbinary 0.1.0-1? coz i cant find Advanced Plugin Desktop Settings UI??

F2thaK 2010-12-30 00:01

Re: [Announce] Advanced Clock Plugin
 
nice update, doesnt take up room in status menu and settings are saved...

thanks

ddiscodave 2010-12-30 00:02

Re: [Announce] Advanced Clock Plugin
 
I so love this clock!!!!!!!!!!!!!!!

TiagoTiago 2010-12-30 00:05

Re: [Announce] Advanced Clock Plugin
 
Regarding the need to avoid name collisions, how about requiring that each clock be inside its own subfolder and/or zip/compressed file, with an specific format for the name, somthing like a fixed prefix like "ACP-Clock-" followed by the name of the creator and optionally the name of the custom clock and a version number?

Hootenholler 2010-12-30 00:24

Re: [Announce] Advanced Clock Plugin
 
Yeah, how does one find the Settings UI? I can't see it anywhere.

Mentalist Traceur 2010-12-30 00:26

Re: [Announce] Advanced Clock Plugin
 
I second being able to select RGB hex values. It would be great if you had that option too. It looks like there's enough for the text bar with the rgb values right under the color boxes as they pop up right now.

*Shrug*

Also, Tiago-Tiago: I like that idea, but it feels impractical. Because one poorly named clock, or unstandardly named clock, would toss the system out. I think requiring a standard is about as equal as just asking people to not make conflicting names to begin with.

How do we resolve the issue of different themes having the same name in Maemo, or the same packages having the same name in repositories?

Oh, also, there is already an operator name applet. It's called literally that, "Custom Operator Name Applet". (It puts itself in the settings menu - there's another called "Custom Operator Name Widget" that you can put on your desktop to change the settings, if you don't like having it in Settings.)

The Settings UI isn't something you need to download. If everything's working it will install the settings for the applet that used to go into the status bar into the settings menu. You don't have to manually install anything. Just update Advanced Clock Plugin, and it should work. If it's not working, manually installing it might be only part of the solution, if at all needed.

CasTTeLLo 2010-12-30 02:36

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Hootenholler (Post 907119)
Yeah, how does one find the Settings UI? I can't see it anywhere.

i have update to the newest one but still nothing

Hootenholler 2010-12-30 02:57

Re: [Announce] Advanced Clock Plugin
 
I was able to update shortly after posting and the UI is now within the Settings menu.

skykooler 2010-12-30 03:03

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by CasTTeLLo (Post 907173)
i have update to the newest one but still nothing

You are looking in the System Settings app right? It should be there, under "Personalization".

TiagoTiago 2010-12-30 03:18

Re: [Announce] Advanced Clock Plugin
 
If someone doesn't name their clock's containing folder obeying the required format the clock simply won' t be included in the list of clocks avaible for the user to choose, if anyone tries to make a clock but doesn't name the folder acording to the format they won't even be able to test it themselves. Regarding people using the same creator name as clocks made by someone else, if both creators also don't include a unique name for their clocks, then there isn't much you can do.


Oh, how about together with with ACP, why don't you offer a program to generate a random UUID and use that as a sufix for the clockms folder name? ( a sufix instead of a prefix to make it easier to sort folders alphabeticly and find an specific folder)

CasTTeLLo 2010-12-30 03:53

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by skykooler (Post 907192)
You are looking in the System Settings app right? It should be there, under "Personalization".

nothing there...mind to post sshot?

http://sphotos.ak.fbcdn.net/hphotos-..._5042773_n.jpg

p/s: rebooted 3 times

F2thaK 2010-12-30 03:57

Re: [Announce] Advanced Clock Plugin
 
1 Attachment(s)
rebooted Castello?

newest version installs the settings UI seperately
http://maemo.org/packages/view/advan...n-settings-ui/

edit: s/shot added

CasTTeLLo 2010-12-30 04:15

Re: [Announce] Advanced Clock Plugin
 
more shot :

http://sphotos.ak.fbcdn.net/hphotos-..._2806448_n.jpg

F2thaK 2010-12-30 04:20

Re: [Announce] Advanced Clock Plugin
 
try installing this thru xterm

http://maemo.org/packages/view/advan...n-settings-ui/

CasTTeLLo 2010-12-30 04:21

Re: [Announce] Advanced Clock Plugin
 
why it not show up on my app man...i cant install manually...incompitible package error...

via x term :
apt-get install advanced-clock-plugin-settings-ui
couldn't find package...i got repos problem since last week...duhh!

F2thaK 2010-12-30 04:28

Re: [Announce] Advanced Clock Plugin
 
hmmm try to disable all repos except devel, refresh.. maybe uninstall app then re-install??


edit: sorry this Q is OT but can someone tell me the cache file to delete to make settings menu create new cache?? THANKS
I keep forgetting it !!:confused:

CasTTeLLo 2010-12-30 04:57

Re: [Announce] Advanced Clock Plugin
 
failing and failing...i'm tired of this....need a rest....

Mentalist Traceur 2010-12-30 07:00

Re: [Announce] Advanced Clock Plugin
 
Found it!
Code:

rm [-f] /home/user/.cache/launch/com.nokia.controlpanel.pvr
This is for getting rid of that annoying control panel screen-shot that Hildon always fails to refresh at the right time. (The -f is in brackets because I don't need it when I run the command. Qwerty12 - who all proper TMO members should know was a hacking pimp of awesome - posted it with the -f, so it might be necessary for some people *shrug*.)

CasTTeLLo. In my experience, just running apt-get update, once or at most twice, solves things. I don't really know how, or why - every time I get this problem I really feel like I don't know what the hell to do, but I tend to redo the same stuff reboot, apt-get update, remove and re-add repositories... It tends to fix itself if you do those enough times. I really don't know why though.

skykooler 2010-12-30 07:30

Re: [Announce] Advanced Clock Plugin
 
@Mentalist Traceur: How are you going about getting the cpu/wifi information? I am not sure whether I am doing it efficiently (especially CPU measurement).

DJRedline 2010-12-30 08:36

Re: [Announce] Advanced Clock Plugin
 
Still unsure why i cannot get this to work. every version i install all it seems to do is disable the default clock.

With latest version i can access the settings menu (within personalisation) but no matter what clock type i change to nothing seems to appear?

Confusing

rajil.s 2010-12-30 08:53

Re: [Announce] Advanced Clock Plugin
 
My question got lost in the discussion so i will reiterate:

"Is it possible tohave two clocks at the same time with one showing the local timezone and the second one showing the remote timezone?"

Mentalist Traceur 2010-12-30 09:20

Re: [Announce] Advanced Clock Plugin
 
Quote:

@Mentalist Traceur: How are you going about getting the cpu/wifi information? I am not sure whether I am doing it efficiently (especially CPU measurement).
Ummm, I honestly don't know if I'm doing it efficiently. I pulled open cpumem applet's source code and that's where I've been figuring it out from. I just got memory working, using /proc/meminfo, which I may be using a step or two more for than CPUMEM applet does, but it works just fine right now, at least, visibly (though without the update-screen-only-if-value-changed-enough part just yet).

However, I have not done the same for CPU (doing it right now). The thing is I've been trying to understand the information in /proc/stat, and I am starting to have a creeping suspicion that all this time, all of us using load and cpumem applets have been getting slightly inaccurate CPU stats.

As I understand it, /proc/stat has an idle time value in the FOURTH number (fifth string because it has 'cpu' at the front, index 4, if you split that line of /proc/stat). Disk I/O is on the FIFTH number... if I'm not wrong. And that's what CPUMEM accesses for calculating processor idle time from moment to moment - the fifth number of that string (index 5, again since "cpu" is on index 0 if you split it).

So, have CPUMEM and Load applets just been telling us the changes in disk i/o the entire time, instead of idle processes? I can't think of a good test for how to fill up ram without running into an I/O operation, so frak if I can think of how to verify that. Anything that runs that much CPU probably requires some I/O, and anything that needs lots of I/O probably requires a bunch of processing.

To be clear, the /proc/stat file's first line looks like this:
"cpu 259246 7001 60190 34250993 137517 772 0 0"
The problem is the red is the actual idle time, while the green is what the cpumem applet's source code says it's using.

Furthermore, I'm finding this:
http://colby.id.au/node/39
http://www.murga-linux.com/puppy/vie...0161809#272677
(Both links point to different edits of the same shell script) Which suggests that the proper way of calculating CPU usage is more complicated than that.

So... how are you getting CPU for your version?

@rajil.s: Yes, but you'd have to code the clock style yourself, or get one of us to do it for you. I don't think it would be that easy to set the time zone with just the settings, but it could be 'hard'-coded (in so far as uncompiled python is ever hard-coded) into the clock style. So one reports your time zone time, the other reports your time +/- X hours.

- Edit (again) -

Oh, and since I am a newb and might just be completely wrong, here's how the code looks for the relevant part in cpumem (it's in C):

Code:

#define CPUFILE "/proc/stat"
        gint curU, curN, curIO, curI;
        gint deltaU, deltaN, deltaIO, deltaI;
        int load, idle;
        GError *error = NULL;
        gchar *contents;
        gsize lenght;
        gchar **splits;

        if (!g_file_get_contents (CPUFILE, &contents, &lenght, &error)) {
                fprintf (stderr, "ERR: can't read file %s: %s\n", CPUFILE, error->message);
                g_error_free (error);
                return 0;
        }
       
        splits = g_strsplit_set (contents, " ",  -1);

        sscanf(splits[2], "%d", &curU);
        sscanf(splits[3], "%d", &curN);
        sscanf(splits[4], "%d", &curIO);
        sscanf(splits[5], "%d", &curI);
       
        g_strfreev (splits);
        g_free (contents);
   
        idle = (curI - priv->lastI);
        if (idle == 0) load = 100;
        else load = 100-idle;
        if (load>100) load = 0;
        deltaU = curU - priv->lastU;
        deltaN = curN - priv->lastN;
        deltaIO = curIO - priv->lastIO;
        deltaI = curI - priv->lastI;
        priv->lastU = curU;
        priv->lastN = curN;
        priv->lastIO = curIO;
        priv->lastI = curI;

The thing to note is that none of the variables starting with delta, and non of the variables ending with U, N, or IO, are used. It only uses the curl and priv->lastl variables. The others just don't get used in the code, even though they are set each time.

CasTTeLLo 2010-12-30 10:39

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Mentalist Traceur (Post 907268)
Found it!
Code:

rm [-f] /home/user/.cache/launch/com.nokia.controlpanel.pvr
This is for getting rid of that annoying control panel screen-shot that Hildon always fails to refresh at the right time. (The -f is in brackets because I don't need it when I run the command. Qwerty12 - who all proper TMO members should know was a hacking pimp of awesome - posted it with the -f, so it might be necessary for some people *shrug*.)

CasTTeLLo. In my experience, just running apt-get update, once or at most twice, solves things. I don't really know how, or why - every time I get this problem I really feel like I don't know what the hell to do, but I tend to redo the same stuff reboot, apt-get update, remove and re-add repositories... It tends to fix itself if you do those enough times. I really don't know why though.

after keep trying and trying, now it's working perfectly....thanks for ur "gut"....as usual, Problem solved!! :)

ayazpak 2010-12-30 12:10

Re: [Announce] Advanced Clock Plugin
 
This is nice, good work but after reboot clock setting went to its defaut setting, unable to save my personal settings.

CasTTeLLo 2010-12-30 12:21

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by ayazpak (Post 907471)
This is nice, good work but after reboot clock setting went to its defaut setting, unable to save my personal settings.

try this via xterminal :

apt-get update
apt-get upgrade

if it's not solved try to reinstall the plugin and make sure u install the correct ver...gud luck!:D

ayazpak 2010-12-30 12:31

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by CasTTeLLo (Post 907484)
try this via xterminal :

apt-get update
apt-get upgrade

if it's not solved try to reinstall the plugin and make sure u install the correct ver...gud luck!:D

Thanks for quick reply, ok I will try and post the result here

gabby131 2010-12-30 12:35

Re: [Announce] Advanced Clock Plugin
 
awesome plugin! looks like im not going to go back in time using the stock clock? :D

rotoflex 2010-12-30 12:48

Re: [Announce] Advanced Clock Plugin
 
Latest version working nicely here.

ayazpak 2010-12-30 14:17

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by CasTTeLLo (Post 907484)
try this via xterminal :

apt-get update
apt-get upgrade

if it's not solved try to reinstall the plugin and make sure u install the correct ver...gud luck!:D

Thanks again, I got it according to your instructions. :)


All times are GMT. The time now is 16:29.

vBulletin® Version 3.8.8