you need to escape the parentheses around the mm. Parentheses are valid regex syntax, your pattern is looking for a string “Filament diameter mm” with the mm being in the first group, so it will never match “Filament diameter (mm)”. Try “Filament diameter (mm)” instead. Same problem for the %.
@foosel , do you think it is possible to graph the filament width sensor reading across time like it is done with temperature? Can you point me to the most viable solution?
I updated Octoprint to devel and now I’m running some plugins to see how they work. I read the docs but how do I trigger a M407 command every 5-10 seconds? I’m trying to adapt the navbar temperature plugin to show filament width but in my case I don’t have temperatureViewModel with all the needed information
Sorry, sick, can’t help at the moment. Take a look at the docs, the printer module plus the RepeatedTimer from the util module are what you want to take a closer look at.