Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

iSki Export Tool

Export your iSki ski tracking data to GeoJSON and GPX formats using this automated tool built with Bun and Puppeteer.

Features

  • 🎿 Automated Login: Uses Puppeteer to log into iSki and fetch authenticated data
  • 📦 Multiple Formats: Export to GeoJSON and GPX formats
  • 📊 Rich Metadata: Preserves all track details (distance, elevation, speed, lifts, etc.)
  • ⚡ Fast & Efficient: Built with Bun for maximum performance
  • 🔄 Resume Support: Skips already downloaded tracks
  • 🎯 Headless Mode: Runs in background without opening browser windows
  • 🛠️ CLI Interface: Easy to use command-line interface

Installation

Option 1: Pre-built Binaries (Recommended)

Download the latest pre-built binary for your platform from the Releases page:

  • Linux: iski-export-linux-x64
  • macOS (Intel): iski-export-macos-x64
  • macOS (Apple Silicon): iski-export-macos-arm64
  • Windows: iski-export-windows-x64.exe

Make the binary executable (Linux/macOS):

chmod +x iski-export-*

Set your credentials as environment variables:

export ISKI_EMAIL=your-email@example.com
export ISKI_PASSWORD=your-password

Run the tool:

./iski-export-macos-arm64 --help

Option 2: Build from Source

Prerequisites:

  • Bun installed on your system
curl -fsSL https://bun.sh/install | bash

Setup:

  1. Clone this repository:
git clone <repository-url>
cd iski-export-to-bergfex
  1. Install dependencies:
bun install
  1. Create a .env file with your iSki credentials:
cp .env.example .env

Edit .env and add your credentials:

ISKI_EMAIL=your-email@example.com
ISKI_PASSWORD=your-password

Usage

Download All Tracks

Download all your tracks and convert to both GeoJSON and GPX:

Using pre-built binary:

./iski-export-macos-arm64

Using Bun (from source):

bun run index.ts

CLI Options

iski-export [options]

Options:
  -h, --help              Show help message
  -o, --output <dir>      Output directory (default: output)
  -f, --format <formats>  Export formats: geojson, gpx (default: geojson,gpx)
  --convert-only          Only convert existing tracks to specified formats
  --headless              Run browser in headless mode (default: true)

Environment Variables:
  ISKI_EMAIL              Your iSki login email
  ISKI_PASSWORD           Your iSki login password

Examples

Download to custom directory:

./iski-export-macos-arm64 --output ./my-tracks

Only download as GeoJSON:

./iski-export-macos-arm64 --format geojson

Only download as GPX:

./iski-export-macos-arm64 --format gpx

Convert existing tracks to GPX:

./iski-export-macos-arm64 --convert-only --format gpx

Run with visible browser (for debugging):

./iski-export-macos-arm64 --headless false

Note: Replace iski-export-macos-arm64 with your platform's binary name:

  • Linux: iski-export-linux-x64
  • macOS Intel: iski-export-macos-x64
  • Windows: iski-export-windows-x64.exe

If running from source, use bun run index.ts instead.

Convert Existing Tracks

If you already have downloaded the JSON files and want to convert them to GPX:

bun run convert:gpx

Note: GeoJSON files are automatically generated during the download process. Use --convert-only --format gpx to convert existing JSON files to GPX without re-downloading.

Output Structure

output/
├── tracks/              # Original JSON responses from iSki API
│   ├── track_7338889.json
│   └── ...
├── geojson/            # GeoJSON format with full metadata
│   ├── track_7338889.geojson
│   └── ...
├── gpx/                # GPX format for GPS devices
│   ├── track_7338889.gpx
│   └── ...
└── tracks_list.json    # Complete list of all tracks

Output Formats

GeoJSON

GeoJSON files contain:

  • Geometry: LineString with GPS coordinates [longitude, latitude]
  • Properties:
    • trackId: Unique track identifier
    • date: Track date (e.g., "25.01.2026")
    • name: Location/resort name
    • time: Start/end time with timezone
    • totalTime: Total duration
    • activeTime: Active skiing time
    • passiveTime: Passive time (lifts, breaks)
    • totalDistance: Total distance covered
    • distanceDown: Downhill distance
    • distanceUp: Uphill distance
    • elevationGain: Total elevation gain
    • elevationLoss: Total elevation loss
    • maxSpeed: Maximum speed reached
    • avgSpeed: Average speed
    • highestPoint: Highest elevation point
    • lowestPoint: Lowest elevation point
    • lifts: Number of lifts taken

Example:

{
  "type": "FeatureCollection",
  "features": [{
    "type": "Feature",
    "properties": {
      "trackId": 7338889,
      "date": "25.01.2026",
      "name": "Wagrain - Snow Space Salzburg",
      "totalDistance": "46,15 km",
      "elevationGain": "5077 Hm",
      "maxSpeed": "84,25 km/h"
    },
    "geometry": {
      "type": "LineString",
      "coordinates": [[13.251, 47.305], ...]
    }
  }]
}

GPX

Standard GPX 1.1 format compatible with:

  • GPS devices (Garmin, etc.)
  • Strava, Komoot, AllTrails
  • Google Earth, QGIS
  • Mobile apps

Example:

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="iSki Export Tool">
  <metadata>
    <name>Wagrain - Snow Space Salzburg</name>
    <desc>10:32 - 15:56 | 46,15 km | ↑5077 Hm</desc>
  </metadata>
  <trk>
    <trkseg>
      <trkpt lat="47.305" lon="13.251"></trkpt>
      ...
    </trkseg>
  </trk>
</gpx>

Technical Details

How It Works

  1. Login: Uses Puppeteer to automate browser login to iSki web interface
  2. Fetch List: Retrieves complete list of recorded tracks via authenticated API
  3. Download Tracks: Fetches detailed data for each track including GPS coordinates
  4. Convert: Transforms iSki's custom format to standard GeoJSON/GPX formats
  5. Save: Writes files to disk with organized directory structure

Development

Project Structure

.
├── .github/
│   └── workflows/
│       └── release.yml       # GitHub Actions release workflow
├── src/
│   ├── index.ts              # Main CLI interface
│   └── convert-to-gpx.ts     # GPX conversion module
├── .env.example              # Environment variables template
├── .gitignore                # Git ignore rules
├── package.json              # Project configuration
├── readme.md                 # This file
└── tsconfig.json             # TypeScript configuration

Scripts

  • bun run start - Run the CLI tool
  • bun run build - Build standalone executable for current platform
  • bun run convert:gpx - Convert existing tracks to GPX

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages