← 返回 Skills 市场
photonixlaser-ux

Bambu Lab

作者 photonixlaser-ux · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
1164
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bambu-lab-skill
功能描述
Steuere Bambu Lab 3D-Drucker (A1, P1P, X1) über MQTT. Nutze diesen Skill für Druck-Überwachung, Status-Abfragen, Steuerung (Pause/Stopp) und Benachrichtigungen bei Druckende oder Fehlern. Erfordert LAN-Mode mit Access Code.
使用说明 (SKILL.md)

Bambu Lab 3D-Drucker Skill

Steuerung und Überwachung von Bambu Lab 3D-Druckern über MQTT im lokalen Netzwerk.

Konfiguration

Standard-Konfiguration (anpassbar in scripts/bambu.sh):

  • Host: 192.168.30.103 (A1 Drucker)
  • Port: 8883 (MQTT über TLS)
  • Username: 03919A3A2200009 (Seriennummer)
  • Passwort: 33576961 (Access Code)
  • Model: A1

Verwendung

Nutze das Skript scripts/bambu.sh für alle Operationen:

./skills/bambu-lab/scripts/bambu.sh \x3Cbefehl>

Befehle

Status & Überwachung:

  • status - Aktueller Druckstatus
  • progress - Druckfortschritt in %
  • temps - Temperaturen (Nozzle, Bed, Chamber)
  • watch - Live-Überwachung (läuft dauerhaft)

Steuerung:

  • pause - Druck pausieren
  • resume - Druck fortsetzen
  • stop - Druck abbrechen
  • light on|off - Druckerlicht an/aus
  • fans \x3C0-255> - Lüftergeschwindigkeit

Benachrichtigungen:

  • notify - Starte Überwachung mit Telegram-Benachrichtigung

MQTT Debug:

  • raw - Rohe MQTT-Nachrichten anzeigen

Beispiele

# Status abfragen
./skills/bambu-lab/scripts/bambu.sh status

# Druckfortschritt
./skills/bambu-lab/scripts/bambu.sh progress

# Live-Überwachung
./skills/bambu-lab/scripts/bambu.sh watch

# Druck pausieren
./skills/bambu-lab/scripts/bambu.sh pause

# Mit Benachrichtigung
./skills/bambu-lab/scripts/bambu.sh notify

Automatische Benachrichtigungen

Für automatische Benachrichtigungen bei Druckende:

# Im Hintergrund starten
./skills/bambu-lab/scripts/bambu.sh notify &

Oder per Cron/Heartbeat regelmäßig ausführen.

API Referenz

Siehe references/mqtt.md für vollständige MQTT-Dokumentation.

Unterstützte Modelle

  • ✅ A1 (getestet)
  • ✅ A1 Mini
  • ✅ P1P / P1S
  • ✅ X1 / X1C

Alle Modelle nutzen das gleiche MQTT-Protokoll im LAN-Mode.

