Clawdbot 图像节点

配置 Clawdbot AI 助手图像节点,用于在远程屏幕上显示图像和幻灯片。

Clawdbot 图像节点概述

图像节点使 Clawdbot 能够在连接到远程设备的屏幕上显示图像。使用图像节点作为相框、状态显示和视觉通知。

功能

功能描述
图像显示在屏幕上显示图像
幻灯片自动图像轮播
叠加层文字和图形叠加
过渡效果平滑的过渡效果
远程控制从任何地方控制

配置

节点设置

{
  "node": {
    "name": "living-room-display",
    "capabilities": ["image"],
    "image": {
      "display": "default",
      "resolution": "1920x1080",
      "rotation": 0,
      "background": "#000000"
    }
  }
}

显示选项

选项描述
resolution宽x高显示分辨率
rotation0, 90, 180, 270屏幕旋转
background颜色背景颜色
scalingfit, fill, stretch图像缩放模式

命令

显示图像

# 显示单张图像
clawdbot nodes image living-room --file /path/to/photo.jpg

# 从 URL 显示
clawdbot nodes image living-room --url "https://example.com/image.png"

# 清除显示
clawdbot nodes image living-room --clear

代理命令

代理可以使用图像节点:

"在客厅屏幕上显示天气预报"

幻灯片

配置

{
  "image": {
    "slideshow": {
      "enabled": true,
      "interval": 30000,
      "shuffle": true,
      "transition": "fade",
      "transitionDuration": 1000
    }
  }
}

幻灯片来源

{
  "image": {
    "slideshow": {
      "sources": [
        "/photos/family",
        "https://api.example.com/photos"
      ]
    }
  }
}

过渡效果

过渡描述
fade交叉淡入淡出
slide滑入/滑出
zoom缩放效果
none即时切换

叠加层

文字叠加

{
  "image": {
    "overlay": {
      "text": {
        "enabled": true,
        "content": "{{date}} {{time}}",
        "position": "bottom-right",
        "font": "Arial",
        "size": 24,
        "color": "#ffffff"
      }
    }
  }
}

状态叠加

{
  "image": {
    "overlay": {
      "status": {
        "enabled": true,
        "showWeather": true,
        "showCalendar": true
      }
    }
  }
}

支持的格式

格式扩展名备注
JPEG.jpg, .jpeg最常见
PNG.png支持透明
GIF.gif支持动画
WebP.webp现代格式
BMP.bmp未压缩

多显示器

显示器分组

{
  "nodes": {
    "groups": {
      "all-displays": ["living-room", "kitchen", "bedroom"]
    }
  }
}

同步显示器

# 所有显示器显示相同图像
clawdbot nodes image --group all-displays --file /path/to/image.jpg

# 同步幻灯片
clawdbot nodes image --group all-displays --slideshow sync

电源管理

显示器睡眠

{
  "image": {
    "power": {
      "sleepAfter": 3600000,
      "wakeOnActivity": true,
      "schedule": {
        "on": "07:00",
        "off": "23:00"
      }
    }
  }
}

下一步