tp2gcal

A private, single-user tool that puts the operator's own planned workouts into their own Google Calendar.

tp2gcal is part of training-tools, a personal command-line toolbox. It reads the planned workouts that the operator's coach has scheduled for them in TrainingPeaks and creates matching events in the operator's own Google Calendar, so the training plan shows up next to everything else in their week.

It is not a product and has no users other than its author. There is no sign-up, no hosted service and nobody else's account is ever touched. This page exists because Google requires an application using the Calendar and Drive APIs to publish a home page and a privacy policy.

What it does

  1. Fetches the next couple of weeks of planned workouts from TrainingPeaks.
  2. Creates a calendar event for each one, or updates the title and description of an event it created earlier. It never moves an event you have dragged somewhere else, and only deletes future events whose workout the coach removed.
  3. For swim sessions it renders a printable PDF of the set and attaches it, storing the file in a tp2gcal folder in the operator's Google Drive.

Everything runs on the operator's own machine, on a daily timer. It is not a web service and accepts no inbound connections.