![]() |
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.
|
All times are GMT. The time now is 16:24. |
vBulletin® Version 3.8.8