I'm writing a small utility for my set of three printers, so that I don't have to always have the octopi webpages loaded in three tabs. (And this way I can keep them all shown at once on, for example, a cheap tablet).
Everything is fine right now but I'm looking to add a few more features, if possible. Here are my questions:
Color change. If the printer got a M600 command, it's pausing and beeping, but I might not be close enough to hear that. I'd like to be able to tell that's happening, but I don't see any way currently. I think that either the ability to see the state of the printer as busy, or being able to see that a M600 command was recently sent, would be a way to do this.
Z-index display. I might be missing something simple, but I don't see anything that shows the current z-index value. This could also be implemented by seeing the last matching command of a filter.
In the case the above had to be implemented as more of an "event" rather than a "state", it wasn't clear how to setup my application to subscribe to these events. Currently, I am just polling every 60s a few of the /api paths. Have I missed something obvious in the documentation? If there is no documentation, does anyone have a suggested part of the octopi source to start reading?
Thank you for your time and attention.