Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tlvince/ical-to-gcal
Sync iCal to Google Calendar
https://github.com/tlvince/ical-to-gcal
calendar google-calendar ical
Last synced: about 1 month ago
JSON representation
Sync iCal to Google Calendar
- Host: GitHub
- URL: https://github.com/tlvince/ical-to-gcal
- Owner: tlvince
- License: mit
- Created: 2018-10-14T22:16:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T22:56:25.000Z (about 2 years ago)
- Last Synced: 2024-11-24T01:36:13.440Z (about 2 months ago)
- Topics: calendar, google-calendar, ical
- Language: TypeScript
- Homepage:
- Size: 1.83 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# ical-to-gcal
> Sync iCal to Google Calendar
## Prerequisites
### Google Calendar API
Create a Google Calendar and set up access via the API. See [Using Google Calendar API on G Suite][]. In summary:
1. Create a [Google Developers project][]
2. Create a service account, download credentials as JSON
3. Allow outsiders to [change secondary calendars][]
4. Share the calendar with the service account
5. Make a note of the calendar's ID[using google calendar api on g suite]: https://neal.codes/blog/google-calendar-api-on-g-suite
[google developers project]: https://console.developers.google.com/
[change secondary calendars]: https://admin.google.com/AdminHome?fral=1#AppDetails:service=Calendar&flyout=general### Environment
The following env vars are required:
```
GOOGLE_CALENDAR_ID
GOOGLE_APPLICATION_CREDENTIALS_BASE64
ICAL_URL
```Set `GOOGLE_APPLICATION_CREDENTIALS_BASE64` via:
```shell
echo GOOGLE_APPLICATION_CREDENTIALS_BASE64=$(jq -c '.' /path/to/creds.json | base64) >> .env
```## Usage
`ical-to-gcal`
## Author
© 2018-2019 Tom Vincent (https://tlvince.com)
## License
Released under the [MIT license](http://tlvince.mit-license.org).