2023-01-01 15:13:57 +01:00
|
|
|
# Klipper Percentage Usermod
|
|
|
|
This usermod polls the Klipper API every 10s for the progressvalue.
|
2023-02-19 09:08:40 +01:00
|
|
|
The leds are then filled with a solid color according to that progress percentage.
|
|
|
|
the solid color is the secondary color of the segment.
|
2023-01-01 15:13:57 +01:00
|
|
|
|
|
|
|
A corresponding curl command would be:
|
|
|
|
```
|
|
|
|
curl --location --request GET 'http://[]/printer/objects/query?virtual_sdcard=progress'
|
|
|
|
```
|
|
|
|
## Usage
|
|
|
|
Compile the source with the buildflag `-D USERMOD_KLIPPER_PERCENTAGE` added.
|
|
|
|
|
|
|
|
You can also use the WLBD bot in the Discord by simply extending an exsisting build enviroment:
|
|
|
|
```
|
|
|
|
[env:esp32klipper]
|
|
|
|
extends = env:esp32dev
|
2023-02-19 09:08:40 +01:00
|
|
|
build_flags = ${common.build_flags_esp32} -D USERMOD_KLIPPER_PERCENTAGE
|
2023-01-01 15:13:57 +01:00
|
|
|
```
|
|
|
|
|
2023-02-19 09:08:40 +01:00
|
|
|
## Settings
|
|
|
|
|
|
|
|
### Enabled:
|
|
|
|
Checkbox to enable or disable the overlay
|
|
|
|
|
|
|
|
### Klipper IP:
|
|
|
|
IP adress of your Klipper instance you want to poll. ESP has to be restarted after change
|
|
|
|
|
|
|
|
### Direction :
|
|
|
|
0 = normal
|
|
|
|
|
|
|
|
1 = reversed
|
|
|
|
|
2023-02-23 19:47:27 +01:00
|
|
|
2 = center
|
|
|
|
|
2023-01-01 15:13:57 +01:00
|
|
|
-----
|
|
|
|
Author:
|
|
|
|
|
|
|
|
Sören Willrodt
|
|
|
|
|
|
|
|
Discord: Sören#5281
|