bed_mesh: improvements an changes:

use current profiles instead of the ones saved in the config file
remove matplotlib and numpy, caused many intall issues, graph was slow and not great for small screens
create a custom 2D graph to show the probed matrix
This commit is contained in:
alfrix
2022-11-07 19:04:40 -03:00
parent 0ca410acba
commit ce6158ad91
4 changed files with 141 additions and 133 deletions

View File

@@ -10,7 +10,6 @@ import os
import signal
import subprocess
import pathlib
import traceback # noqa
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, Pango
@@ -244,7 +243,7 @@ class KlipperScreen(Gtk.Window):
def ws_subscribe(self):
requested_updates = {
"objects": {
"bed_mesh": ["profile_name", "mesh_max", "mesh_min", "probed_matrix"],
"bed_mesh": ["profile_name", "mesh_max", "mesh_min", "probed_matrix", "profiles"],
"configfile": ["config"],
"display_status": ["progress", "message"],
"fan": ["speed"],