eyal0 / OctoPrint-TimeToFilament

Display time until next filament change and other time-until-whatever info in OctoPrint
3 stars 1 forks source link

I've had to disable my Time-To parameters. I was getting interference with the gcode viewer, for some reason. Without any of the 4 I have, the gcode viewer was smooth and normal. The more of the parameters I enabled, the jerkier it got, sometimes going 10 seconds or so without moving, then suddenly jumping to the new position (and leaving the normal corresponding lines behind). #8

Closed eyal0 closed 3 years ago

eyal0 commented 3 years ago

I've had to disable my Time-To parameters. I was getting interference with the gcode viewer, for some reason. Without any of the 4 I have, the gcode viewer was smooth and normal. The more of the parameters I enabled, the jerkier it got, sometimes going 10 seconds or so without moving, then suddenly jumping to the new position (and leaving the normal corresponding lines behind).

https://www.dropbox.com/s/gn3piukdw9d6cc7/screencast%202020-12-11%2013-55-46.mp4

    TimeToFilament:
        displayLines:
        -   description: Time to Next Layer
            enabled: false
            format: Layer ${this.plugins.TimeToFilament["^;LAYER:(\\d+)"].groups[0]}
                start in <b>${formatDuration(this.progress.printTimeLeft - this.plugins.TimeToFilament["^;LAYER:(\\d+)"].timeLeft)}
                seconds</b>
            regex: ^;LAYER:(\d+)
        -   description: Time to Next Filament Change
            enabled: false
            format: Filament change in <b>${formatDuration(this.progress.printTimeLeft
                - this.plugins.TimeToFilament["^M600"].timeLeft)} seconds</b>
            regex: ^M600
        -   description: Time of Next Filament Change
            enabled: false
            format: Filament change at <b>${new Date(Date.now() + (this.progress.printTimeLeft
                - this.plugins.TimeToFilament["^M600"].timeLeft)*1000)}</b>'
            regex: ^M600
        -   description: Time to Next Pause
            enabled: false
            format: Printer Pause in <b>${formatDuration(this.progress.printTimeLeft
                - this.plugins.TimeToFilament["^M0"].timeLeft)} seconds</b>
            regex: ^M0

Originally posted by @KenLucke in https://github.com/eyal0/OctoPrint-TimeToFilament/issues/6#issuecomment-743449208

eyal0 commented 3 years ago

Sorry about that. It was a regression. While working on #6, I re-broke something. Should be fine now. Try version 1.1.1 and let me know, thanks!

I'm still trying to get approved for the plugin repo.

KenLucke commented 3 years ago

will do, once current prints are done.