Hacking into the widget: display calendar name.
2 posters
Page 1 of 1
Hacking into the widget: display calendar name.
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?
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
Re: Hacking into the widget: display calendar name.
First, thanks
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.
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.
Re: Hacking into the widget: display calendar name.
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?
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
Re: Hacking into the widget: display calendar name.
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 Or girl
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 Or girl
Re: Hacking into the widget: display calendar name.
I clicked "reload calendar list" in the preference menu.
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.
- Code:
2010-02-09T22:36:25: [Util.x115x] Reading setting: feedName7
2010-02-09T22:36:25: [Util.x115x] ... value: LDO - Wikisens (string)
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
Re: Hacking into the widget: display calendar name.
Any idea?
I suppose you call the getTitle() function from the API?
I suppose you call the getTitle() function from the API?
neFAST- Posts : 17
Join date : 2010-02-09
Re: Hacking into the widget: display calendar name.
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.
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.
Re: Hacking into the widget: display calendar name.
Sounds like a good idea :pAdmin 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.
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
Re: Hacking into the widget: display calendar name.
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
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
Re: Hacking into the widget: display calendar name.
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?
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
Re: Hacking into the widget: display calendar name.
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.
Re: Hacking into the widget: display calendar name.
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
Re: Hacking into the widget: display calendar name.
Yeeeaaaaaah (as it is said in Office Space)
Nah, that is still on my "reqs" list
Nah, that is still on my "reqs" list
Re: Hacking into the widget: display calendar name.
Snif
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?
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
Re: Hacking into the widget: display calendar name.
I have sent an email to the address you are registered here with
Similar topics
» Googler: Display mini-calendar permanently
» Longer calendar
» Add/Display estimated time
» Sports Calendar
» Calendar list
» Longer calendar
» Add/Display estimated time
» Sports Calendar
» Calendar list
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum