Skip to content

Python script to sent training events to Intervals.icu API

Notifications You must be signed in to change notification settings

MaximumTrainer/intervals.icu-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intervals.icu

A Python/Powershell script to send training events from a JSON file to the Intervals.icu API. This script automates the process of uploading training schedules for athletes.

Features

  • Uploads multiple training events in bulk to the Intervals.icu calendar.
  • Supports cycling, swimming, and running workouts.
  • Easy-to-configure JSON input file for flexible scheduling.

Prerequisites

  • Python 3.6 or higher OR Powershell
  • An Intervals.icu account with API access
  • Your API Key and Athlete ID

Installation

  1. Clone the Repository
    git clone https://github.com/h3xh0und/intervals.icu.git
    cd intervals.icu
  2. Configure the Script
    • Open the upload_trainings.py or upload_trainings.ps1 file.
    • Replace the placeholders:
      • your_api_key with your API key from Intervals.icu.
      • your_athlete_id with your athlete ID.

Usage

  1. Create your schedule
    I made a custom GPT Coach GPT for Intervals.icu that you can use to create a trainingsplan for an event. It works like the Annual Training Plan (ATP), so you can add multiple events (A,B or C events). When your happy with the plan the GPT will ask you to generate it as a JSON. Save this file as training.json in the same directory as the script.

  2. Run the Script
    Python

    python3 upload_trainings.py
    

    Powrshell

    .\upload_trainings.ps1
    
  3. Verify on Intervals.icu

    • Log in to your Intervals.icu account.
    • Check the calendar for the uploaded events.

Support Intervals.icu

Make sure to subscribe to Intervals.icu to support the hard work David Tinker puts into maintaining this incredible tool for athletes!

Contributing

Feel free to contribute to the project by submitting issues or pull requests. Contributions are welcome!

License

This project is licensed under the MIT License.

About

Python script to sent training events to Intervals.icu API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 51.9%
  • Python 48.1%