Hey all! Hope this doesn’t come across as too spammy, it started out as a little personal Python script, then escalated quickly over a couple of weekends.
Run Randomly is a tool that generates random Fartlek workouts and syncs them to your Intervals workout library. From there, you can sync them to your device using the existing Intervals integrations by adding it to your calendar.
I’ve been using it for one workout a week over the last few months, and it’s definitely brought a bit of fun into those sessions.
The Intervals interface does a great job of giving you a summary of the workout on the calendar. For these more random ones, I try to avoid looking at it too much (beyond, “ouch, that middle one will hurt”) to impart the true Fartlek spirit of surprise.
I’d love to bring a bit of randomness into your week, and would absolutely appreciate any feedback anyone has.
Good idea, let me suggest something. Before the download, have the possibilty to preview what we are going to download, just to see if we like it or not.
Great suggestion @CEscorcio. Initially I was keen to keep it a “surprise”, but totally understand that’s not really what most people want out of a workout.
I was planning on adding a screen in between the initial form and the creation on Intervals (partly because it takes a few seconds, and I’ve seen a couple of double form submits already) so I might try include it on there with a confirmation step.
Just looking at the code, this can happen after the login for a couple of reasons:
The “state” that’s sent to Intervals during the login has doesn’t match what we generated or is missing
The “code” that comes back once you’ve logged in is missing
It’s worth simply trying again to see if it works – there might have been a blip on either side that caused the login to fail.
On the Run Randomly side there’s a cookie that keeps a session id, and the state is saved in the session (on the server) and associated with that session id. If you have a plugin that deletes cookies when you leave the page, that could cause this issue.
Hope that helps! I’m planning a couple of changes based on @CEscorcio’s comment when I get a little bit of free time, so I’ll add better messaging around the errors when I deploy those.
Toggling it on the intervals sync is likely pretty easy. I’ll have a look into how to use power (or heart rate) zones in the FIT file today and see where I get to.
Oooof. Looks like there was an update that caused a bug in the way I’m uploading workouts.
I’ve just fixed that and the workout should be added to the Run Randomly folder again.
As simple workaroumd, would be nice to get the workout text to copy/paste into the workout editor.
I’ve added this in the “show full details” dialog on the preview page.
Also, would be great to have a bit more control over the Warmup/cooldown/max/min duration of the steps.
For this one I’m going to leave it for now. You can always update the workout to increase/decrease the warmup/cooldown once it’s on intervals. Keen to keep the generation as simple as possible for the time being.
Thanks for checking out the tool! I’ve been following a more structured plan lately, but you’ve inspired me to run a fartlek tomorrow