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)

Mentalist Traceur 2011-03-21 23:59

Re: [Announce] Advanced Clock Plugin
 
Yes it blinks - I mentioned that bug in my post for the monitor mode clock. I can't reproduce it on command either, it just sometimes does. I suspect the python interpreter occasionally ends up messing up and reading the /proc/stat file too close together, or something else like that... I really don't know. The current solution is lock screen with the lock slider and unlock it again. If it's locked long enough for the Adv. Clock's code to realize "I don't need to keep updating myself anymore because I'm invisible" (under a split second, realistically) it'll reset it to working normally.

Nice on the cpu-only clock style. Let me know if you'll want help packaging it for the repos; if you do, I'll be happy to help when I myself figure it out.

Everyone for whom the Adv. Clock Plugin isn't working: I should have free time vaguelly soon to try to help you guys - in the meantime, make sure you don't have advanced-clock-plugin-settings-ui installed
Code:

apt-get purge advanced-clock-plugin-settings-ui
- then reinstall advanced-clock-plugin.

Preferably, first uninstall completely with
Code:

apt-get purge advanced-clock-plugin
, then install again. Preferably with apt-get instead of an app manager. I'm not sure what the cause of your problem is yet, but the output one of you posted a while ago when trying to add one of my clocks was interesting, and hey, if a simple purge-uninstall/reinstallm makes it work for at least some people, that's progress.(apt-get has to be ran as root btw.)

rantom 2011-03-29 16:42

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by rantom (Post 960790)
#6835 Hour of next alarm is replaced with the current one
#6836 AM/PM is replaced with ip if system's own 24 hour clock is disabled

I installed the newest version from -Devel (0.15.3) and it fixed both of these. I'm still leaving the bugs open, in case that the unexpected behavior would happen again.

Lock-screen though still shows the "ip" if the systems own 24 hour clock is disabled. If it's enabled then the 12-hour format refuses to work and 24-hour is shown instead.

infected69 2011-04-17 19:43

Re: [Announce] Advanced Clock Plugin
 
have someone made a fullyworking flip clock yet?

skykooler 2011-04-18 14:48

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by infected69 (Post 990653)
have someone made a fullyworking flip clock yet?

My flip clock works, but has a drawing bug that causes it to overdraw itself; I am working on a patch to fix this.

ifraaz 2011-04-20 09:26

Re: [Announce] Advanced Clock Plugin
 
Can anyone help me, Been struggling with the source code. I just don't want seconds with "DateTimeClock".
Thing Is , I want It to show the full date but when I disable "Show seconds" the dates "Year" disappears.

Thanks In advance :)

XxPAPixSMURFxX 2011-04-22 18:07

Re: [Announce] Advanced Clock Plugin
 
does anybody know how to put the time and date in the middle of the desktop?

richwhite 2011-04-22 18:39

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by XxPAPixSMURFxX (Post 993814)
does anybody know how to put the time and date in the middle of the desktop?

Yes, it's not this app.

The easiest way is to use 'digiclock widget', it does time and year, and you can fix it to rotate or be portrait only or landscape only.
The more difficult way is QBW, if you want it to be more configurable

Uchman 2011-05-11 20:16

Re: [Announce] Advanced Clock Plugin
 
Hi!

First of all, thanks for your plugin. I really like it. I have a question, though -- I would like to customise the time a bit, and hopefully you could help. This is going to be a bit tricky, because it is a strange time format, used by the Polish Railways; it looks like this: "HH:MM T", whereas the "T" is in superscript and means "a tenth of the minute", so, for example "12:36:41" is "12:36^7" and "12:36:42" is "12:36^8". Do you think such a modification is possible?

Thanks in advance,
Uchman

Mentalist Traceur 2011-05-14 02:50

Re: [Announce] Advanced Clock Plugin
 
Uchman, I'm looking into this now (I'm in a good mood because I just verified that usb0 interface shows up on my Monitor Clock clock style just fine... The code looked right but I could never test it, and no one else on this thread ever did).

I'm not sure how to display text superscripted, but I presume you can just print smaller text and lift up its y coordinate so that it lines up with the bigger text like superscript would.

Give me a day or so, and if I haven't posted a clockstyle for you by then, remind me either on here or by PM.

Uchman 2011-05-17 08:37

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Mentalist Traceur (Post 1005902)
Uchman, I'm looking into this now (I'm in a good mood because I just verified that usb0 interface shows up on my Monitor Clock clock style just fine... The code looked right but I could never test it, and no one else on this thread ever did).

