The problem, how I see it:
Sometimes there are questions/feature requests:
What if we apply sensorless homing/detection (StallGuard) to something - extruder, Z stepper, or any other stepper in the system.
Also, sometimes there are silent question, like: “What have I done wrong with the sensorless homing?”
(It is actually mine, when I tried to setup the sensorless homing for the first time and can’t grasp why it didn’t work, do I messed with pins, do there is sensitivity issue? Like that.)
I want to somewhat democratize access to the underlying data.
As of v0.13.0-169-g9323a5df #6592 api to access the stallguard data from the TMC drivers is available.
It is possible to do so with Motan subsystem: Debugging - Klipper documentation
But it seems to be a complicated way sometimes.
Well, I glued together WebUI. Single HTML page.
stallguard-ui.html.zip (5.8 KB)
You can literally:
- Download
- Unzip
- Open file.
How to open file in Chrome
- Press Ctrl+O on your keyboard and browse for the file on your computer.
- Drag the file into Google Chrome from your computer desktop or folder. Your cursor displays a little ‘+’ sign if the action is successful.
- Type the location, also known as the path, of the file in the address bar, then press Enter.
It allows connect to the moonraker on your printer, choose driver and see live data, with ability to pause and zoom (yes, pretty basics).
Hope, someone can find it useful.
Because moonraker does have CORS protection, it needs to be disabled, to run file from local desktop.
[authorization]
....
cors_domains:
* # It is insecure, only as a duct tape to run file locally
*.lan
*.local
.....
Do not forget to restart moonraker, after modifications, and return it back when you done.
Ref: TMC Coolstep and how to make it works
Ref: klippy: add stallguard monitoring tool by nefelim4ag · Pull Request #6592 · Klipper3d/klipper · GitHub
















