返回顶部
t

trmnlTRMNL内容生成

Generate content for TRMNL e-ink display devices using the TRMNL CSS framework and send via the trmnl CLI. Use when the user wants to display information on their TRMNL device, send messages to an e-ink display, create dashboard content, show notifications, or update their terminal display. Supports rich layouts with the TRMNL framework (flexbox, grid, tables, progress bars, typography utilities).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
2,706
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

trmnl

TRMNL 内容生成器

为TRMNL电子墨水屏显示设备生成HTML内容。

前置条件

将trmnl CLI更新至最新版本:
bash
npm install -g trmnl-cli@latest

配置Webhook插件(一次性设置):
bash

添加插件


trmnl plugin add home https://trmnl.com/api/custom_plugins/{uuid}

验证配置

trmnl plugin

快速入门工作流程

  1. 1. 安装/更新CLI: 运行 npm install -g trmnl-cli@latest
  2. 检查插件: 运行 trmnl plugin - 若无插件,提示用户添加一个
  3. 确认设备类型(默认:TRMNL OG,2位色,800x480)
  4. 根据内容需求阅读相关参考文档
  5. 使用TRMNL框架类生成HTML
  6. 将HTML写入临时文件并发送:
bash trmnl send --file /tmp/trmnl-content.html # 或发送至特定插件: trmnl send --file /tmp/trmnl-content.html --plugin office
  1. 7. 仅做最小化确认 - 不要在聊天中回显内容

发送内容

从文件发送(推荐):
bash

先将HTML内容写入文件


cat > /tmp/trmnl-content.html << EOF


Hello TRMNL!



我的插件

EOF

发送至显示屏

trmnl send --file /tmp/trmnl-content.html

发送前验证:
bash
trmnl validate --file /tmp/trmnl-content.html

查看发送历史:
bash
trmnl history
trmnl history --today
trmnl history --failed

Webhook限制

层级负载大小速率限制
免费版2 KB(2,048字节)12次请求/小时
TRMNL+
5 KB(5,120字节) | 30次请求/小时 |

全局设置层级以确保准确验证:
bash
trmnl tier plus # 或 free

参考文档

根据需要阅读以下文件:

文件何时阅读
references/patterns.md从这里开始 - 常见插件模式
references/framework-overview.md
设备规格、电子墨水屏限制 |
| references/css-utilities.md | 颜色、排版、尺寸、间距 |
| references/layout-systems.md | Flexbox、网格、溢出引擎 |
| references/components.md | 标题栏、分隔线、项目、表格 |
| references/webhook-api.md | 负载格式、故障排除 |
| assets/anti-patterns.md | 需避免的常见错误 |

标准插件结构

每个插件遵循此模式:

html






插件名称
上下文

  • - layout + layout--col = 垂直弹性容器
  • gap--space-between = 将区块推至边缘
  • title_bar = 始终位于底部,在布局外部
  • divider = 分隔主要区域
  • 关键: 每个视图仅一个 .layout 元素

快速参考

网格系统(10列)

html


30%

70%

项目组件

html



$159,022
总销售额

数值排版

数字始终使用 value--tnums。

类名用途
value--xxxlarge核心KPI
value--xxlarge
大额价格 |
| value--xlarge | 次要指标 |
| value--tnums | 数字必用 |

灰度类

使用抖动类,而非内联颜色:

  • - bg--black、bg--gray-60、bg--gray-30、bg--gray-10、bg--white
  • text--black、text--gray-50

数据属性

属性用途
data-fit-value=true自动调整文字大小
data-clamp=N
限制为N行 | | data-overflow=true | 启用溢出管理 |

最佳实践

  1. 1. 使用 layout + title_bar 结构
  2. 数字始终使用 value--tnums
  3. 主要指标使用 data-fit-value
  4. 使用 bg--gray-* 抖动类
  5. 保持负载在层级限制内
  6. 最小化确认 - 仅回复已发送至TRMNL

故障排除

问题解决方案
trmnl: command not found运行 npm install -g trmnl-cli@latest
未配置插件
运行 trmnl plugin add <名称> <网址> | | Webhook失败 | trmnl config - 验证插件URL | | 负载过大 | trmnl validate --file - 检查大小 | | 数字未对齐 | 添加 value--tnums 类 | | 发送历史 | trmnl history --failed |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 trmnl-1776378406 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 trmnl-1776378406 技能

通过命令行安装

skillhub install trmnl-1776378406

下载

⬇ 下载 trmnl v1.0.3(免费)

文件大小: 22.91 KB | 发布时间: 2026-4-17 16:10

v1.0.3 最新 2026-4-17 16:10
- Major update: Now uses the trmnl CLI for sending content, replacing previous curl/script-based workflow.
- Updated setup instructions: Install and configure `trmnl-cli` with plugin management commands and device validation.
- Removed references to scripts/check_payload.py and the environment variable-based workflow.
- Simplified content sending steps and validation using `trmnl send` and `trmnl validate`.
- Documentation reorganized for clarity, including new troubleshooting and best practice sections.
- SKILL.md content now reflects all current CLI commands and omits obsolete script references.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部