I'm not sure how to display text superscripted, but I presume you can just print smaller text and lift up its y coordinate so that it lines up with the bigger text like superscript would.

Give me a day or so, and if I haven't posted a clockstyle for you by then, remind me either on here or by PM.

Hi, Traceur!

Happy you are progressing with your work, and double that since you want to help me. A slightly smaller font for the superscript is a good solution, it should read well.

Thanks again, and waiting for your response.

infected69 2011-05-20 20:18

Re: [Announce] Advanced Clock Plugin
 
can i do something about the damn gap??

http://i51.tinypic.com/qrhhsx.png

infected69 2011-05-25 09:28

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by infected69 (Post 1011432)
can i do something about the damn gap??

http://i51.tinypic.com/qrhhsx.png

*****bump*****

Uchman 2011-05-26 19:59

Re: [Announce] Advanced Clock Plugin
 
Hi!

Just once again reminding about my strange clock style. Could anyone help?

Mentalist Traceur 2011-05-26 20:21

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Uchman (Post 1016251)
Hi!

Just once again reminding about my strange clock style. Could anyone help?

Right, so I just remembered this. Working on this now.

Mentalist Traceur 2011-05-26 21:15

Re: [Announce] Advanced Clock Plugin
 
1 Attachment(s)
A-a-a-a-and merry birthday.
Attachment 20394

Enjoy. Seems to support everything all the stock clocks support (so, everything except 12-hour mode and image icons at the same time, which none of the stock clock styles work with anyway).

Really sorry I promised this like a month ago and never got around to it.

- Edit -

Sorry, in case you don't know how to use tar:

You'll need root access (preferably with rootsh, but other ways are possible), then type this into an X-Terminal (this tutorial assumes you have rootsh installed):

Code:

sudo gainroot
Elevates that x-terminal to root user.
Code:

cd /
Changes Directory to "/", the root directory (This is because when I .tar these clockstyles, I tar them from /, so they have the entire objective path in them - so if you untar them from /, they go where they belong)
Code:

tar -xf [path/to/where/you/have/the/.tar/file/attached]
Replace "[path/to ... attached]" with where-ever you put the .tar file. If you downloaded it to the part of your N900 that you see through USB Storage Mode on your computer, the path is /home/user/MyDocs/ - so if you, say, have a folder called Downloads in there, and you put the above file in there, it would be at "/home/user/MyDocs/Downloads/DecimalClockPolRail.tar". Feel free to ask if you can't figure out what the path is to where you saved the file.
Code:

killall hildon-status-menu
This restarts the status menu, so Advanced Clock Plugin can reload all the clocks. So if you copied the file to it right, it'll now be able to display the clock style you unpacked. So now go to the settings menu for Advanced Clock Plugin and select "DecimalClockPolRail". (Alternatively you can select it first, then killall hildon-status-menu, but it won't show up until you do both of these).

You can then type "exit" in X-Term. This just exits you out of the root shell. You can type exit again to exit x-term as a whole. You can just close it and skip typing exit both times, but if you use "exit", the commands you used will be available in the history the next time you open x-terminal.

Uchman 2011-05-27 05:11

Re: [Announce] Advanced Clock Plugin
 
1 Attachment(s)
Quote:

Originally Posted by Mentalist Traceur (Post 1016292)
A-a-a-a-and merry birthday.
Attachment 20394

Enjoy. Seems to support everything all the stock clocks support (so, everything except 12-hour mode and image icons at the same time, which none of the stock clock styles work with anyway).

Really sorry I promised this like a month ago and never got around to it.

- Edit -

Sorry, in case you don't know how to use tar:

No worries, I am a patient man -- that is part of my job, too. Thanks a million, I will give it a go as soon as I get back from work. And thanks for your wishes as well.

Keep up the good work!

Uchman

-Edit-
Hi! It works perfectly, I tweaked it just a bit. You can see the result below. Just one more question: do you know if there is a chance of similar modification of the clock on the screen activated by single power button press (the slide to unlock screen)?

infected69 2011-06-17 13:59

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by infected69 (Post 1011432)
can i do something about the damn gap??

http://i51.tinypic.com/qrhhsx.png

bump again..


can someone help me?

F2thaK 2011-06-17 14:05

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Uchman (Post 1016474)
...Just one more question: do you know if there is a chance of similar modification of the clock on the screen activated by single power button press (the slide to unlock screen)?

This is being worked on...

http://talk.maemo.org/showthread.php...+widget&page=2

Mentalist Traceur 2011-07-08 04:26

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by infected69 (Post 1030839)
bump again..


