jneilliii / OctoPrint-CustomBackground

10 stars 3 forks source link

[FR] custom temperature line color #32

Open Andrei-Pozolotin opened 4 years ago

Andrei-Pozolotin commented 4 years ago
  1. it seems currently there is no plugin which can provide custom temperature graph line color

  2. case in hand: in Android/TouchUI chamber temperature is black-line-on-black-background, and hence not usable

jneilliii commented 3 years ago

I looked at this a little bit for the release I just published but the way in which the flot graph is being generated it's going to take a little while to see if it's even possible to do this. There seems to be a good number of forced color schemes from the core OctoPrint code as it's drawing the lines themselves.

mikekscholz commented 3 years ago

Just editing the file manually is likely the best way to do it while retaining your sanity. I just added my own hex values to the beginning of the list at line 120 and replaced the word "blue" with a hex value at line 164, and the word "black" with a hex value for the chamber temp at line 172 in the file "~\oprint\lib\python3.7\site-packages\octoprint\static\js\app\viewmodels\temperature.js" Then just restart Octoprint. Maybe there's a simple way to override the variables array in the TemperatureViewModel but I'm too tired to think any deeper on this at the moment.