Helper script: scripts/octoprint.py (relative to this skill directory).
Config: config.json (same directory) with octoprint_url and api_key.
Resolve all paths relative to this skill's directory.
All commands: python3
status-pretty — Formatted status with temps, progress bar, ETA (show this to users)status — Raw JSONcheck-errors — Returns JSON with errors/warnings (temp anomalies, stalls, connection issues)print — Start a printcontrol — Control active printtemp — Set temperaturelist-files — List uploaded filesupload [remote-name] — Upload gcodeanalyze — Extract gcode metadata (layers, time, filament, temps, dimensions)snapshot [output-path] — Capture webcam image (default: /tmp with timestamp)telegram-status — Send formatted status to Telegramtelegram-snapshot — Send webcam snapshot with progress captiontelegram-msg "message" — Send custom messageCheck on a print: status-pretty → optionally snapshot → check-errors
Start a print: status-pretty (verify Operational) → list-files or upload → optionally analyze → print
Error detection: check-errors returns critical errors (>15°C deviation, connection lost) and warnings (5-15°C deviation, stalled prints). Recommend pausing on temp issues, cancelling on critical errors.
status-pretty output for user display共 1 个版本