-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "COLOR" tag #93
Comments
Google Calendar only support 11 different colors, matching would have to be done manually. |
Right. I think it will end up "not fully implemented" and have a couple short comings but I think it could still be useful to a lot of people |
Definitely, do you know if outlook is using the ical property or a custom property? |
Unfortunately it looks like Outlook might use "CATEGORIES". This is an official ICS property but not really meant for this use |
So let's see what our possibilities are here.
Did i miss anything? |
Let's not do # 3. I don't want to randomly start assigning colors to people's events. We'll just have it use the target calendar's color like it does now. I think # 1 is good (as best we can) and # 2 we should also do as best we can. I can try to come up with a list of possibilities for these. Similarly to above, I don't want to randomly assign colors. If we can't come up with a match (in this case: something that we've hardcoded) then let's not override the event's color and have it default to the target calendar's color |
My bad. There's an updated standard: https://tools.ietf.org/html/rfc7986#section-5.9 |
I understand you don't want to randomly assign colors to peoples calendars however being able to specify a custom color is of huge value. I manage multiple calendars for my children's sports and activities. They are typically shared by 3rd party apps and I came across your excellent work because of the number of times gCal wasn't updating for a number of days and I got caught. I would rather add the events to my kids main event calendars that are already shared rather than maintain additional calendars every time there is a new team, new season etc. The amount of calendar mgt I have to do is obscene: Adding new calendars to the kids accounts, sharing them with both parents, enabling syncing on each mobile phones and tablet for any newluy added calendars... rinse and repeat several times a year. Your scripts allow me to add the new calendar sync directly into my kids main event calendars that are already sync'ed. I am using the prefix to help identify the shared calendar source but without being able to control the color of the events on a source calendar-by-calendar basis it is very difficult to scan the calendar and quickly differentiate events. I tried to use 'colorizeBySourceCalendar' but I had no success (color always stayed as the color defined in the gCal account settings. Thanks for all your work. I think the prefix and the color options are extremely valuable. |
Are you using the version referenced here or did you do manual changes? |
I diff'ed both and then made 'selective' changes to the Master. I think that finding the #144 version in the trash concerned me regarding other changes that came later designed to address other issues with the code. Reading your response (thank-you) I believe I should have tested #144 unchanged before posting here. I will do some additional testing and then circle back before I tie up any more of anyone's time. |
I just realized that there are two versions linked in #144 and one of them is not working. Fixed it and moved it out of trash :) You need to add
to function createEvent, rest is unchanged. |
I am trying to get this to work but cant make heads or tails of this thread. Is this something that is still supported? |
Definitely, the latest code from this repo supports it. |
Interesting - I only started using this about 2 weeks ago. I have colored items in my Outlook calendar but they are all green in my Google calendar As per: https://imgur.com/a/utPvXGY Am I doing something stupid? :) |
Per what Jonas said:
The files in this repo may have more up-to-date code than the public script at https://script.google.com/d/1BOk8MDLbLaHh6SwG1M1tsgNXjkcC-79LE0QoipRuTDxbO3fMVvqoROQD/edit?newcopy=true . So you will have to follow the steps at https://github.com/derekantrican/GAS-ICS-Sync/wiki/Setting-up-the-script-manually (starting around step 5). You will also have to add your calendar & settings back. Think of it like testing a "beta" version |
I've rebuilt using this - and I've added:
to createEvent in handler.gs However, when logging The outlook event looks like this - as far as I can see this is the only way to add a color to an event |
Note what I said above for Outlook:
So Outlook doesn't directly use |
FYI after some poking around I discovered that for some reason my ICS feed doesn't include So my workaround is just to use the event name to manually set a color:
Using IDs from here: https://lukeboyle.com/blog/posts/google-calendar-api-color-id |
Sounds great - at some point or another, I imagine you'd have to add some custom workaround. Glad you've got something that works for you |
hello. I hope this post is in the correct place. Thank you for this script. It seems to work perfectly as designed. I could use help/advice, though. Is it possible to include and/or exclude certain Outlook categories from the export/sync into Google? It looks like somewhere in this chat string folks figure out how to draw/gather the Outlook category from the ICS...but what I can't sort out is where to insert that code. Forgive me, as I'm not really a programmer. Any assistance is much appreciated. |
Support VEVENT's COLOR tag. Docs: https://icalendar.org/New-Properties-for-iCalendar-RFC-7986/5-9-color-property.html
*Note that COLOR is a name (eg
COLOR:Banana
orCOLOR:turquoise
). According to the docs:The text was updated successfully, but these errors were encountered: