/scma-gcal-sync-rb

Fetches SCMA (Southern California Mountaineers Association) events and imports them into Google Calendar

Primary LanguageHTMLGNU Lesser General Public License v3.0LGPL-3.0

SCMA Google Calendar

Update Google Calendar

Fetches events from the SCMA (Southern California Mountaineer’s Association) website and exports them to Google Calendar.

Important
This repository has been archived and superseded by https://github.com/rfdonnelly/scma-gcal-sync.

Install

Run:

bundle install

Setup

For the Google Calendar export feature, you need to first create a calendar named "SCMA" in Google Calendar. Events will be exported to this calendar.

Next, follow the Google Calendar API setup instructions at Google Calendar API Ruby Quickstart.

Note
This application uses the OAuth client ID credential type.

Then run scma-gcal interactively with the --output gcal option and follow the instructions to generate a token.yml file.

Examples

Web to GCal

Fetches events from the SCMA website and imports them into Google Calendar.

scma-gcal -u <scma-username> -p <scma-password> -o gcal

Web to YAML

Fetches events from the SCMA website and converts them to YAML.

scma-gcal -u <scma-username> -p <scma-password> -o yaml > events.yml

YAML to GCal

Reads events from a YAML file and import them into Google Calendar.

scma-gcal -i yaml -f events.yml -o gcal

Limitations

Only all-day events are supported. SCMA events that are not all-day events are converted to all-day events. Effectively, the time information is stripped.

Pagination is not supported. SCMA events that are not on the first page of the events list are ignored.