-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Hint for exporting to Google Calendar #121
Comments
Actually, it appears to be worse than that. After adding UIDs I can import up to 3 events, but not 4 (although e.g. 1-3 and 2-4 and 1,4 work, so it doesn't appear to be some clash between the events themselves). Hence closing for now, since I don't have a way to make it work. |
was the error on google somehow expressive or meaningful? |
No, the error was not expressive or meaningful, it was just a generic "error, zero events imported". The same file supplied as a URL worked fine. I tried uploading from a different browser, same problem. I'm baffled. |
please provide test data to reproduce the problem. |
Here's some test data. If I upload the whole thing, I get an error "Error. Zero events processed." If I upload any two events, it works fine. If I serve the whole thing via HTTP, it works fine. BEGIN:VCALENDAR |
the uid is quite weak. regarding to the RFC, the UID must be a globally unique identifier ( http://tools.ietf.org/html/rfc5545#section-3.8.4.7 ) maybe this solves the problem? |
It doesn't help. The UID is an optional field, and if I remove it, it still doesn't work. (Originally I didn't have a UID field. I added it to see if it would help. I didn't see the spec that said it must be a GUID; thanks for pointing me to that.) Also, as I said, when I serve the file via HTTP, it loads fine. |
I've now got it working. Since Google's documentation is woefully inadequate, maybe it is worth documenting my findings in python-icalendar's docs. The following findings are only tentative; without either considerable testing OR better documentation from Google, it's very hard to be sure of the facts.
|
@rrthomas have you shared your script anywhere please? I'm using https://github.com/lxsli/add-vcal-to-google . The lack of TZ support is frustrating me (now DST has started) and if you've already cracked that nut I'd love to steal your code. |
@lxsli, sorry, I would need permission to share my code; but I didn't have any problems with TZs, so I can tell you what I did: I simply hard-wired it, like this:
This is possible for me because the calendaring system I'm working with is London-based, and includes only events happening in London, therefore the TZ is always the same; however, it does suggest that simply setting the TZ works. |
@lxsli you might want to have a look how we do it in khal at the moment, as long as you have no infinitely recurring events it seems to work well enough. |
I guess Google Calendar's implementation may have changed since the last comment on this issue, but as of now, I can successfully import events without |
I just used Python icalendar to write a script to turn information from a custom calendaring sytem into an iCal file I could import into Google Calendar. It worked fine, but there was one wrinkle; I wonder whether it might be worth documenting since Google Calendar is presumably a fairly popular target:
I found that my VEVENTS needed a UID field, or Google Calendar gave an error. (To be precise, this was only a problem when I had more than one event, which is annoying in itself, as it made the problem harder to debug.)
This is not in RFC2445, of course, where the UID field is optional.
If you're interested and tell me where you'd like it I'd be happy to write a sentence for inclusion in the documentation.
The text was updated successfully, but these errors were encountered: