eyal0 / OctoPrint-TimeToFilament

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

Not an issue :) #24

Closed KenLucke closed 3 years ago

KenLucke commented 3 years ago

Not an issue, just showing a bit of color I added:

image
eyal0 commented 3 years ago

Nice one. Did you modify the settings so that there would be <span color=red> tags in the output? Or something like that?

KenLucke commented 3 years ago

Yep, exactly what I did.

Filament change in <b><span style="color:lime">${formatDuration(this.progress.printTimeLeft - this.plugins.TimeToFilament["^M600"].timeLeft)} </span></b>
<br>
Filament change at <b><span style="color:orange">${new Date(Date.now() + (this.progress.printTimeLeft - this.plugins.TimeToFilament["^M600"].timeLeft)*1000).toLocaleTimeString([], {hour12:false})}</span></b>