I’ve created an app that talks to my 3D Printer’s Klipper controller.
Everything works and it is able to get printer stats successfully and display them.
Issue is that the app only calls the end-point once, even though I have it in an animation.
Is there something I am missing?
Here’s a code segment:
render.Animation(
children=[
render.Text(" "+file[0: -6]), # Strip .gcode,
render.Text(str(getPercentComplete()))
]
)
The getPercentComplete() function makes an HTTP Get request to the printer to get stats, but it only gets called once, even though these two children do get animated back and forth.
Thanks in advance.