You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+52-3
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ spi_bus: spi0a
84
84
> Currently only PNG images are supported
85
85
```ini
86
86
[imonk image smily-face]
87
-
path: ~/smily-face.png
87
+
path: ~/imonk/doc/smily-face.png
88
88
```
89
89
_Can appear multiple times, each section defines one image that can be identified by name provided in section brackets. Images are synchronized to device on Klipper start (or with g-code commands) to save on communication during print and operation._
90
90
@@ -127,8 +127,8 @@ background: 333333
127
127
widgets: [
128
128
{
129
129
"type": "image",
130
-
"x": 120, # X Coordinate of the widget
131
-
"y": 120, # Y Coordinate of the widget
130
+
"x": 70, # X Coordinate of the widget
131
+
"y": 60, # Y Coordinate of the widget
132
132
"name": "smily-face"# Name of the image to display - same as in [imonk image ...] section
133
133
},
134
134
{
@@ -217,6 +217,55 @@ the extension provides macro helpers for stage/set commands that output `stage_i
217
217
}
218
218
```
219
219
220
+
#### Test macros
221
+
222
+
Test gcode macros using above configuration examples
223
+
224
+
```jinja
225
+
[gcode_macro IMONK_TEST_GAUGE]
226
+
gcode:
227
+
{% set progress = params.PROGRESS|default(0)|int %}
228
+
{% set stage_id = printer.imonk.set_view('test-gauge', {'progress': progress}) %}
0 commit comments