OctoPrint-Dashboard icon indicating copy to clipboard operation
OctoPrint-Dashboard copied to clipboard

Command widget enhancements

Open StefanCohen opened this issue 3 years ago • 4 comments

Possible enhancements for the command widgets:

  1. Better error handling: Check the return code of the called command and log an error including whatever is in stderr. Handle long-running commands gracefully by terminating them before they are called again and log the reason.
  2. Add a modal setting dialog for editing commands. This would allow viewing longer command strings without scrolling and:
  3. Add a test button to the UI that allows the user to test the call before saving it. display the result in a modal dialog.
  4. Add an enable/disable setting to each command. Disabled commands will not be executed nor displayed in the Dashboard.
  5. Add a setting for the polling interval. The hardcoded 60s can be way too long or short depending on the command called. example: "echo string" vs an snmpwalk.
  6. Truncate the displayed command result in the widget to fit the size of the widget container. (text-overflow: ellipsis)?
  7. Possibly add a second command for each command widget. This would make it possible to display two metrics in one widget similar to how it is done in the ETA widget. This would provide a higher metric density compared to adding two widgets (ex: temp & humidity sensor). The CPU/SOC widget currently holds three metrics but that is probably overkill.

StefanCohen avatar Oct 06 '20 07:10 StefanCohen

As of this post, the following should be done: 2, 3, 4, and 5.

Willmac16 avatar Nov 06 '20 19:11 Willmac16

Hello,

It is planned to add simple GCODE command ?

ShagoY avatar Nov 22 '20 19:11 ShagoY

Do you mean buttons to run Goode on the printer? If so, see issue #232 that will likely be added in v2.

Willmac16 avatar Nov 22 '20 19:11 Willmac16

I had seen this outcome but as you don't mention the term GCODE, I thought it was more an integration than anything else.

But yes, I'm talking about being able to create commands that run GCODE :)

In my case, it's to integrate commands from the WS281x_LED_Status plugin, for example activate the torch or change the colors of my leds etc...

Thanks in advance !

ShagoY avatar Nov 23 '20 00:11 ShagoY