Ilab Windows Vista Sidebar gadgets
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hacking into the widget: display calendar name.

2 posters

Go down

Hacking into the widget: display calendar name. Empty Hacking into the widget: display calendar name.

Post  neFAST Tue Feb 09, 2010 6:28 pm

Hi, first congratulations for your really incredible widget. It's very useful.
Today I edited the javascript code to display the name of the calendar like this

Date
[ColoredDot] CalendarName: Time - EventTitle
[ColoredDot] CalendarName: Time - EventTitle
[ColoredDot] CalendarName: Time - EventTitle

It works fine except for one thing.
My calendar names are basically the names of the associated people, except that I renamed them through google calendar to shorten them with just the 2 initials of the guys.
John Thunder Doe -> JTD

But the displayed calendar name seems to be the original one, not the renamed version.
I have the same problem in the preference menu where you select the calendar list.

Is it a limitation of the google API?

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Tue Feb 09, 2010 8:47 pm

First, thanks Smile

About the hacking: it is not the API, the gadget just caches calendar data and I think you renamed the calendars after they had been cached. If you click on Reload calendar data button on settings panel, it should be working.

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Tue Feb 09, 2010 9:01 pm

Nope I tried to logout, log back in and reload the calendar list: the names are still the long version.

However I noticed an important detail, the name is correct for my calendars but *not* for the ones labeled "other calendars".
Any clue?

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Tue Feb 09, 2010 9:26 pm

Well I don't have that kind so I can't try.

You could however switch on trace mode (you can find here in the faq how) and click reload calendar data, then you can check in the .log what data Google provides on those calendars. I just suggest this because you seem to be a tech guy Smile Or girl Smile

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Tue Feb 09, 2010 9:36 pm

I clicked "reload calendar list" in the preference menu.
Code:
2010-02-09T22:36:25: [Util.x115x] Reading setting: feedName7
2010-02-09T22:36:25: [Util.x115x] ... value: LDO - Wikisens (string)
The name should be LDO not LDO - Wikisens
So is it on Google's side, or maybe you can ask for a name and a customName through the API?

If you want to reproduce this bug, you can add any public calendar. Click on add in GCal under the "other calendars" section.
Then rename it in its settings and reload your widget.


Last edited by neFAST on Fri Feb 12, 2010 3:12 pm; edited 1 time in total

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Fri Feb 12, 2010 3:10 pm

Any idea?
I suppose you call the getTitle() function from the API?

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Fri Feb 12, 2010 8:51 pm

No, I dropped Google's javascript client library when the project was started as it was not usable in windows sidebar environment. I don't know whether it has been changed so that it could be used. Anyway, the communication works with the raw GDATA protocol on JSON basis.

About the ideas: the info you find is actually available as overridename by the calendar feed docs http://code.google.com/apis/calendar/data/2.0/schema/calendars_atom.rnc. However, I don't know yet how I could help you in this subject, as the way that you hack the source is not preferrable but I would rather not provide a public setting for this as your preferred usage mode is not really common and I would like to keep settings panel as simple as possible.

I have been thinking on a "hidden" setting possibility for a while, i.e. a config file besides the log or something like that. Then such uncommon settings for advanced users with spec requirements could be put there. Hmmm.

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Sat Feb 13, 2010 12:09 pm

Admin wrote:I have been thinking on a "hidden" setting possibility for a while, i.e. a config file besides the log or something like that. Then such uncommon settings for advanced users with spec requirements could be put there. Hmmm.
Sounds like a good idea :p

But in any case, when you display the list of calendars in the preference menu, why don't you use the overrid name? This sounds like the right way to do it, since users will see the same names in GCal and in your widget.

PS: by the way, why did ya remove that paypal button in the settings? :p

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Sat Feb 13, 2010 3:24 pm

You are right, the override name should (and will) be used.

I removed the paypal button because I decided to create a "pro" version with extra features instead. There will be a link for it on the new version that is being published, and you can try it even now on http://scippleron.com

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Mon Feb 15, 2010 9:33 am

Ok I did not knew you had a paid version. I may give it a try (10€ is quite expensive considering the differences with the free version).
I see you release it on your website and not through live.com, then why don't you push the latest update?

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Mon Feb 15, 2010 6:56 pm

I thought I will keep publishing the free version on windows live, but if they take weeks to accept I will change. A few days has been enough so far.

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Wed May 12, 2010 8:04 pm

Tried your new release. Advanced options is a nice addon. But I was expecting to see my "prefix events with calendar name" in there :p

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Wed May 12, 2010 8:29 pm

Yeeeaaaaaah (as it is said in Office Space)

Nah, that is still on my "reqs" list Smile

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  neFAST Fri May 14, 2010 9:30 am

Snif Sad
Did you add a protection against code edition?
I tried to rewrite my hack since you now handle renamed calendars. But as soon as I change one character in main.js, I get a "no event" message.
Can you confirm this?

neFAST

Posts : 17
Join date : 2010-02-09

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Admin Fri May 14, 2010 10:29 am

I have sent an email to the address you are registered here with

Admin
Admin

Posts : 693
Join date : 2008-10-13

https://ilab.forumotion.net

Back to top Go down

Hacking into the widget: display calendar name. Empty Re: Hacking into the widget: display calendar name.

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum