Skip to content

dsh-pace-calc

Verified

dsh-pace-calc · v0.1.1 · MIT

配速计算:根据距离与时间换算出配速(分/公里)与速度(公里/小时),支持任意距离与时分秒输入。Running pace calculator: converts distance and time into min/km pace and km/h speed.

Install

dsh plugin add dsh-pace-calc

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Tags

Readme

dsh-pace-calc · 配速计算

DeepSeek Harness 跑步配速计算插件 — 一次调用换算出配速(分/公里)与速度(公里/小时)。

纯 Node 实现,零依赖、无网络请求、离线可用。

npm version license

工具

pace_calc

参数 类型 默认 说明
dist number 5 距离(公里),如 21.0975(半马)、42.195(全马)
min number 30 用时(分钟)
sec number 0 用时(秒),与 min 相加

返回:距离、用时、配速(分′秒″/km)、速度(km/h)。

示例

pace_calc(dist=5, min=30)          → 6′00″/km,10 km/h
pace_calc(dist=21.0975, min=90)    → 4′16″/km,14.1 km/h   (半马 1:30:00)
pace_calc(dist=42.195, min=180)    → 4′16″/km,14.1 km/h   (全马 3:00:00)

计算方式:配速 = 总时间 ÷ 距离速度 = 距离 ÷ 总时间

安装

# npm(推荐)
npm install dsh-pace-calc

# 或从 GitHub 直装
dsh plugin add github:uckkk/dsh-pace-calc

装完重启 DSH 页面,之后在会话里直接让模型调用 pace_calc 即可。

许可

MIT