← 返回 Skills 市场
Brother DCP-T426W Printer
作者
yardfarmer
· GitHub ↗
· v5.0.0
· MIT-0
72
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install broder-printer
功能描述
Brother DCP-T426W network printer skill — IPP + driverless (primary), TCP direct (fallback for text-only, no sudo).
使用说明 (SKILL.md)
Brother DCP-T426W Printer Skill
When to Use
- When you need to print text, images, or PDFs to a Brother DCP-T426W from a CLI or script
- When you're on a NAS, Linux, or macOS machine with CUPS and want driverless IPP printing
- When you need a text-only fallback on a headless or no-root system (TCP direct, no CUPS)
- When you want to check printer status or print a test page programmatically
How It Works
Printing to a Brother DCP-T426W inkjet printer via two methods:
- IPP + driverless PPD (primary) — Full support: text, images, PDFs. Requires CUPS with
driverless. - TCP direct (fallback) — Text only, no CUPS, no sudo required.
Supported platforms: Any device with CUPS + driverless (NAS, Linux, macOS) or Python 3 with TCP access (fallback).
Printer Info
| Field | Value |
|---|---|
| Model | Brother DCP-T426W |
| IP | 192.168.50.232 |
| Protocol | IPP (ipp://192.168.50.232:631/ipp/print) — primary; TCP 9100 fallback |
| Type | Color Inkjet MFP (Print / Scan / Copy) |
| Max Resolution | 4800 x 1200 dpi |
| Paper | A4, Letter, A5, A6, Photo (10x15cm), Envelopes |
Quick Start
# Print a text string (CUPS IPP)
python scripts/print.py --text "Hello World"
# Print a file (text, image, PDF — CUPS handles conversion)
python scripts/print.py --file document.txt
python scripts/print.py --file photo.jpg
python scripts/print.py --file report.pdf
# Print a receipt-style text
python scripts/print.py --text "Invoice #123\
Total: $42.00" --mode receipt
# Print a test page
python scripts/print.py --test
# Check printer status
python scripts/print.py --status
# Fallback: TCP direct (text only, no CUPS needed)
python scripts/print.py --text "Hello" --method tcp
Architecture
broder-printer/
├── SKILL.md # This file
├── CLAUDE.md # Project documentation
├── Brother_DCP-T426W/ # Brother driver files (backup only)
│ ├── drivers/
│ │ ├── Brother_DCP-T426W.ppd
│ │ └── Brother DCP-T426W CUPS.gz
│ └── readme.md
├── requirements.txt
└── scripts/
└── print.py # Main print CLI (IPP/CUPS primary, TCP fallback)
Setup (One-Time)
Step 1: Install CUPS + driverless
# Linux (Debian/Ubuntu)
sudo apt install cups cups-filters ipp-usb
sudo systemctl enable --now cups
# macOS — CUPS is built-in, skip this step
Step 2: Generate driverless PPD and add printer
# Generate PPD from printer's IPP capabilities
driverless "ipp://192.168.50.232:631/ipp/print" > ~/brother.ppd
# Add printer to CUPS
sudo lpadmin -p Brother_DCP-T426W \
-v "ipp://192.168.50.232:631/ipp/print" \
-E \
-P ~/brother.ppd
sudo lpadmin -p Brother_DCP-T426W -o printer-is-shared=false
# Verify
lpstat -p Brother_DCP-T426W -l
Step 3: Test
echo "Hello" | lp -d Brother_DCP-T426W
How It Works
IPP + driverless (default):
- Script calls CUPS
lpcommand - CUPS converts input (text/image/PDF) to PWG-raster using the driverless PPD
- Data sent to printer via IPP protocol
- Printer renders and prints
TCP direct (fallback, --method tcp):
- Script opens TCP socket to printer port 9100
- Wraps text in PJL (Printer Job Language) commands
- Sends data directly to printer
- Text only — images/PDFs need CUPS conversion
IPP vs TCP
| Feature | IPP + driverless | TCP Direct |
|---|---|---|
| Setup | CUPS + driverless |
None |
| sudo required | Setup only (once) | No |
| Text printing | Yes | Yes |
| Image printing | Yes (PWG-raster) | No (raw bytes only) |
| PDF printing | Yes | No |
| Print queue | Yes | No |
| Use case | NAS, desktop, full features | Headless, no-root, text-only |
Direct CUPS Commands
# Print any file CUPS understands
lp -d Brother_DCP-T426W file.txt
# Print with options
lp -d Brother_DCP-T426W -o media=A4 -o sides=one-sided document.pdf
# Check jobs
lpstat -o Brother_DCP-T426W
# Cancel jobs
cancel Brother_DCP-T426W
Troubleshooting
| Issue | Solution |
|---|---|
driverless: command not found |
sudo apt install cups-filters ipp-usb |
| IPP connection refused | Verify printer supports IPP: driverless (list available IPP printers) |
| No paper output | Check paper tray, ink levels, printer not in error state |
| TCP prints garbled text | Printer may not support PJL PLAINTEXT — use IPP method |
| CUPS printer not found | lpstat -p to list printers; re-run lpadmin setup |
lp command not found |
sudo apt install cups-client |
安全使用建议
This appears to be a straightforward local printer helper, but review a few things before installing/running: 1) The script hardcodes PRINTER_IP (192.168.50.232) and PRINTER_NAME — verify this is your printer or edit the script to use a configurable argument rather than the hardcoded IP. 2) The SKILL.md instructs you to run sudo lpadmin to add a printer — only run those commands if you trust the printer/network and understand that they modify your CUPS config. 3) The package contains unrelated sonoscli files in the manifest and mentions backup driver files in docs that aren't present — this looks like packaging noise, not malicious behavior, but worth noting since the source/homepage are unknown. 4) Inspect scripts/print.py yourself (it is short) before executing; it only opens TCP to the LAN printer and spawns lp/lpstat, but make sure your environment and network policies permit that. If you want safer usage, change the code to accept a --host/--ip argument and avoid running privileged setup commands automatically.
功能分析
Type: OpenClaw Skill
Name: broder-printer
Version: 5.0.0
The bundle contains two unrelated skills (broder-printer and sonoscli) with different owner IDs, suggesting a potentially improper or unauthorized packaging. The printer script (scripts/print.py) is vulnerable to command argument injection by passing unsanitized file paths to the 'lp' command and contains a hardcoded local IP address. Furthermore, the Sonos skill (skills/sonoscli/SKILL.md) includes an automated installation hook that fetches and executes a binary from a remote GitHub repository (github.com/steipete/sonoscli), which is a high-risk capability.
能力评估
Purpose & Capability
The name/description match the included CLI script: code talks to a Brother printer over IPP/CUPS or TCP port 9100. One minor oddity: the printer IP (192.168.50.232) and printer name are hardcoded in scripts/print.py rather than being declared configurable in SKILL.md, which reduces flexibility but is plausible for a device-specific skill. The manifest also contains unrelated Sonos helper files (skills/sonoscli/*) which are unnecessary for this printer skill and look like leftover/packaging noise.
Instruction Scope
SKILL.md instructs only on printing setup and operation (installing CUPS, running lpadmin, using the included script). The instructions ask for one-time sudo actions to add a CUPS printer (expected). Runtime instructions and the script only access the local network printer and local CUPS commands; they do not collect or transmit data to external endpoints.
Install Mechanism
No automated install spec is provided (instruction-only + a Python script). That keeps the on-disk footprint minimal and avoids third-party downloads — consistent with the skill purpose.
Credentials
The skill declares no required environment variables or credentials and the code does not read secrets or other env vars. It only uses local system commands and a hardcoded LAN IP, which is proportionate to printing functionality.
Persistence & Privilege
The skill is not always-enabled and uses normal model invocation defaults. The SKILL.md asks the user to run privileged lpadmin commands for initial CUPS setup, but the script itself does not modify other skills or system-wide settings beyond what the documented setup requires.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install broder-printer - 安装完成后,直接呼叫该 Skill 的名称或使用
/broder-printer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v5.0.0
Initial ClawHub release — IPP + driverless PPD (primary), TCP direct fallback (text only)
元数据
常见问题
Brother DCP-T426W Printer 是什么?
Brother DCP-T426W network printer skill — IPP + driverless (primary), TCP direct (fallback for text-only, no sudo). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。
如何安装 Brother DCP-T426W Printer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install broder-printer」即可一键安装,无需额外配置。
Brother DCP-T426W Printer 是免费的吗?
是的,Brother DCP-T426W Printer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Brother DCP-T426W Printer 支持哪些平台?
Brother DCP-T426W Printer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Brother DCP-T426W Printer?
由 yardfarmer(@yardfarmer)开发并维护,当前版本 v5.0.0。
推荐 Skills