当前位置: 首页 > Skill >

zectrix-s3-epaper-4.2

zectrix-s3-epaper-4.2

zectrix-s3-epaper-4.2

Use when configuring or operating Xiaotieba/Zectrix smart sticky-note e-ink devices via the cloud API — list devices, push text/images to pages, manage todos, design 400x300 e-paper layouts, and troubleshoot scheduled reminders without hardcoding secrets.

1.0.1 2026.11.23 390
获取Skill文件查看使用说明
作 者:沈澄 许可证: 更新时间:2026.11.23
本文目录展开

Xiaotieba / Zectrix E-Ink Device

Overview

小贴吧(Xiaotieba / Zectrix smart sticky note)是一类通过云端 Open API 控制的 4.2 英寸电子墨水屏设备。这个 skill 帮助你:

  • 配置 API 凭证和设备 ID/MAC;
  • 获取设备列表;
  • 向 1-3 个页面推送纯文本、结构化文本或图片;
  • 管理云端待办事项;
  • 设计适合 400×300 电子墨水屏的短文本版式;
  • 为天气、课程表、家庭提醒、会议提醒等场景设计定时推送;
  • 排查“API 成功但设备没刷新”“密钥截断”“内容过长显示不全”等问题。

This skill is intentionally credential-free. Never publish real API keys, device MACs, family names, schedule details, or private reminder content inside the skill package.

When to Use

Use this skill when the user asks to:

  • “配置小贴吧 / 智能便利贴 / Zectrix 电子墨水屏”;
  • “推送文字/图片到小贴吧”;
  • “做天气/作业/课程/待办提醒屏”;
  • “查小贴吧设备列表”;
  • “管理小贴吧待办”;
  • “小贴吧没收到推送 / 显示不完整 / 定时任务没执行”;
  • build scheduled reminders for a small e-paper display.

Do not use this skill for unrelated e-paper hardware that has no Zectrix/Xiaotieba cloud API compatibility.

Device Facts

Typical device profile:

Item Value
Device class Smart sticky-note / e-ink reminder display
Common model zectrix-s3-epaper-4.2
Screen 4.2 inch e-paper
Resolution 400×300 px
Connectivity Wi-Fi + cloud API
Pages Usually 3 pages, pageId = 1, 2, 3

Always verify the actual device list before pushing.

Configuration

Environment Variables

Recommended variable names:

export XIAOTIEBA_API_BASE="https://cloud.zectrix.com/open/v1"
export XIAOTIEBA_API_KEY="<your-api-key>"
export XIAOTIEBA_DEVICE_ID="<device-mac-or-id>"

If a script supports multiple devices, use explicit names:

export XIAOTIEBA_HOME_DEVICE_ID="<device-id>"
export XIAOTIEBA_OFFICE_DEVICE_ID="<device-id>"

Local Config File Pattern

For cron jobs or scripts, keep secrets outside the skill and outside git:

mkdir -p ~/.config/xiaotieba
chmod 700 ~/.config/xiaotieba
cat > ~/.config/xiaotieba/config.env <<'EOF'
XIAOTIEBA_API_BASE=https://cloud.zectrix.com/open/v1
XIAOTIEBA_API_KEY=<your-api-key>
XIAOTIEBA_DEVICE_ID=<device-mac-or-id>
EOF
chmod 600 ~/.config/xiaotieba/config.env

Then scripts can load it:

set -a
. "$HOME/.config/xiaotieba/config.env"
set +a

API Quick Reference

Base URL:

https://cloud.zectrix.com/open/v1

Authentication header:

X-API-Key: <your-api-key>

Device Management

Action Method Path
List devices GET /devices

Example:

curl -fsS "$XIAOTIEBA_API_BASE/devices" 
  -H "X-API-Key: $XIAOTIEBA_API_KEY"

Expected success shape may look like:

{
  "code": 0,
  "msg": "success",
  "data": [
    {
      "deviceId": "AA:BB:CC:DD:EE:FF",
      "alias": "zectrix-s3-epaper-4.2"
    }
  ]
}

Display Push

Content Method Path Notes
Plain text POST /devices/{deviceId}/display/text Recommended default
Structured text POST /devices/{deviceId}/display/structured-text Some deployments may return server errors; fallback to plain text
Image POST /devices/{deviceId}/display/image Usually multipart upload

