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

智能體指令

智能體可以使用圖像節點:

"Display the weather forecast on the living room screen"

幻燈片

配置

{
  "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"
      }
    }
  }
}

下一步