linuxsoftware / ls.joyous

A calendar application for Wagtail
BSD 3-Clause "New" or "Revised" License
74 stars 35 forks source link

Suggestion: Sync with google #21

Closed the-moog closed 5 years ago

the-moog commented 5 years ago

There are a few project: Python Google Calendar API or django-google-calendar allows Python to read and write to a given Google calendar.

How about adding hooks to your code so that when events are created, assuming the client_secret.json file is present, then new calendar events (pages) would also populate Google calendar. Also some sort of hook (perhaps a cron) to merge events from Google calendar into Joyous.

linuxsoftware commented 5 years ago

Thanks for the suggestion and links.

You can already subscribe to a Joyous calendar in GoogleCalendar. To do this:

  1. Log in to your GoogleCalendar
  2. Click "Other calendars +" (Add other calendars)
  3. Choose "From URL"
  4. Enter the url of your Joyous calendar with "?format=ical" on the end, e.g. http://demo.linuxsoftware.nz/joyous/?format=ical
  5. Change any other settings you like (e.g. the calendar name)
  6. Exit settings by clicking "<-" up the top-left.

GoogleCalendar will now display your Joyous events and will sync with changes that are made.

You can also export from GoogleCalendar and import in to a Joyous calendar. To do this:

  1. Log in to your GoogleCalendar
  2. Choose Settings | Import & export | Export
  3. Unzip the file that is downloaded
  4. Log in to your Joyous calendar
  5. Pick a calendar page, or create a new one.
  6. Select the Settings tab
  7. Choose the calendar (not the address book) file that you unzipped
  8. Select “Publish” and events will be imported as published pages.

Joyous will now display your GoogleCalendar events, but you will have to manually repeat the process to re-sync them

linuxsoftware commented 5 years ago

I have added this info to the Read the docs