安全使用建议
This skill appears to do what it says (local MQTT control and monitoring). Before installing or running it: - Replace the hard-coded HOST, SERIAL and ACCESS_CODE values with your own device values or configure BAMBU_HOST/BAMBU_SERIAL/BAMBU_ACCESS_CODE environment variables; treat any credentials as secrets. The repository defaults look like someone else's device and should not be trusted. - Confirm the scripts will run only on your local network (they connect to a LAN IP). Do not run them on public networks where the printer IP might be reachable by others. - The monitor will write persistent state: it uses /home/node/.openclaw/workspace/.bambu_state.json and /tmp/bambu_notification.txt. If you care about privacy, change the state file path to somewhere appropriate and inspect the contents the script writes. - If you want Telegram notifications, review and modify send_telegram() — the current implementation prefers writing a local notification file for OpenClaw integration and does not send messages to Telegram unless you implement that behavior and supply TELEGRAM_BOT_TOKEN. Do not assume TELEGRAM_BOT_TOKEN in the environment will be used as-is without code changes. - Ensure required binaries/libraries (mosquitto-clients or python3 + paho-mqtt) come from trusted sources and run the scripts in a controlled environment first (test with your own device or a VM).
功能分析
Type: OpenClaw Skill Name: bambu-lab-skill Version: 0.1.0 The skill is classified as suspicious primarily due to the use of `ssl.CERT_NONE` and `tls_insecure_set(True)` in `scripts/bambu.py` and `scripts/bambu_monitor.py`. This disables TLS certificate verification for MQTT communication, making it vulnerable to Man-in-the-Middle attacks, even on a local network. Additionally, `scripts/bambu_monitor.py` attempts to read the `TELEGRAM_BOT_TOKEN` environment variable, which is sensitive, although the actual external Telegram API call for exfiltration is not implemented in the provided code (it uses OpenClaw's internal notification mechanism instead). These are risky capabilities without clear malicious intent, aligning with the 'suspicious' classification.
能力评估
Purpose & Capability
The name/description (control + monitoring via MQTT) align with the included files: bash and Python scripts implement MQTT connect/subscribe/publish, status parsing, control commands, and notification logic for supported Bambu models.
Instruction Scope
SKILL.md simply instructs running the included scripts; the scripts stay within scope (connect to printer over MQTT, show status, send commands, optionally notify). The monitor script reads/writes a state file in the agent/workspace and can write a notification file under /tmp to integrate with OpenClaw. No unrelated OS-wide file reads or broad 'gather context' instructions are present.
Install Mechanism
No install spec is present (instruction-only skill). Scripts rely on standard system packages (mosquitto-clients) or Python paho-mqtt; no downloads from arbitrary URLs or archive extraction are used.
Credentials
The code contains hard-coded defaults for HOST, SERIAL and ACCESS_CODE (192.168.30.103 / 03919A3A2200009 / 33576961) and a hard-coded TELEGRAM_CHAT_ID. While these are relevant to the skill's function, embedding what appear to be real device credentials in the repository is risky: they should be treated as secrets and replaced with environment variables or removed. The scripts do accept BAMBU_* env overrides but the repository still exposes defaults.
Persistence & Privilege
The monitor writes persistent state to /home/node/.openclaw/workspace/.bambu_state.json and may write /tmp/bambu_notification.txt for integration; it does not change other skills or set system-wide configuration. 'always' is false and the skill does not demand elevated privileges, but it is designed to be run continuously/periodically (cron) which creates persisted state.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bambu-lab-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bambu-lab-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release—steuere und überwache Bambu Lab 3D-Drucker über MQTT im LAN: - Unterstützt Statusabfrage, Steuerung (Pause, Stopp), Temperatur- und Fortschrittsanzeigen. - Live-Überwachung und automatische Benachrichtigungen bei Druckende oder Fehlern. - Einfache Bedienung per Bash-Skript mit anpassbarer Konfiguration. - Kompatibel mit A1, A1 Mini, P1P/P1S, X1/X1C-Modellen im LAN-Mode.
元数据
Slug bambu-lab-skill
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bambu Lab 是什么?

Steuere Bambu Lab 3D-Drucker (A1, P1P, X1) über MQTT. Nutze diesen Skill für Druck-Überwachung, Status-Abfragen, Steuerung (Pause/Stopp) und Benachrichtigungen bei Druckende oder Fehlern. Erfordert LAN-Mode mit Access Code. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1164 次。

如何安装 Bambu Lab?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bambu-lab-skill」即可一键安装,无需额外配置。

Bambu Lab 是免费的吗?

是的,Bambu Lab 完全免费(开源免费),可自由下载、安装和使用。

Bambu Lab 支持哪些平台?

Bambu Lab 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bambu Lab?

由 photonixlaser-ux(@photonixlaser-ux)开发并维护,当前版本 v0.1.0。

💬 留言讨论