Skip to content

Commit 6266379

Browse files
committed
Support reoccurring events.
1 parent 9d7f5da commit 6266379

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Details of the event will be left out - it will only be visible as 'Private even
2929
```
3030
- Run it with `npx -y @cirqusde/google-calendar-sync` (or even better: Add a cronjob to run it repeatedly)
3131

32+
## Known caveats
33+
- Google calendar does not manage event reminders per event but instead manages them per event & user:
34+
Multiple users that attend the same event can have different reminders, and a user can only manage its own reminders.
35+
As the events are created by a service account, the service account can only change its own reminders, not yours.
36+
All events created by the service account will have the default reminders for your calendar set. This might be fine for you with the default settings (10 mins before the event), but you also might want to remove the default reminder within your (work) calendar settings.
37+
3238
## Publish to npm
3339
- Bump version in `package.json`
3440
- Run `npm install`

index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const syncCalendar = async (): Promise<{
3737
calendarId: configEntry.sourceCalendar,
3838
timeMin: earliestDate.toISOString(),
3939
timeMax: latestDate.toISOString(),
40+
singleEvents: true,
4041
});
4142
let sourceEvents: calendar_v3.Schema$Event[] = sourceEventsResponse.data.items || [];
4243

@@ -48,6 +49,7 @@ const syncCalendar = async (): Promise<{
4849
calendarId: configEntry.targetCalendar,
4950
timeMin: earliestDate.toISOString(),
5051
timeMax: latestDate.toISOString(),
52+
singleEvents: true,
5153
});
5254
const targetEvents = targetEventsResponse.data.items;
5355

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cirqusde/google-calendar-sync",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"repository": "https://github.com/cirqusde/google-calendar-sync",
55
"description": "Sync events from your private Google Calendar to your work Google calendar.",
66
"author": "Simon Leiß",

0 commit comments

Comments
 (0)