Requires the free Scriptable App available from the iOS App Store.
Created by Eliot Landrum [email protected] #pocketmonster
-
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".
-
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.
-
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.
-
Tap and hold until you see a popup menu and preview. Tap "Download Linked File".
-
At the top of the browser, tap the little blue download button and then Downloads.
-
Tap the spyglass to go to the file in your downloads.
-
Tap the file icon.
-
Tap on "Move" in the menu.
-
Select "Scriptable" under "iCloud Drive" and then the Move or Copy button at the top right.
-
-
Now, open Scriptable and tap the "..." at the top right of the tile for Create Peloton Event.
-
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.
-
In the Peloton app, schedule a new class -- either Live/Encore or an on-demand.
-
From the class details page that says "you're in", tap the share button at the top right.
-
Find "Run Script" with the { } icon in the list and tap that.
-
Tap the "Create Peloton Event" tile.
-
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.
-
If it was successful, you will see "Event Created". Tap OK and then check your calendar!
- 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!