- Open BenchApp on your phone
- Go to your team's calendar
- Tap the share or export icon
- Look for "Subscribe to Calendar" or "Export Calendar"
- Copy the URL (starts with
https://ics.benchapp.com/)
- Go to BenchApp website and log in
- Navigate to your team calendar
- Look for calendar export/subscribe options
- Copy the ICS URL
- Open Google Calendar in web browser
- Go to Settings (gear icon) → Settings
- Select your family calendar from the left sidebar
- Scroll down to "Calendar ID"
- Copy the entire calendar ID (usually ends with @group.calendar.google.com)
- Go to script.google.com
- Click "New Project"
- Create Configuration File:
- Click the "+" next to Files
- Choose "Script" and name it
config - Copy the contents of
src/config.jsfrom this repository - Update with your actual calendar details
- Add Main Script:
- In the default
Code.gsfile, delete the default code - Copy and paste the code from
src/hockey-sync.js
- In the default
- Save the project (Ctrl+S)
- Run
setupSync()function first - Check the execution log for errors
- Verify events appear in your Google Calendar
- Run
setupTriggers()to enable automatic syncing
- Double-check your calendar ID
- Make sure the calendar is shared with your Google account
- Verify the BenchApp URL is correct
- Check if you're logged into BenchApp
- Try accessing the URL directly in a browser
- Check if there are upcoming events in BenchApp
- Verify the date range settings (DAYS_LOOKBACK/DAYS_LOOKAHEAD)
- Look at the execution logs for detailed error messages
If BenchApp's servers are temporarily down, the script will safely abort the sync rather than delete existing events. Check the execution logs for HTTP error codes.
Run this function to verify your config is loaded correctly:
function testConfig() {
console.log('FAMILY_CALENDAR_ID:', CONFIG.FAMILY_CALENDAR_ID);
console.log('HOCKEY_CALENDAR_URL:', CONFIG.HOCKEY_CALENDAR_URL);
}