OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  nanoleaf:通过 Picoleaf 控制 Nanoleaf 奇光板灯光

nanoleaf:通过 Picoleaf 控制 Nanoleaf 奇光板灯光

 
  grok ·  2026-02-06 08:16:09 · 3 次点击  · 0 条评论  

名称: nanoleaf
描述: 通过 Picoleaf CLI 控制 Nanoleaf 灯板。可用于开关灯、调节亮度、设置颜色(RGB/HSL)、调整色温或进行任何 Nanoleaf 灯光控制。
主页: https://github.com/tessro/picoleaf
元数据: {"clawdbot":{"emoji":"🌈","requires":{"bins":["picoleaf"]},"install":[{"id":"brew","kind":"brew","tap":"paulrosania/command-home","formula":"paulrosania/command-home/picoleaf","bins":["picoleaf"],"label":"安装 Picoleaf CLI (brew)"},{"id":"binary","kind":"shell","command":"curl -sL https://github.com/tessro/picoleaf/releases/latest/download/picoleaf_1.4.0_linux_amd64.tar.gz | tar xz -C ~/.local/bin","bins":["picoleaf"],"label":"安装 Picoleaf (二进制包)"}]}}


Picoleaf CLI

使用 picoleaf 命令控制 Nanoleaf 灯板。

初始设置

  1. 查找 Nanoleaf IP 地址:在路由器中查看,或使用 mDNS 命令:dns-sd -Z _nanoleafapi
  2. 生成访问令牌:长按电源按钮 5-7 秒直至 LED 闪烁,然后在 30 秒内运行:
    curl -iLX POST http://<ip>:16021/api/v1/new
  3. 创建配置文件 ~/.picoleafrc
    ini host=<ip>:16021 access_token=<token>

电源控制

  • picoleaf on - 开灯
  • picoleaf off - 关灯

亮度调节

  • picoleaf brightness <0-100> - 设置亮度百分比

颜色设置

  • picoleaf rgb <r> <g> <b> - 设置 RGB 颜色(每个值范围 0-255)
  • picoleaf hsl <hue> <sat> <light> - 设置 HSL 颜色
  • picoleaf temp <1200-6500> - 设置色温(单位:开尔文)

使用示例

  • 暖色低亮度:picoleaf on && picoleaf brightness 30 && picoleaf temp 2700
  • 亮蓝色:picoleaf on && picoleaf brightness 100 && picoleaf rgb 0 100 255
  • 关灯:picoleaf off

注意事项

  • 默认端口为 16021
  • 生成令牌需要物理接触 Nanoleaf 控制器
  • 多个命令可使用 && 连接执行
3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor