← 返回
开发者工具 中文

dokidoki

Control interactive BLE devices (scan/connect/playback/timeline) from terminal.
从终端控制交互式 BLE 设备(扫描/连接/播放/时间线)
lovappencava
开发者工具 clawhub v1.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 549
下载
💾 6
安装
2
版本
#latest

概述

DokiDoki CLI

Use doki to control interactive BLE devices from the terminal.

Quick Start

  • doki scan - Scan for BLE devices (auto-starts daemon)
  • doki connect DK-META2 - Connect to device (auto-starts daemon)

Common Tasks

Daemon Management

  • doki start - Start background daemon
  • doki stop - Stop background daemon
  • doki status - Check daemon and connection status

Device Connection

  • doki scan - Scan for BLE devices
  • doki connect [name] - Connect to device (default: DK-META2)
  • doki disconnect - Disconnect from device

Timeline Playback

  • doki player play [audio] - Play timeline with optional audio sync
  • doki player pause - Pause playback (stops device)
  • doki player resume - Resume playback

Direct Device Control

  • doki action linear 50 - Set linear to 50%
  • doki action rotary -30 - Set rotary to -30 (reverse)
  • doki action vibration 80 - Set vibration to 80%
  • doki action pause - Immediately stop all device actions

Timeline Format

Timeline files are JSON files defining device actions at specific timestamps:

{
  "duration": 180.5,
  "actions": [
    {"timestamp": 0.0, "type": "VIBRATION", "value": 50},
    {"timestamp": 5.5, "type": "LINEAR", "value": 30},
    {"timestamp": 10.0, "type": "ROTARY", "value": -50}
  ]
}

Action Types

TypeValue RangeDescription
--------------------------------
LINEAR0-100Linear/stroke motion intensity
ROTARY-100 to 100Rotation speed (negative=reverse)
VIBRATION0-100Vibration intensity

Notes

  • Requires Node.js 18+ and Bluetooth Low Energy (BLE) support
  • Supported audio formats: MP3, AAC/M4A, WAV, FLAC, OGG, AIFF
  • Audio playback requires ffplay (Linux/Windows) or afplay (macOS)
  • Logs are written to /tmp/dokidoki.log

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-03-30 05:35 安全 安全
  • v1.0.1
    2026-03-20 03:58

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,799
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,162
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,181