iCalendar Compatible Calendar Export

With AI Endurance having directly integrated with the vast majority of the hardware and software that is in use by people this has eliminated the need to use an intermediary (such as intervals.icu or TrainingPeaks) to get planned workouts to places and the completed workouts back. One area that I used in the past which would be nice to continue is the ability to have my training calendar in my normal calendar. This is done on other platforms by having the ability to export your training calendar as an iCalendar using a specific URL that can be subscribed to in your calendar application or service. It would be nice to see this in AI Endurance as well.

I think the easiest approach would be to have it as another “app” in the “Apps” section. Once clicked on it would present the unique calendar URL for the user.

The calendar entry would use the workout name as its title. The description would be the same description you see when you examine a future workout on the calendar in AI Endurance with warmup, main set, cooldown, advice. A complication would be when it occurs. If the event were an all day event then the duration would need to be either in the description or the event title. If it were configurable for when it should appear to be (configuration could pop up when you click it in Apps) then the duration could properly be set on the event itself.

This would be a read-only feature. No ability to manipulate the calendar from inside your normal calendar.

Thanks, yes we should have this. Added to the roadmap

This should work now. Let me know if there’s any issues @jcolp please

@MarkusRummel Looks like it works good!

Great feature, but I just tried to add the calendar via URL in Google Calendar and got a generic error that “something went wrong”. I tried regenerating the URL in AIEndurance twice with the same result. What have I missed?

Thanks for the report! I dug into our logs and your calendar URL was served successfully every time Google requested it, and I verified the feed itself is valid. I also just tested adding my own feed to Google Calendar via “From URL” and it worked, so this looks like it’s failing on Google’s side of the add flow. A few things to try:

  1. Copy the URL with the Copy button on the card and paste it unmodified. It must end in .ics. Our logs show two requests during your attempts for a URL ending in .ical, which doesn’t exist and returns a 404.

  2. Google’s “From URL” dialog is known to show a generic “something went wrong” error transiently. Sometimes the calendar is actually added despite the error, so check your calendar list, and otherwise retry after a few hours.

  3. Are you adding it to a company (Google Workspace) account? Workspace admins can block subscribing to external calendar URLs, which produces exactly this error while the URL works fine in a browser. If so, try a personal Google account to confirm.

Note that after regenerating the URL, the old one stops working immediately, so make sure the copy in Google is the freshest one.

Thanks for your quick reply!

Yeah, I tried changing the ending to ical in my desperation, so that was me :smiley:

I am trying to add the URL to my private Google account → no workspace.

This time I did not create a fresh calendar URL again. I tried copying the plain text as well as using the button for copying the URL, but still I get the same result. It’s interesting that it worked for you with the same URL, though…

So when trying to add, Google responds with 200 OK but the response looks truncated / incomplete which hints towards an issue on their side and not on yours. I will just wait a few days, try again.