Skip to content

Automatically sync your Peloton schedule to Google Calendar

License

Notifications You must be signed in to change notification settings

delikat/peloCal

Repository files navigation

peloCal 🚲 📆

A simple script to synchronize your Peloton schedule with Google Calendar. peloCal works with both live classes and sessions across all activity types.

Setup

  1. Make a copy of the deployed script to your Google account by going to the Overview menu and then clicking the Make a copy icon on the top right.
  2. Store your Peloton credentials in the pelotonUsername and pelotonPassword script properties under Project Settings > Script Properties
  3. Deploy your project (optional). If you don't deploy/version your project the Head deployment will be used.
  4. Set up a time-driven trigger under Triggers on the left menu so it runs automatically. Below is an example on setting the script to run every 10 minutes:
    1. "Choose which function to run" should be set to run
    2. "Select event source" should be set to Time-driven
    3. "Select type of time based trigger" should be set to Minutes Timer
    4. "Select minute interval" should be set to Every 10 Minutes
  5. Update the timeZone to your timezone (see list) in appsscript.json in the Editor (this ensures events in the past do not accidently get deleted)
  6. Check for successful/failed executions under Executions on the left menu

Notes

  • Please be kind to the Peloton API and don't set too aggressive of a trigger (e.g. every minute), or you may find yourself rate limited.
  • This script interacts with unofficial, undocumented endpoints, meaning it can and probably will break if Peloton changes their API.
  • Thanks to @DovOps for his incredibly helpful unofficial Swagger docs for the Peloton API.

TODO / Feature Ideas

  • Output an .ics file for compatibility with non-Google calendar apps.

This is a fan project for personal use, and is in no way officially affiliated with Peloton Interactive.

About

Automatically sync your Peloton schedule to Google Calendar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published