Plain Text Push

curl -fsS -X POST "$XIAOTIEBA_API_BASE/devices/$XIAOTIEBA_DEVICE_ID/display/text" 
  -H "X-API-Key: $XIAOTIEBA_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "text": "🌤️ TodaynnSunny, light jacket.nRemember the 15:00 meeting.",
    "fontSize": 20,
    "pageId": "1"
  }'

Expected success shape:

{
  "code": 0,
  "msg": "success",
  "data": {
    "totalPages": 1,
    "pushedPages": 1
  }
}

Structured Text Push

curl -fsS -X POST "$XIAOTIEBA_API_BASE/devices/$XIAOTIEBA_DEVICE_ID/display/structured-text" 
  -H "X-API-Key: $XIAOTIEBA_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "title": "Meeting",
    "body": "15:00 Room 3nBring laptop",
    "fontSize": 16,
    "pageId": "1"
  }'

If this returns a 5xx error, switch to /display/text and include the title inside text.

Image Push

API variants may differ. A common multipart pattern is:

curl -fsS -X POST "$XIAOTIEBA_API_BASE/devices/$XIAOTIEBA_DEVICE_ID/display/image" 
  -H "X-API-Key: $XIAOTIEBA_API_KEY" 
  -F "images=@/path/to/image.png" 
  -F "dither=true" 
  -F "pageId=1"

For best results, pre-render images at 400×300 px and use high-contrast black/white or grayscale dithering.

Todo API

Action Method Path
List todos GET /todos
Create todo POST /todos
Update todo PUT /todos/{id}
Complete todo PUT /todos/{id}/complete
Delete todo DELETE /todos/{id}

Create todo example:

curl -fsS -X POST "$XIAOTIEBA_API_BASE/todos" 
  -H "X-API-Key: $XIAOTIEBA_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "title": "Buy milk",
    "description": "On the way home",
    "dueDate": "2026-03-20",
    "dueTime": "18:30",
    "repeatType": "none",
    "priority": 2,
    "deviceId": "AA:BB:CC:DD:EE:FF"
  }'

Layout Guidelines for 400×300 E-Paper

E-paper is not a phone screen. Optimize for fast reading and limited refresh.

Text Rules

  • Keep titles under 12-16 Chinese characters or 20 English letters.
  • Keep each line short: about 12-16 Chinese characters or 24-30 English characters.
  • Prefer 5-8 lines total.
  • Keep important content at the top.
  • Use emoji sparingly; test the actual glyph rendering.
  • Avoid dense tables unless rendered as an image.
  • For Chinese reminders, use short action phrases rather than full paragraphs.

Suggested Plain Text Template

🌤️ Today
06 月 12 日 (周五)

Warmer than yesterday
Light jacket is enough
Good drying window: noon

Updated 06:00

Three-Page Reminder Pattern

A useful convention for 3-page devices:

Page Use Example
1 Morning overview weather, day plan, commute note
2 Tasks/homework today’s tasks or “collecting…” fallback
3 Tomorrow schedule next-day classes, meetings, prep list

If a page’s source data is missing, push a clear fallback instead of leaving stale content on the display.

Scheduled Push Pattern

For deterministic recurring pushes, use a script plus cron/Hermes cron rather than asking the model to remember state.

Example script push-xiaotieba-text.sh:

#!/usr/bin/env bash
set -euo pipefail

CONFIG="$HOME/.config/xiaotieba/config.env"
if [[ ! -f "$CONFIG" ]]; then
  echo "missing config: $CONFIG" >&2
  exit 1
fi
set -a
. "$CONFIG"
set +a

PAGE_ID="${1:-1}"
TEXT="${2:-Test message}"

python3 - <<'PY' "$XIAOTIEBA_API_BASE" "$XIAOTIEBA_API_KEY" "$XIAOTIEBA_DEVICE_ID" "$PAGE_ID" "$TEXT"
import json, sys, urllib.request
base, key, device, page, text = sys.argv[1:6]
payload = json.dumps({"text": text, "pageId": str(page)}, ensure_ascii=False).encode("utf-8")
url = f"{base.rstrip('/')}/devices/{device}/display/text"
req = urllib.request.Request(
    url,
    data=payload,
    headers={"X-API-Key": key, "Content-Type": "application/json"},
    method="POST",
)
with urllib.request.urlopen(req, timeout=20) as resp:
    body = resp.read().decode("utf-8", "replace")
