runstats
v0.1.1
Published
Aggregates Polar Flow CSV exports into analysis-friendly tables (session, km splits, time blocks, HR zones)
Downloads
178
Readme
runstats
Aggregates Polar Flow CSV exports into analysis-friendly tables (session, km splits, time blocks).
Installation
npm install -g runstatsUsage
Once installed globally, use the runstats command:
runstats input.CSV [output.csv]
runstats input.CSV --block 10
runstats input.CSV --raw --interval 5You can also run it without installing, via npx:
npx runstats input.CSV [output.csv]Or from a local clone of this repository:
node src/runstats.mjs input.CSV [output.csv]
node src/runstats.mjs input.CSV --block 10
node src/runstats.mjs input.CSV --raw --interval 5By default the script produces an aggregated analysis (session + km splits + time blocks).
Options
| Option | Description |
|---|---|
| -b, --block <min> | Time block size in minutes (default: 5) |
| --raw | Export filtered per-second data instead of aggregates |
| -i, --interval <n> | With --raw, keep every nth sample |
| -h, --help | Show help |
