Intervals.icu Connector
Dreeve imports anything dropped into its watch/ folder. Getting your Intervals.icu activities into that
folder is what the Intervals.icu connector does: it periodically lists new activities, downloads the
original .fit files and drops them in. No manual exports.
Wahoo, Ride Cave, Zwift, ... → Intervals.icu → connector → watch/ → Dreeve imports itThe connector uses the official Intervals.icu API with a personal API key.
The connector is a separate container from its own repository, dreeveapp/dreeve-garmin-connector. It is not part of Dreeve itself, it only writes files into the folder you already mount.
1. Create an API key
Section titled “1. Create an API key”In the Intervals.icu settings, scroll down to Developer Settings and create an API key.
2. Add the container
Section titled “2. Add the container”Add this alongside the app and daemon services in your
docker-compose.yml:
# Pulls activities out of Intervals.icu into the watch folder. intervals-connector: image: ghcr.io/toastienergy/intervals.icu-connector:latest container_name: dreeve-intervals-connector restart: unless-stopped env_file: ./.env volumes: # The same ./watch folder the app and daemon mount. - ./watch:/data/watch - ./intervals/config:/data/state3. Configure it
Section titled “3. Configure it”Add to your .env:
INTERVALS_API_KEY=your-api-key# First run only: fetch activities from this date on (YYYY-MM-DD). Without it, the last 30 days.INTERVALS_SYNC_SINCE=2026-01-014. Start it
Section titled “4. Start it”> docker compose up -d> docker compose logs -f intervals-connectorDownloaded activities land in the watch folder as <date>_intervals_<id>.<ext>, and the daemon
container will import them, exactly as if you had dropped them there yourself.
How sync works
Section titled “How sync works”- Polling: every 30 minutes the connector lists your activities and downloads the ones it has not seen yet. After the first run it re-checks the days since the last successful sync plus a 7-day lookback, so late uploads are not missed.
- Atomic file delivery: files are written as temporary
.partfiles and renamed once complete, so Dreeve never parses a partial file. Compressed downloads (.gz,.zip) are unpacked first. - Download history: downloaded IDs are stored in
state.json, so nothing is downloaded twice even after Dreeve removes the files from the watch folder. Overlaps with activities imported by other connectors are skipped by Dreeve’s duplicate detection.
Configuration
Section titled “Configuration”| Variable | Default | What it does |
|---|---|---|
INTERVALS_API_KEY |
- | Required. API key from the Intervals.icu settings. |
INTERVALS_API_KEY_FILE |
- | Read the API key from this file instead. |
INTERVALS_ATHLETE_ID |
0 |
0 means the owner of the API key. |
INTERVALS_SYNC_SINCE |
- | First run only: fetch activities from this date (YYYY-MM-DD). |
INTERVALS_INITIAL_DAYS |
30 |
First run without INTERVALS_SYNC_SINCE: number of days to fetch. |
INTERVALS_LOOKBACK_DAYS |
7 |
Later runs re-check this many days before the last successful sync. |
INTERVALS_SYNC_INTERVAL_MINUTES |
30 |
Pause between sync runs. |
INTERVALS_SKIP_SOURCES |
- | Comma-separated sources to ignore, e.g. GARMIN_CONNECT,ZWIFT. |
WATCH_DIR |
/data/watch |
Directory to deliver downloaded files to (Dreeve watch folder). |
STATE_FILE |
/data/state/state.json |
File that stores the download history. |
LOG_LEVEL |
INFO |
Logging verbosity level (DEBUG, INFO, WARNING, ERROR). |