OctoPrint-Dashboard
OctoPrint-Dashboard copied to clipboard
Command widget enhancements
Possible enhancements for the command widgets:
- 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.
- Add a modal setting dialog for editing commands. This would allow viewing longer command strings without scrolling and:
- 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.
- Add an enable/disable setting to each command. Disabled commands will not be executed nor displayed in the Dashboard.
- 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.
- Truncate the displayed command result in the widget to fit the size of the widget container. (text-overflow: ellipsis)?
- 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.
As of this post, the following should be done: 2, 3, 4, and 5.
Hello,
It is planned to add simple GCODE command ?
Do you mean buttons to run Goode on the printer? If so, see issue #232 that will likely be added in v2.
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 !