![]() |
Re: [Announce] Advanced Clock Plugin
Hello! Anybody knows how should I set the default clock plugin on reboot? I tried exploring the python file but the settings I saw was only
Quote:
|
Re: [Announce] Advanced Clock Plugin
@Wonko : u should make it save custom setting on reboot.....thanks
|
Re: [Announce] Advanced Clock Plugin
Well that I don't know how... All I know is how to edit the python files :p
I would have done that already if I know how... |
Re: [Announce] Advanced Clock Plugin
Installed it today.
It's Awesome. |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
@Wonko: regarding the saving of settings: perhaps you can implement it through the GConf stuff that already exists on Maemo? Just have the setting saved through GConf, and read from the xml file it's stored in, either through GConf python bindins (if any exist) or Python's file reading abilities directly. This way other applications can read/edit the settings left by it a lot easier. I think. Honestly, I'm a coding newb, but hopefully this at least gives you some ideas.
@All: You may have noticed I mentioned trying to figure out some stuff to eventually produce my own clock style(s). Well, this is a long way from being done, but I got most of the Cairo stuff figured out (and I'd say about a fourth of the work for figuring out what to do code-wise figured out)) so I know how to render what I'm making, so here's a static (Meaning, none of the values except time changes in the currently displayed version, this was just me putting stuff where it will go) of how it will look: Attachment 16580 I'm hoping to get this done to a worth-posting-for-people-to-test/use state within a week, but realistically, it may take longer. A lot longer for the colorful bars, because that's something else I don't have example code to look at - whereas I DO have C code from which to understand how to do those first two white bars and the number. In case anyone's wondering, the whole point of that clock style is to stick some status information in there. The first two white bars are going to be duplicating cpumem applet functionality (my current idea is 5 bars instead of 4, without the extra flashing red on the top of the CPU bar, but if people like that, I'd do that), the number is going to be duplicating WiFi-Signal-Applet functionality (tells you quality of signal from 0 to 10), and the four colorful bars would (if I can figure out how to do this) indicate data transfer is going on. I'm not sure if this should be ALL data or just internet data specifically. The idea was is that much like having the CpuMem Applet there helps you at a glance go "wait a minute: I'm not running anything and my CPU is going at max - what the hell's running in the background?", this would do the same, but for random stuff connecting to the internet when it shouldn't, etc. Not really a problem on the N900 since it's mostly all open source apps, but it's not unfeasible that it could be useful.) At the end of the day, it's not like I think the clock style is for everyone, and for most just installing CPUMEM and Wifi-Signal applets would be enough. I just thought it was neat enough to warrant doing, and could save that limited status-area picture space for other stuff. Actually, if it was just CpuMem and Wifi-Signal, I'd never have bothered, but I was originally wanting to do what the colorful bars are doing for a while - and since I did that, I realized I'd have enough space for cloning CpuMem and WiFi Signal. |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
I didn't put in nearly as much effort as Mentalist Traceur in terms of figuring out the cairo stuff. But here's a screen shot of the tweak I made to the DateTime clock style:
|
Re: [Announce] Advanced Clock Plugin
There had been so much feedback that I lost the overview.
Hence, I'll respond in a random order. ;) Quote:
I have version 0.5.2-0 ready which improves this. Though, unfortunately, the servers had been down recently. Quote:
E.g.: for dynamic configurations like the "Twelve Hour Mode" or "Show Seconds" you need to either built the date and time strings by hand, or build a date and time format string by hand and then apply this using "datetime.strftime(...)". Anyway, you are forced to manually create some string. Of course, there are many ways to do things and anyone is free in the way how to implement custom clocks. ;) Quote:
Benefit, as you pointed out is that other programs can easily do manipulations as well. This is particularly useful for a later integration of the settings into the control panel. Unfortunately, I didn't find an easy way to contribute to the control panel via Python yet. Quote:
Am looking forward to see a "dynamic" version. :) Quote:
I already changed it here such that the clocks class name is used which should be much more straight forward. Am currently waiting for the extras builder to come up again. Quote:
@all creating custom clocks: it should actually be possible to package custom clocks separately and define Advanced Clock Plugin as dependency. Just in case you want to make your own packages. Otherwise, if you like, I can package your custom clocks with Advanced Clock Plugin if you send me the source files. Unfortunately, it seems like the time I can spend coding on this is getting short. Hence, the quick responses lately. Still, your feedback is highly appreciated. :) Edit: @Radicalz38 If you want to manually set the default clock you can edit /usr/lib/hildon-desktop/advanced-clock-plugin.py Also, I just got the notification that 0.5.2-0 left the autobuilder. |
Re: [Announce] Advanced Clock Plugin
@Wonko
Thanks! I mislooked self.clock_style on v5.0 but thanks for making a more easier way of setting a default :p |
Re: [Announce] Advanced Clock Plugin
I love this and have been looking for a way to get the date into the status bar for ages.
I have one question, is it possible for me to alter the default text size anywhere, the font i am usong across the rest of my N900 comes up massive? If i can alter that it would be perfect, thanks |
Re: [Announce] Advanced Clock Plugin
I pointed out how to change the font size in the first page. Find the line in the clock style you're looking for that says "self.context.set_font_size(#)" or something like that (it has "font_size" in it), and edit whatever # is up or down accordingly. The clock styles are in /usr/lib/advanced-clock-plugin/clocks/ ; so you have to edit them as root.
|
Re: [Announce] Advanced Clock Plugin
I did read rhrough the whole thread but must of missed that, sorry & thanks :)
|
Re: [Announce] Advanced Clock Plugin
2 Attachment(s)
I created a clock plugin, it is based on the binary clock but the color changes based on the time. Here is the code:
Code:
# |
Re: [Announce] Advanced Clock Plugin
Is it possible to have two clocks in the status tray, with different time zones?
|
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
Nice to see more and more custom clocks being created. :)
I just uploaded version 0.6.0 to extras devel. This version finally uses gconf for storing the settings. Hence, your settings will be persistent and not getting lost, e.g., on reboots. The use of gconf also enables other applications to set option values. This could be particularly useful for implementing a "settings application" which could hook into the control panel. Furthermore, this version adds a setting for "scaling" the font size. This is especially useful for fonts that are too big (as pointed out by Raif), or just if you want a smaller display. |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
Quote:
|
Re: [Announce] Advanced Clock Plugin
How do you create a package? I am working on a few more clock themes and want to post them to extras-devel, but I don't know where to start. Is there a good tutorial somewhere (or a few steps someone could list)?
|
Re: [Announce] Advanced Clock Plugin
cant update to version 6......or i have to remove the old first??
|
Re: [Announce] Advanced Clock Plugin
Were you able to install the earlier versions? What error is it giving you? What do the logs say? It's useless to just say it didn't work if you aren't going to go into as much detail as you possibly can.
|
Re: [Announce] Advanced Clock Plugin
i'm not saying it did't work for me.....i just cant update to the latest version(CURRENT v5) via app man and xterm.....
|
Re: [Announce] Advanced Clock Plugin
Hmmm... Well, first thing in my experience, is reboot. Sometimes it actually solves some problems, when you don't know what process to kill, but something needs to be killed/restarted.
Does AppMan / FApMan / XTerm give you any error messages when you try to install? (Particularly the X-Term error messages may be the most useful.) |
Re: [Announce] Advanced Clock Plugin
from xterm :
Code:
preparing to replace advanced-clock-plugin 0.5.3-0 (using .../advanced-clock-plugin_0.6.0-0_all.deb) ... |
Re: [Announce] Advanced Clock Plugin
working after remove pyprayertime.....thanks...
|
Re: [Announce] Advanced Clock Plugin
How do you change the configuration from another application? An error in my next clock plugin that I'm working on causes it to crash on startup, with the result that I can't change it to another clock.
|
Re: [Announce] Advanced Clock Plugin
There is few bug I guess ;
When I reboot my N900 , the advance clock settings goes to it's default and doesn't stay what I had set to. If you enable "Seconds" then chances are your N900 will be Laggy. |
Re: [Announce] Advanced Clock Plugin
Just so that you're not discouraged Wonko: With the latest version, I have neither of the bugs ifraaz is experiencing. Seconds tick just fine for me, never had lag, nor has anyone else indicated slowness (though I can believe they may extremely slightly increase battery consumption, if you keep screen on for long). Also, I just rebooted and my settings stayed the way I had set them before shutting off, which makes testing changes to clock styles so much more enjoyable, since you don't have to change your settings every hildon-status-menu restart.
ifraaz: Can you list what else you might have running in the background? Do you overclock? What clock style are you using? In what font? What settings otherwise? Skykooler: I'm not ignoring you, I just don't know the first thing about making a .deb, or running it in autobuilder, and I haven't looked through all the code for Advanced Clock Plugin on my N900 for a few versions now, so I don't know where exactly the new one stores the settings. |
Re: [Announce] Advanced Clock Plugin
also ifraaz R U running version 0.6.0-0 ?????
edit: my settings are saved after reboot also, |
Re: [Announce] Advanced Clock Plugin
My bad, forgot to remove the .svn directories. :o
This is the reason for the problems on installation. Actually, this problem does only occur if another package had been installed before which has the same issue. ;) Just uploaded version 0.6.0-1 which fixes this problem. |
Re: [Announce] Advanced Clock Plugin
Skykooler, I found what you're looking for: Change the clock set as default with either gconftool or gconftool-2.
It's in (from the GConf perspective, the actual paths are something convoluted, which I found once but don't remember the location of right now) /apps/Maemo/advanced_clock_plugin. So you'd use, say: Code:
gconftool-2 /apps/Maemo/advanced_clock_plugin/clock_name -t string -s DigitalClock Also, -g tells you what the value of the entry you give the path to is, -a tells you what the values are of everything within a certain gconf folder. |
Re: [Announce] Advanced Clock Plugin
Oh ; So there was a upgrade for it . Thanks f2thank I just upgraded it .
yes i overclock . but right now its on default (600mhz) . my custom kernel gone since i was doin a multiboot to NITDroid . before was 500-900mhz and I still had Lag while I had "Seconds" enabled. ;) Running on background ? Bet , same things as you are running ;) I am still experiencing the same thing in this version as well . I am using DecimalClock, Twelve hour mode , fill , show alarm indc and have got Sans as its font and it works fine , but still settings reverts back when I shut down and turn on . and when the "Seconds" is enabled I find it laggy again . Try it for your self . |
Re: [Announce] Advanced Clock Plugin
Quote:
Code:
gconftool-2 --set --type string /apps/Maemo/advanced_clock_plugin/clock_name "DecimalClock" See also: http://wiki.maemo.org/Documentation/...ferences-Gconf Edit: Mentalist Traceur was a bit faster. ;) Edit2: With respect to upgrading: I am currently experiencing that the application manager is not syncing with extras-devel etc. This might be the reason why you don't get the most recent version. |
Re: [Announce] Advanced Clock Plugin
I now have my third clock plugin done! Inspired by Mentalist Traceur, it is based on my first clock but has three more binary indicators showing internet connection speed, cpu usage and wifi signal level. I am working on uploading to extras-devel. Unfortunately the wifi strength is provided by python-wifi which, although present in the repository, does not show up in either Application Manager or Faster Application Manager (I installed it with apt-get). I hope someone can test this and tell me whether the application manager will install that automatically as a dependency.
|
Re: [Announce] Advanced Clock Plugin
Lol, at this rate, mine won't be useful, since your will soon probably show everything I was intending to display. (Which is just fine. I lack the skills to implement most of my ideas, but other people seem to like them and do them, so it works out.) And I've been spending today on gconf as of the last few bits of time, and lxp's injection driver patches + kernel including them for most of the other parts of the day.
Oh, and yes, I think it should install python-wifi just fine. Stuff that's 'hidden' from normal users in the two app managers DOES get installed if it's a dependency. They're just hidden on Maemo so that end-users don't go downloading stuff because it sounds cool, without knowing that it does nothing that they could use. |
Re: [Announce] Advanced Clock Plugin
Quote:
You can, e.g., use py2deb for packaging: http://wiki.maemo.org/Py2deb Do not forget to edit the installed py2deb in order to fix the bugtracker bug as mentioned in the wiki. The reason why you don't see python-wifi in the application manager is simply that it's a library and not an "application" intended for use by the end-user. This is perfectly ok. You simply need to specify it as a dependency of your package (see the py2deb howto). Also you would (obviously) need advanced-clock-plugin as dependency. ;) To get started with py2deb you can also have a look at the advanced-clock-plugin subversion repository on garage.maemo.org: https://garage.maemo.org/scm/?group_id=2016 Particularly "make.py" and the directory structure. For a start I would then suggest to put your clocks in the same directory as the "stock" clocks: /usr/lib/advanced-clock-plugin/clocks For the future we need to think about a mechanism to avoid name collisions between the clock files of different add-ons. |
Re: [Announce] Advanced Clock Plugin
Quote:
As a side note, does anyone know what the maximum signal strength python-wifi will report for the n900s wifi card? |
Re: [Announce] Advanced Clock Plugin
Installed 0.5 which worked fine.
updated to latest version 0.6 and the clock dissapeared from status bar. rebooted but still nothing. Uninstalled and then reinstalled 0.6 but still nothing appears in status bar. |
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
i have one suggestion...why dont u put the plugin to setting like theme customizer?? just my 2 cent..
|
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
Alright,
I created a settings UI which is also accessible via the control panel. It is called Advanced Plugin Desktop Settings UI (names getting longer and longer). I just uploaded version 0.7.0 of Advanced Clock Plugin to extras-devel. This version installs the new settings UI as dependency and disables the status menu settings button. |
All times are GMT. The time now is 16:29. |
vBulletin® Version 3.8.8