Closed tonimelisma closed 3 years ago
I will look into it, perhaps tomorrow
... "perhaps tomorrow", right.
I'm looking into this now, managed to log into my old google account. First of all, https://www.google.com/calendar/dav/first.last%40gmail.com/events
is probably not the caldav URL, that's the calendar URL. The caldav URL is just https://www.google.com/calendar/dav/
. I configured up the caldav_url, caldav_user and caldav_pass and ran "./calendar-cli calendar agenda"
.
First problem, google blocked me because I was using a "non-google-native app".
Second problem, google blocks calendar-cli because it "doesn't meet our security standards". I was allowed to turn on access, but Google really doesn't like it. I should probably look into that at some point.
Third problem ... a traceback ending with AttributeError: '_tzicalvtz' object has no attribute 'localize'
.
I'm looking more into it.
(there is also a google calendar cli ... search for gcalcli, probably it's more suitable if you know you will stick with google calendar and never use anything else).
Next issue, for repeating events (i.e. a repeating birthday with dtstart set to the year of birth), the start date of the first event is shown rather than the start date of the upcoming ocurrence.
Except for that, I'm able both to add and list events, so I'm unable to reproduce the issue.
Could you check if it works for you also, if you reconfigure it to use the shorter caldav_url (just https://www.google.com/calendar/dav/
)?
Next issue, for repeating events (i.e. a repeating birthday with dtstart set to the year of birth), the start date of the first event is shown rather than the start date of the upcoming ocurrence.
Seems to be a Google issue ... I could not reproduce that with my private calendar.
"Works For Me". I'll close this issue as for now. Let me know if you still are having issues, then we'll just reopen it.
I just found this:
The old endpoint https://www.google.com/calendar/dav is deprecated and no longer supported; use it at your own risk. We recommend you transition to the new endpoint format described above.
ref https://developers.google.com/calendar/caldav/v2/guide
According to the instructions there one is supposed to use OAuth to access the Google calendar. Unfortunately calendar-cli does not support OAuth as for now. I'll make a separate task for it, but it will definitively not be completed this year :-)
Running
calendar-cli --calendar-url "mycalendar" calendar agenda
on Google calendar returns 405:Caldav URL is
https://www.google.com/calendar/dav/first.last%40gmail.com/events
Running the latest cloned repo as of today, on macOS 11.0 and Python 3.9