![]() |
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
Quote:
I reverted the installation procedure to the old one for version 0.15.1 which I just uploaded to extras-devel. The "Clock & Alarms" entry is indeed a must-have. Unfortunately, this means for some (those with some custom modifications to "/etc/hildon-desktop/status-menu.plugins") again that Advanced Clock Plugin won't work. But for the big majority this restores the previous functionality. Apparently, these are the trade-offs one has to accept. :rolleyes: At least until there is a better solution which applies to all of us. |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
Attachment 17407 Now, I may have a basic patch for you, to make it possible for a clock style to specify that it is to be redrawn every second even when only minutes are shown (necessary for mine, because I have all the cpu/mem/internet-traffic bars updating every second, but I'm sure other people might come up with clock styles like mine..). I changed line 165 in /usr/lib/hildon-desktop/advanced-clock-plugin.py from: Code:
if self.clock.get_show_seconds() or (self.old_time == None) or (self.old_time.minute != self.time.minute): Code:
if self.clock.force_redraw == 1 or self.clock.get_show_seconds() or (self.old_time == None) or (self.old_time.minute != self.time.minute): Code:
self.force_redraw = 0 - Edit - You can ignore the first part, I see the issue has been identified already. |
Re: [Announce] Advanced Clock Plugin
Also wait what?
Quote:
That said, while you're at this way of replacing that .desktop file with this one, can't the future of Advanced Clock Plugin also involve replacing Clocks and Alarms (or whatever) with a better more versatile version? (That's what I thought you were doing at first.) |
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
For some reason after this update my decimal clocks etc now no longer work/show. Binary still shows up but everything else ... nada, regardless of the settings.
Advice? |
Re: [Announce] Advanced Clock Plugin
Quote:
- Edit - Now that you're shipping images in with the clock styles, perhaps we can make even more optification? I mean, the images don't need to be in rootfs, right? BTW: Since I let the latest update to it's thing, Wonko, I see that it fixed the Clock and Alarms status menu button with the new update. So just some verification for you, it should properly revert back for them. Now that I've figured out how to do this keep-updating-clock thing, I'm probably within a day or two of spare fiddling time to releasing the clock style I've been working on for like two months now. It's a bit abysmal how long it's taken, but hey, I went from someone with no coding ability to someone who can actually sorta-kinda do basic Python stuff. And all thanks to you, Wonko, for liking my original 'make your status menu binary clock have the option to show normal numbers too'. |
Re: [Announce] Advanced Clock Plugin
hmmm. made some test images for a flipclock, worsk fine, but the seconds digits are not cycling, they're just static. anyone have advice??
|
Re: [Announce] Advanced Clock Plugin
Quote:
Though, I'd prefer to use a boolean variable, so you would use "self.force_redraw = True". I think for the time being, it should be ok if this is not set via the settings ui but is set only by clock styles needing a refresh every second. Quote:
Thanks for the info. Quote:
"/usr/lib/advanced-clock-plugin" is a symlink pointing to some place in /opt. Quote:
I could add it again and add an option to the settings UI for it. By the way, what do you mean with "creating the image pattern"? The code for playing the animation is in "/usr/lib/advanced-clock-plugin/pixbufanimationplayer.py" Quote:
Code:
DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu Edit: Quote:
I am already very short of time and this project would really blow my schedule. Having said that, my schedule is already tight enough. ;) |
Re: [Announce] Advanced Clock Plugin
Yes, I agree, it doesn't need to be a settings thing - not the way I ended up implementing it (if enough clock styles arise that have this optionally, it could be useful in settings, but until there's heavy demand/need for it, it's fine being manually set in code by the clock style).
And I also agree with you on the True/False thing. I just screwed it up as a boolean initially when I figured out how to do it. (I used "true" instead of "True", which caused errors, and I wanted to make sure it worked at all, so I didn't fiddle too much with figuring out the right way of doing it. The post you just made cleared that up though.) |
Re: [Announce] Advanced Clock Plugin
Alright, just uploaded version 0.15.2 to extras-devel which adds the self.force_redraw option.
|
Re: [Announce] Advanced Clock Plugin
2 Attachment(s)
i dont know if other member have my problem on their n900 but after i have upgrade this plugin from 0.14.7 to 0.15.2 my clock (on the status bar is missing)...
the clock is there on my status bar but when i click the clock i cannot enter the clock menu (add alarm/delete alarm).... i have try removing (purge) advanced clock plugin but after restart my n900 still i lost my clock menu on the status bar... reinstall the plugins again yet still my clock menu is missing... any idea why???? have a look here.... |
Re: [Announce] Advanced Clock Plugin
@Wonko: Much appreciated that you included it. (I must admit I'm proud of myself, even if it was something you could've done yourself, and even though it was rather simple in retrospect. It was still some of the most advanced python-ing I've done - because so far all my other python is within the confines of the clock style - which means I don't have to spend too much time understand how all the higher-level stuff works. This was across multiple .py files, which was new to me.)
pusak gaok: Either your /etc/hildon-desktop/status-menu.plugins file got messed up, or /usr/share/applications/hildon-status-menu/clock-plugin.desktop file got named wrong. (This is linked to the different ways in which Adv. Clock installs itself.) To better diagnose your problem, paste the outputs of: Code:
ls /usr/share/applications/hildon-status-menu/ Code:
cat /etc/hildon-desktop/status-menu.plugins |
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
So cool, and nice work with the Nixie number images!
I turned yours green to match my screen better; here they are if anyone else wants them: http://www.sendspace.com/file/7a95z0 http://www.sendspace.com/file/fwbrue Pusak: How did you change the color of the icon indicated below? |
Re: [Announce] Advanced Clock Plugin
Quote:
|
Re: [Announce] Advanced Clock Plugin
@Mentalist Treaceur : done...i just figure it out why the clock & alarms didnt show on my status bar....yes it some how got renamed from
clock-plugin.desktop to clock-plugin.desktop.distribut.... i just have to rename it back to clock-plugin.desktop.... thank you for your help.... @rotoflex : which colour do you mean,is it the clock widgets that i use??? |
Re: [Announce] Advanced Clock Plugin
Happy to help.
He means the button in the top left - the one that you click on to open up the application launching menu. (The one with the six small squares.) |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
I installed your last release and I observe status-menu.plugins file. I attached to you the original and the file after installation of advanced clock plugin. As you can see your installation delete some parts of my file:
[profilesx-sp-plugin.desktop] X-Desktop-File=/usr/share/applications/hildon-status-menu/profilesx-sp-plugin.desktop X-Status-Area-Position=18 X-Status-Menu-Position=20 [wifi-switcher.desktop] X-Desktop-File=/usr/share/applications/hildon-status-menu/wifi-switcher.desktop X-Status-Area-Position=18 X-Status-Menu-Position=21 [simple-brightness-applet.desktop] X-Desktop-File=/usr/share/applications/hildon-status-menu/simple-brightness-applet.desktop X-Status-Area-Position=18 X-Status-Menu-Position=22 [quick-launch-sb.desktop] X-Desktop-File=/usr/share/applications/hildon-status-menu/quick-launch-sb.desktop X-Status-Area-Position=18 X-Status-Menu-Position=23 could you solve this? |
Re: [Announce] Advanced Clock Plugin
2 Attachment(s)
I had a new small problem. As you can see in my screenshot after the restart the alarm's icon is very very near to the clock, I have to disable the alarm and reset the alarm to see it not so near...
have you any idea? I attacched two image, near and not near |
Re: [Announce] Advanced Clock Plugin
Quote:
I looked at your attached files, and looked at my own, and I think I see what went wrong. Have you, by any chance, installed any other programs that have modified those files? Anything that would install Status Menu applets? Note that the following entry exists already in the original file, in the same spot at which your new file got cut off at (lines 93-98 in both files): Code:
[advanced-clock-plugin.desktop] There really needs to be a more standardized way of writing to the status-menu.plugins file. Wonko, here's my suggestion: Use whatever method you use to seek out the respective lines of code - delete them, but ONLY them - I'm sure there must be some way to delete just from-current-line-to-five-lines-down? Then you can just delete however many lines were initially added. As a safety feature, DO make it actually FIND the right string in the status-menu.plugins file, instead of simply, say, remembering that it was on lines x - y. That way, if people manually modify that file, it's less likely to get further messed up. Yes it might make the uninstall script slightly slower (maybe not noticeably so, or maybe I'm wrong and it'll be the same speed, IDK), but that's easier than people having chunks of Status-Menu plugin configuration deleted. ALSO, to be clear, you don't HAVE to specify entries for some of these things. Meaning, your current Advanced Clock doesn't have a button in the status menu. So you don't have to specify a status menu position - just the special status area clock position. (i.e. Unless you intend on eventually adding a button, this doesn't have to be added: "X-Status-Menu-Position=22") Actually, things like Flashlight Applet and cpumem applet don't even ADD themselves to the status-menu.plugins file. It's not even necessary normally - IT IS necessary in the case of what you're doing though, because you have to override the stock clock applet (but for the button, if you're okay with it being auto-positioned in alphabetical order with the other 'unassigned' buttons, under all the assigned ones, you still won't need the X-Status-Menu-Position=22 line). Wouldn't it be relatively easy to clone the Clock and Alarms status menu button? You don't have to replace the entire thing like I suggested earlier, you can just make your clone button display the same info (Day/Night clock icon, which is the only slightly annoying one to clone, because of the custom icons people bring in sometimes, "Clock and Alarms" in primary text, and the date in secondary smaller text), which launches the default clock program, just like the Clock and Alarms status applet does? This lets you go back to the 'safer' install method you tried out, with only marginal extra button coding, and avoids the need of coding your own complete replacement - but makes that an option for when there's either time, or someone like me gets off their *** and figures out how to do it. If not that option though, we return to the former - just having the uninstall/update script seek for a unique part of the string, like the first two lines: [advanced-clock-plugin.desktop] X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-clock-plugin.desktop ...and then delete those +however-many-other-lines-were-added-by-the-installed-version, instead of everything afterward, would prevent a lot more errors. the only other errors would be if people manually edit that particular part of the file and just add extra lines, or delete one - which, well, you shouldn't do unless you're willing to figure out what went wrong at least partially on your own. Either way, that's a corner case, while having other programs get installed that include extra entries after yours isn't really. On the other hand, iscio, I think all of your applets should still be showing up correctly, right? I don't think any of that stuff replaces another applet. The only thing you might notice is their position might be different, because they'd get auto-sorted. |
Re: [Announce] Advanced Clock Plugin
ok thank you very much for this complete answer.
I confirm that I manually add these stings Quote:
thank you again Mentalist Traceur (have you an idea also for my last post?) |
Re: [Announce] Advanced Clock Plugin
Quote:
And no, sorry, I don't know what the solution to your other problem would be. I haven't had the chance to look into it (fiddling with my own clock style primarily, as of late), nor do I have any experience with this using-pictures-to-display-numbers approach, as I never wanted to use it and haven't even integrated it into my clock-style yet. |
Re: [Announce] Advanced Clock Plugin
yes I add my strings above the Advanced-Clock-Plugin entry. But after an update I lost these strings. Now I have a backup, but I hope in a solution by the autor.
thank you |
Re: [Announce] Advanced Clock Plugin
Quote:
Wonko, I'll do my best to find the time to look at the install-related stuff over the next week or so, and see if I can submit a patch to you to fix this, assuming you don't get around to it yourself, and no one else more competent does it. |
Re: [Announce] Advanced Clock Plugin
Quote:
Apparently, the sed one-liner was not working as it should. This issue should be fixed in 0.15.3 which I just uploaded to extras-devel. |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
I would just like to say " Thanks for all your hard work " This is a wonderful plugin. IMO this is a must have on the N900!
This is what I have done with it...http://i1031.photobucket.com/albums/...ClockIcons.png Thanks again.. Kind regards Qosmio |
Re: [Announce] Advanced Clock Plugin
Quote:
wonko have you any idea for my question about alarm icon? thank you..I'll test your new release |
Re: [Announce] Advanced Clock Plugin
forgive me if this has been discussed, but have been searching for about an hour now with no luck.
I have just uninstalled the plugin and the stock clock is gone. Can anyone tell me how I go about reinstalling the default clock? Thanks in advance [edit] never mind - figured it out. |
Re: [Announce] Advanced Clock Plugin
Quote:
thx |
Re: [Announce] Advanced Clock Plugin
1 Attachment(s)
my alarm is here...but I hope someone could solve my problem
|
Re: [Announce] Advanced Clock Plugin
Quote:
And about you problem: Well, i have a similar problem my alarm icon is to far away from the clock. (at least 5mm) seems like the distance is some how related to the font and image your using. correct me if I'm wrong... Anyhow, I didn't find a fix, yet... |
Re: [Announce] Advanced Clock Plugin
i resize the the icon and its perfect for me
http://i.imgur.com/4ZZNz.png |
Re: [Announce] Advanced Clock Plugin
Quote:
thanks |
Re: [Announce] Advanced Clock Plugin
Quote:
i tried your original icon but its larger so i resized it and thats what you guys are seeing on the pic. |
Re: [Announce] Advanced Clock Plugin
could you give me your size?
|
Re: [Announce] Advanced Clock Plugin
|
Re: [Announce] Advanced Clock Plugin
ok 21x21, now I'll test this size...
and the size of flipclock? I use 110% with the file of qwertyberty |
Re: [Announce] Advanced Clock Plugin
one issue I have with this app:
there is no plain digital clock like the stock one. I know if you want it, you can uninstall, but what if you want to swap between at your leisure? not possible, not easily anyway. just a suggestion :D |
Re: [Announce] Advanced Clock Plugin
Quote:
|
All times are GMT. The time now is 07:39. |
vBulletin® Version 3.8.8