cp2004 / OctoPrint-WS281x_LED_Status

Add some RGB LEDs to your printer for a quick status update!
https://plugins.octoprint.org/plugins/ws281x_led_status
GNU Affero General Public License v3.0
111 stars 26 forks source link

[Request]: Provide Status Info via Host @ Command #146

Closed willpuckett closed 3 years ago

willpuckett commented 3 years ago

What would you like implemented?

I access all my printer functions via MQTT. I was adding a status sensor for the WS Lights in Home Assistant via the API this morning... and Wow! What a speed difference!

Would it be possible to implement a host command such as "@status" that would simply return the same JSON as the API GET request?

Cheers!

Why should this be implemented?

Not terribly important, but so interfaces feel as responsive as possible.

cp2004 commented 3 years ago

Host @ commands don't provide a way to 'get' any status. When I receive one of them, there is no way to send back any information, so I don't think you will be able to use them in this way - they are just commands, that say 'do something'. I haven't used MQTT/HA/OctoPrint together, but generally gcode commands (@ commands are OctoPrint-specific gcode) don't get a specific response either, at least not from OctoPrint's API.