Requirements before getting started:
- You will need the following items from Strava's website:
- client ID
- client secret
- athlete ID
The athlete ID can be grabbed from the strava website URL. For info: https://support.strava.com/hc/en-us/articles/216928797-Where-do-i-find-my-Strava-ID-?mobile_site=true
The script will gather the tokens for you and store them in your Scriptable folder in iCloud Drive under the name StravaAPI.json
- Download the script using supermamon's Import Script tool (find on his page), or copy the raw code and paste into a new script in Scriptable
- With the above mentioned items handy, run the script from within the Scriptable app
- You will be presented with a dialog to enter the values and accept them
- Next, you will be told to authorize on the next step
- Login to Strava and tap "Authorize"
- Copy the resultant URL to clipboard and return to Scriptable
- Let the script finish setup and run again to see the widget
- To add the widget to Home Screen, find the instructions here
This widget works best if set to medium size as shown below.
Note: This widget only displays totals that are marked as visible to everyone. Private items will come in a future update.