Skip to content

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 it

The 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.

In the Intervals.icu settings, scroll down to Developer Settings and create an API key.

Add this alongside the app and daemon services in your docker-compose.yml:

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/state

Add to your .env:

.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-01
Terminal window
> docker compose up -d
> docker compose logs -f intervals-connector

Downloaded 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.

  • 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 .part files 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.
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).