Repository navigation
|
I'm using a modified version of the Octoprint Script. It shows the remaining print time in the Header, that's why it is refreshed every minute. I'm wondering if it's possible to only execute the image part (fetch + convert) only when the dropdown is opened, instead of every time the script runs. |
Answered by
melonamin
Jan 4, 2024
Replies: 1 comment 2 replies
|
In theory you can write a cleverer plugin, which will have contional blocks depending on the type of refresh trigger. I'm already tracking refresh trigger types in code: I can expose this as an ENV variable and you will be able to have two branches 1) refresh only header 2) refresh everething. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, added #404