Janar Sööt

Results comments of Janar Sööt

Hi @aschor, I'll try to answer your questions. 0. The example configurations are now collected into one place [klipper/docs/Config_Reference.md](https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Reference.md) The `menu.cfg` has a expired reference to example file. 1. `Items`...

6. `"M117 Now at { params.VALUE|float * 100 }%"` In Klipper's jinja templates the `{% ... %}` is for a statement. The expression is between `{...}`, the expression always returns...

7. Show your macro code or what you have at the moment. Let's see what's wrong with that.

5. Maybe something like this. I haven't tested it. ```ini [menu RelaysLeds] type: input name: LEDSs {'On ' if menu.input else 'Off'} input: 0 input_min: 0 input_max: 1 input_step: 1...

About your gcode macro `[gcode_macro RELAY_LEDS]`. It looks like the `SET_GCODE_VARIABLE MACRO` command likes to get string values in a specific way. The single quotes will be stripped away and...

What I see from your menu code that you're not using the expression brackets. Maybe this is better. ```ini [menu __main __relais __RelaysLeds] type: input name: LEDSs {'On ' if...

I'm not the specialist of macro internals but it looks like it's there. Example macro. ```ini [gcode_macro REPORT_PARAMS] gcode: {% for name in params %} { action_respond_info("params['%s'] = %s" %...

I think `params` may have its purpose. In your case its safe to use the standard way ([link to gcode doc](/KevinOConnor/klipper/blob/master/docs/Config_Reference.md#g-code-macros-and-events)). If you always call the macro with parameter then...

Maybe something like this. ```ini [menu __main __filament1] type: list name: Filament [menu __main __filament1 __PLAloadf] type: command name: Load PLA Fill gcode: SAVE_GCODE_STATE NAME=__filament__PLAloadf M117 PreHeating M104 S210 M109...

Hi @zellneralex I'll check what options we have with current menu implementation and what can be added as development.