Skip to content

Feature Request: Add API endpoint to expose current printer status (gcode_state) #88

Description

@Niko11111

Use case
I run OpenSpoolman on a Raspberry Pi alongside an automated rsync backup script. The backup stops Docker containers (including OpenSpoolman) briefly to ensure data consistency. To avoid interrupting an active print, I want to check whether the printer is currently printing before stopping the container.
Problem
OpenSpoolman already receives the printer's gcode_state via MQTT (e.g. RUNNING, IDLE, FINISH) and stores it internally in PRINTER_STATE. However, there is currently no API endpoint that exposes this information externally.
The live_snapshot.json file only contains spool data and a static printer model/name — no live print status.

Feature request
Please add a simple read-only API endpoint such as:

GET /api/printer/status

Example response:

json{
"gcode_state": "RUNNING",
"is_printing": true
}

This would allow external tools and scripts to safely query whether a print is in progress without needing direct MQTT access or printer credentials.

Why this is useful beyond my use case
Any home automation system, backup tool, or script that interacts with OpenSpoolman's Docker container would benefit from being able to check print status via a simple HTTP call — without requiring MQTT broker access or Bambu LAN credentials.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions