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.
- 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.
- Python 3.6 or higher OR Powershell
- An Intervals.icu account with API access
- Your API Key and Athlete ID
- Clone the Repository
git clone https://github.com/h3xh0und/intervals.icu.git cd intervals.icu
- 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.
-
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. -
Run the Script
Pythonpython3 upload_trainings.py
Powrshell
.\upload_trainings.ps1
-
Verify on Intervals.icu
- Log in to your Intervals.icu account.
- Check the calendar for the uploaded events.
Make sure to subscribe to Intervals.icu to support the hard work David Tinker puts into maintaining this incredible tool for athletes!
Feel free to contribute to the project by submitting issues or pull requests. Contributions are welcome!
This project is licensed under the MIT License.