<p>Currently, OctoPrint shows a printer state such as &quot;Printing&quot; as shown below:</p>
<p><a href="https://i.sstatic.net/XY4Rv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XY4Rv.png" alt="OctoPrint State" /></a></p>
<p>But is there is a way such as via a Cura script or OctoPrint Plugin to insert a special g-code and let OctoPrint show &quot;State: Ironing&quot; instead? This is especially helpful since I usually only iron my top layer, so it's only busy ironing from a specific layer.</p>
<p>Or does Marlin firmware already know and support states other than &quot;stopped, paused, printing&quot; such as ironing, tramming, leveling, heating?</p>

CC BY-SA 4.0
2023-11-27T09:25:05.820Z
Wouldn't it be better to ask this at the OctoPrint github as a feature request?
0scar
CC BY-SA 4.0
2023-11-27T09:29:51.263Z
Thanks for the suggestion. I will post it there too.
Bob Ortiz
CC BY-SA 4.0
2024-01-11T22:35:55.587Z
Looking at the API specification, https://docs.octoprint.org/en/master/api/printer.html#retrieve-the-current-printer-state, the states are predefined. It would require rewriting the OctoPrint software to add more states, more specifically, how to detect them. Is this something you aim to answer the question?
0scar
CC BY-SA 4.0
2024-01-12T21:10:44.517Z
I see. I guess I'm looking ultimately for something that is not available in OctoPrint currently. Alternatively I'm thinking to simply use M118 before and after things like leveling, heating, cooling etc. Seems status is not possible for now.
Bob Ortiz
<marlin><ultimaker-cura><g-code><octoprint><scripts>
Do OctoPrint or Marlin support "ironing" and additional printing states?
Bob Ortiz
# Do OctoPrint or Marlin support "ironing" and additional printing states?

(Asked by: username_0 on 2023-11-05)

Currently, OctoPrint shows a printer state such as "Printing" as shown below:

[![OctoPrint State](https://i.sstatic.net/XY4Rv.png)](https://i.sstatic.net/XY4Rv.png)

But is there is a way such as via a Cura script or OctoPrint Plugin to insert a special g-code and let OctoPrint show "State: Ironing" instead? This is especially helpful since I usually only iron my top layer, so it's only busy ironing from a specific layer.

Or does Marlin firmware already know and support states other than "stopped, paused, printing" such as ironing, tramming, leveling, heating?

**Tags:** marlin, ultimaker-cura, g-code, octoprint, scripts

> **Comments:**
> **username_1**: Wouldn't it be better to ask this at the OctoPrint github as a feature request?  
> **username_0**: Thanks for the suggestion. I will post it there too.  
> **username_1**: Looking at the API specification, https://docs.octoprint.org/en/master/api/printer.html#retrieve-the-current-printer-state, the states are predefined. It would require rewriting the OctoPrint software to add more states, more specifically, how to detect them. Is this something you aim to answer the question?  
> **username_0**: I see. I guess I'm looking ultimately for something that is not available in OctoPrint currently. Alternatively I'm thinking to simply use M118 before and after things like leveling, heating, cooling etc. Seems status is not possible for now.  

---

## 0 answers

