From 5766d16edc2562d7f561bf38521928efc7accafa Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 21 Dec 2021 20:34:06 -0500 Subject: [PATCH] octoprint_compat: default printer profile fix Cura's Octoprint plugin expects an "axes" field for each profile. Report these values to match the default values used by the plugin. Signed-off-by: Eric Callahan --- moonraker/components/octoprint_compat.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/moonraker/components/octoprint_compat.py b/moonraker/components/octoprint_compat.py index ceae561..bcfc67c 100644 --- a/moonraker/components/octoprint_compat.py +++ b/moonraker/components/octoprint_compat.py @@ -332,6 +332,24 @@ class OctoprintCompat: 'current': True, 'heatedBed': 'heater_bed' in self.heaters, 'heatedChamber': 'chamber' in self.heaters, + 'axes': { + 'x': { + 'speed': 6000., + 'inverted': False + }, + 'y': { + 'speed': 6000., + 'inverted': False + }, + 'z': { + 'speed': 6000., + 'inverted': False + }, + 'e': { + 'speed': 300., + 'inverted': False + } + } } } }