can someone help me?

At all the people bumping "that damn gap" - I haven't looked at Advanced Clock Plugin code in a while, but when I have the time (not very soon, as people prob'ly know I have my own clock style still to package, and I'm currently maintning aircrack-ng and alpine, the latter or which and the iw I need to figure some stuff out with. I also got it into my head to do something with busybox-power and to do this one C command-line only program I'm working on myself. BUT, when I get to it, yeah, I'll look into the gap.)

If I make any progress figuring it out, I'll try to make another patch suggestion to Wonko that allows the clock style to declare "ignore_gap" as true/false, and if true, it will skip the gap. Or he can add it to the settings if he wants, honestly. Either way I'll only suggest a patch if it can be configurable, but if I can't figure that out I'll post here how to manually edit it to make ACP not have the gap. Should be pretty simple and once I do get around to it I'm sure I'll get results pretty quickly.

pusak gaoq 2011-07-08 06:21

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by infected69 (Post 1011432)
can i do something about the damn gap??

http://i51.tinypic.com/qrhhsx.png

those gap is reserve for your alarm clock icon...removing those gap will make you lose the alarm icon...

infected69 2011-07-15 08:32

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by pusak gaoq (Post 1046887)
those gap is reserve for your alarm clock icon...removing those gap will make you lose the alarm icon...

i know but when my alarm clock icon is displayed the gap is the same... so what can i do?

Hootenholler 2011-09-14 20:11

Re: [Announce] Advanced Clock Plugin
 
Quote:

Originally Posted by Mentalist Traceur (Post 914616)
If I was a good teacher, I'd get you on live chat and we'd go over your code together. But I'm lazy and making this myself was faster:
Attachment 16825

Just delete the ".txt" and put in the same folder as the other clocks. (/opt/maemo/usr/lib/advanced-clock-plugin/clocks/ - remember you have to be root to save there)

It's a mix of messy and okay code-wise. I left the copyright part as just Wonko's; I didn't change enough to bother adding my name.

If you look, all I did was change the text resizing values to those of the Digital Clock, commented out some of the lines, and edited one or two more, changing some variable names/order/position of things, etc.

You can delete the commented out lines without worrying about it (unless you want to add the year later). As is, it just doesn't show the year at all, and if you change it to twelve hour mode, the PM/AM appears after the date. The font size is pretty big by default, but that's what the scaling value is there for. If you want it much smaller, but want it centered instead of pinned down, just edit the 'move_to' line in the draw_clock section (and anywhere else they exist). Edit the second value, 35, to something smaller. For text, this determines where the bottom of the text is pinned to. 16±1 is about where the center of the box is. So ~25 or so might be a good spot if you shrink it... Depending on how much you shrink it of course.

Damn.

I am trying to get this to work, but it just will not display. I have moved the file to the /opt/maemo/usr/lib/advanced-clock-plugin/clocks/ folder, renamed it, and it shows in the list of clocks. I select it and click done, and nothing happens - the previous style remains displayed... If I use "pkill -f hildon-status-menu" the Status bar refreshes and the old clock style vanishes but the new one does not load.

Somebody please help! Could anyone perhaps try loading the DateTimeLinear style that Mentalist Traceur created and see if it works for them?

Thanks in advance...

Minhaz 2011-12-01 08:09

Re: [Announce] Advanced Clock Plugin
 
hello i was recently playin with my n900 and i uninstalled the date-time panel (default one) from my n900 now it no longer shows up in my settings and i realized that my date and time is messed up :(
i forgot the name of the panel to apt-get install it from x-term...
can someone kindly tell me the name to enter in x-term? thanks in advance

phamgia 2012-02-16 03:49

Re: [Announce] Advanced Clock Plugin
 
I accidentally deleted my original alarm icon. Could anyone share me a copy of the icon. Thanks in advance.

droll 2012-06-12 02:06

Re: [Announce] Advanced Clock Plugin
 
i tried entering a custom format string but it doesn't seem to do anything to the clock...i tried %H:%M....nothing. is there something else i'm missing?

droll 2012-06-13 10:39

Re: [Announce] Advanced Clock Plugin
 
nevermind. figured it out myself.

thanks.

ectaVgen 2012-11-22 12:12

Re: [Announce] Advanced Clock Plugin
 
1 Attachment(s)
Something from me) From Android Honeycomb lockscreen.
(gap is still there)
http://s017.radikal.ru/i440/1211/8c/d1eef9a4e1a5.jpg


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

vBulletin® Version 3.8.8