Clawdbot 图像节点
配置 Clawdbot AI 助手图像节点,用于在远程屏幕上显示图像和幻灯片。
Clawdbot 图像节点概述
图像节点使 Clawdbot 能够在连接到远程设备的屏幕上显示图像。使用图像节点作为相框、状态显示和视觉通知。
功能
| 功能 | 描述 |
|---|---|
| 图像显示 | 在屏幕上显示图像 |
| 幻灯片 | 自动图像轮播 |
| 叠加层 | 文字和图形叠加 |
| 过渡效果 | 平滑的过渡效果 |
| 远程控制 | 从任何地方控制 |
配置
节点设置
{
"node": {
"name": "living-room-display",
"capabilities": ["image"],
"image": {
"display": "default",
"resolution": "1920x1080",
"rotation": 0,
"background": "#000000"
}
}
}显示选项
| 选项 | 值 | 描述 |
|---|---|---|
resolution | 宽x高 | 显示分辨率 |
rotation | 0, 90, 180, 270 | 屏幕旋转 |
background | 颜色 | 背景颜色 |
scaling | fit, 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"
}
}
}
}下一步
- Clawdbot 节点 - 节点概述
- Clawdbot 音频节点 - 音频播放
- Clawdbot 网关 - 网关配置