BikeControl (SwiftControl)
使用 Zwift Click、Zwift Play、Shimano Di2 或任何藍牙控制器,搭配 MyWhoosh、Rouvy、Zwift 等。iOS、Android、Windows、macOS 均可免費試用。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
VirtualRow — Row Anywhere on Real Water Routes
VirtualRow is a web-based fitness application that lets you row on virtual water routes while connected to your Concept2 PM5 indoor rower via Bluetooth. Experience immersive 3D rowing visualization from your home.
VirtualRow now ships with one bundled demo route:
To row real-world courses, search and import them directly from rownative.icu in the route selector.查看完整 README ↗VirtualRow is a web-based fitness application that lets you row on virtual water routes while connected to your Concept2 PM5 indoor rower via Bluetooth. Experience immersive 3D rowing visualization from your home.
VirtualRow now ships with one bundled demo route:
| Route | Location | Distance | Difficulty |
|---|---|---|---|
| Willowbrook River | Willowbrook Valley | 5.0 km | Easy |
To row real-world courses, search and import them directly from rownative.icu in the route selector.
Requires Node.js 24 (the active LTS line). It is pinned in .nvmrc, so
nvm use selects it for you.
See First-Time Setup below under Testing, or for quick start:
git clone <repository-url>
cd virtualrow
nvm use # → Node 24, per .nvmrc
npm install
npm run dev # → http://localhost:5173
src/
components/
Rower3D.tsx # 3D rowing visualization (~2000 lines)
RouteMap.tsx # 2D route map (Leaflet)
RowingOverlay.tsx # In-workout HUD with live metrics
BluetoothDevice.tsx # PM5 connection UI
HeartRateMonitor.tsx # HR monitor connection
PM5Simulator.tsx # PM5 hardware simulator
MiniMetrics.tsx # Compact metrics overlay
PerformanceChart.tsx # Post-session performance graphs
HeartRateChart.tsx # Live HR chart
Canvas3DErrorBoundary.tsx # WebGL error fallback
routeLandmarks/
LandmarkRenderer.tsx # Route landmark placement in 3D scene
hooks/
usePhysicsEngine.ts # Physics engine interface
services/
bluetoothService.ts # PM5 BLE communication
heartRateBluetoothService.ts # HR monitor BLE service
pm5SimulatorService.ts # PM5 simulation
routeService.ts # Route data + rownative route import
workoutService.ts # Session tracking
utils/
geoUtils.ts # Geographic calculations
gpuUtils.ts # WebGL/GPU detection
routeGeometry.ts # Route spline geometry helpers
types/
index.ts # Core TypeScript interfaces
bluetooth.d.ts # Web Bluetooth API types
App.tsx # Root component; all application state lives here
main.tsx # React entry point
playwright/
tests/ # E2E test specs
simulators/ # WebSocket PM5/HR sim server (sim-server.cjs)
fixtures/ # Test fixtures
utils/ # Test utilities
docs/
index.html # GitHub Pages landing page (no build step)
# Run unit tests (Vitest)
npm test
# Run unit tests in watch mode
npm test -- --watch
# Run E2E tests (Playwright)
npm run test:e2e
# Start PM5/HR WebSocket simulator (required for E2E)
npm run start:sim
Unit tests are in src/__tests__/. E2E tests are in playwright/tests/ and use a WebSocket simulator at playwright/simulators/sim-server.cjs.
git clone <repository-url>
cd virtualrow
npm install
npm run dev
# → http://localhost:5173
Generate the reusable environment GLB kit (riverbed, water surface, riverbanks, trees, buildings, bridge, dock, buoy):
npm run generate:environment-assets
Output file:
public/models/virtualrow-environment.glbSee PM5_TROUBLESHOOTING.md for PM5 connection issues.
See DEVELOPMENT.md for detailed development information.
MIT