Are you tired of boring Strava activity names like "Lunch Run" or "Evening hike"?
Well, look no further. This Google Apps Script automatically renames your Strava activities in Ronnie Coleman style.
New activity name is a combination of words from two lists of strings. It avoids renaming the same activity more than once. Lists:
const listOne = ["Oooh", "Yeah", "Yep", "Light Weight", "Pow", "Let's Gooo", "Gotta Get Good", "Come On"];
const listTwo = ["Buddy", "Baby"];- Go to the Strava Developers Portal.
- Create a new application and generate your API credentials.
- Obtain initial 'refresh_token' by authorizing your application via OAuth 2.0 for API access. Importat, you'll need the following permissions: read,activity:read,activity:write
- Go to Google Apps Script.
- Create a new project by clicking on New Project.
- Copy the entire code from this repository into the editor.
- Replace the following variables with the ones obtained for your account.
const CLIENT_ID = 'YOUR_CLIENT_ID';
const CLIENT_SECRET = 'YOUR_CLIENT_SECRET';
const INITIAL_REFRESH_TOKEN = 'YOUR_REFRESH_TOKEN';For example if you only want to rename your "Heavy Stone Lift, Make Sad Head Voice Quiet" activities, fill it like this:
const ACTIVITY_TYPES_TO_RENAME = ['WeightTraining'];The script includes a function createHourlyTrigger to set up a trigger for running the renameStravaActivitiesHourly function every hour.
- In the Google Apps Script editor, select the createHourlyTrigger function from the dropdown.
- Run the function, it will create hourly trigger for you.
