Motion_report - live_extruder_velocity

Basic Information:

Printer Model: Home made
MCU / Printerboard: Octopus
Host / SBC : Raspberry

Hi,
Since the last update, the Flow display on the LCD display is not working
It seems that there is an error somewhere in printer[‘motion_report’].live_extruder_velocity
Because even though I read the value, it is always 0.0.

  • Klipper : v0.13.0-395-gf04895f5

[display_template _flow_extruder]
param_extruder_name: "extruder"
text:

### calc flow
     {% set speed = printer["motion_report"].live_extruder_velocity %}
     {% set diameter_r = printer.configfile.settings[param_extruder_name].filament_diameter / 2 %}   
 
    {% if printer['gcode_macro M221'] is defined %}  
       {% set extrude_factor = (printer['gcode_macro VARIABLE'].extrude_factor[param_extruder_name]) %}              
    {% else %}
       {% set extrude_factor = printer.gcode_move.extrude_factor %}
    {% endif %}

     {% set flow = 3.14 * diameter_r * diameter_r * speed|float  * extrude_factor  %}   
         {"%4.1f" % (flow,)}

Moreover, the Flow is not displayed in Mainsail either

1 Like

Hmmm, it can be introduced in the recent extended position PR: https://github.com/Klipper3d/klipper/pull/7086


You could check the: motion_report: fix live_extruder_velocity in get_status by meteyou · Pull Request #7115 · Klipper3d/klipper · GitHub

1 Like

Hi,

Thanks, to the update to Klipper v0.13.0-396-gdb7acaa3 everything was solved.

Petr

1 Like

2 posts were split to a new topic: Where to find the flow rate

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.