print(body)
PY

Cron examples:

# Morning page
0 6 * * * /path/to/push-morning-summary.sh

# Task page
0 17 * * * /path/to/push-task-summary.sh

# Tomorrow schedule page
10 17 * * * /path/to/push-tomorrow-schedule.sh

Troubleshooting

“API returned success but device did not update”

Checklist:

  1. Wait 15-30 seconds; e-paper refresh can be slow.
  2. Confirm the target deviceId from GET /devices.
  3. Confirm pageId is valid (1, 2, or 3).
  4. Push a very short test message to page 1.
  5. Check whether the device is online in the vendor app or API device list.
  6. Avoid pushing repeatedly within a very short interval; allow at least 2-3 minutes for scheduled jobs unless the vendor documents otherwise.

“Authentication failed / no devices returned”

  1. Confirm XIAOTIEBA_API_KEY is set and complete.
  2. Look for accidental truncation such as abc...xyz; scripts must contain the full value or load it from a secure config file.
  3. Ensure the shell actually loads ~/.config/xiaotieba/config.env.
  4. Check file permissions: chmod 600 ~/.config/xiaotieba/config.env.

“Structured text returns 500”

Use plain text:

Title

Body line 1
Body line 2

and send it via /display/text.

“Content is cut off”

  1. Shorten the text to the top 5-8 lines.
  2. Reduce line width.
  3. Remove low-value details and exact numbers.
  4. Render a custom 400×300 image if precise layout matters.

“Cron did not run”

  1. Check the cron entry with crontab -l or the Hermes cron list.
  2. Use absolute script paths in system cron.
  3. Make scripts executable: chmod +x script.sh.
  4. Ensure the script loads credentials because cron has a minimal environment.
  5. Write logs to a known path and inspect them.

Security and Privacy

  • Never put real API keys, device IDs, MAC addresses, family names, school schedules, or private reminders into the published skill.
  • Keep credentials in environment variables or ~/.config/xiaotieba/config.env with mode 0600.
  • Redact API keys and device IDs in logs before sharing.
  • Treat reminder contents as private. Ask before sending them to public channels or group chats.
  • When publishing examples, use placeholders such as <your-api-key> and AA:BB:CC:DD:EE:FF.

Common Pitfalls

  1. Hardcoding secrets in scripts or skills. Use env vars or a local config file.
  2. Using structured text as the default. Plain text is usually more reliable.
  3. Overloading a small e-paper screen. Short, readable summaries beat dense data.
  4. Forgetting pageId. The push may land on an unexpected page or default page.
  5. Cron environment mismatch. A command works interactively but fails in cron because env vars are missing.
  6. Too-frequent pushes. E-paper refresh and cloud queues are slower than chat apps.
  7. Publishing personal schedules. Replace real reminders with generic examples.

Verification Checklist

  • GET /devices returns the expected device list.
  • A short plain-text test push returns code: 0 or HTTP success.
  • The device physically refreshes to show the test message.
  • Each scheduled script loads credentials from a protected local file or env vars.
  • Long messages are shortened or rendered as a 400×300 image.
  • Logs do not contain API keys or private reminder text.
  • Published skill package contains no real API keys, device IDs, MACs, family details, or local-only paths.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Xiaotieba / Zectrix E-Ink Device
    • Overview
    • When to Use
    • Device Facts
    • Configuration
      • Environment Variables
      • Local Config File Pattern
    • API Quick Reference
      • Device Management
      • Display Push
        • Plain Text Push
        • Structured Text Push
        • Image Push
    • Todo API
    • Layout Guidelines for 400×300 E-Paper
      • Text Rules
      • Suggested Plain Text Template
      • Three-Page Reminder Pattern
    • Scheduled Push Pattern
    • Troubleshooting
      • “API returned success but device did not update”
      • “Authentication failed / no devices returned”
      • “Structured text returns 500”
      • “Content is cut off”
      • “Cron did not run”
    • Security and Privacy
    • Common Pitfalls
    • Verification Checklist
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期