Skip to content

Latest commit

 

History

History
86 lines (50 loc) · 3.81 KB

File metadata and controls

86 lines (50 loc) · 3.81 KB

Peloton Create Calendar Event Scriptable

Requires the free Scriptable App available from the iOS App Store.

Created by Eliot Landrum [email protected] #pocketmonster

Installation

  1. Download the Scriptable app from the App Store and open it up. When you open it up, it creates a folder on your iCloud Drive called "Scriptable".

  2. Using Safari, not Google Chrome, from your iPhone or iPad, save the script file to your iCloud Drive > Scriptable folder. If you have a Mac with the same iCloud account, this might be a little easier to do from there.

    1. From the GitHub website with the script file visible, if you are on your phone you may see a "...", tap that and then when you see "View raw" or "Raw" buttons.

      View Raw Button

    2. Tap and hold until you see a popup menu and preview. Tap "Download Linked File".

      File Preview

    3. At the top of the browser, tap the little blue download button and then Downloads.

      Go to Downloads

    4. Tap the spyglass to go to the file in your downloads.

      Downloads

    5. Tap the file icon.

      Downloads

    6. Tap on "Move" in the menu.

      File Menu

    7. Select "Scriptable" under "iCloud Drive" and then the Move or Copy button at the top right.

      Folder Selection

  3. Now, open Scriptable and tap the "..." at the top right of the tile for Create Peloton Event.

    Scriptable Main Screen

  4. Edit the variables with your Peloton user information (this information is NOT sent anywhere besides the Peloton API) and then tap Done. Take care to keep the quotes around your info.

    Script editor

How to Run

  1. In the Peloton app, schedule a new class -- either Live/Encore or an on-demand.

    Peloton Scheduled Classes

  2. From the class details page that says "you're in", tap the share button at the top right.

    Peloton Scheduled Class Details

  3. Find "Run Script" with the { } icon in the list and tap that.

    Share Pane

  4. Tap the "Create Peloton Event" tile.

    Scriptable Scripts

  5. The first time you run this script, grant calendar permissions and then force quit both Scriptable and Peloton apps and share the class to the script again. If you get a message about not finding the calendar, be sure to check the calendar permissions in system Settings under Scriptable and then restarting both applications.

  6. If it was successful, you will see "Event Created". Tap OK and then check your calendar!

    Scriptable Scripts

    Scriptable Scripts

Known Limitations / Issues

  • If the calendar you are adding to is a Google calendar, then your default alerts will be added. Otherwise, unfortunately, Scriptable doesn't currently support adding an alert to the calendar item. You'll have to manually modify the event after it's added to add the reminder alert.
  • Some of the classes start at :59 instead of :00 for some reason. I'm looking into why.

That's it! Let me know what you think! See you on the leaderboard!