octoprint.printer.profile#
This module contains printer profile related code.
A printer profile is a dict of the following structure:
.. list-table:: :widths: 15 5 30 :header-rows: 1
-
- Name
- Type
- Description
-
idstring- Internal id of the printer profile
-
namestring- Human readable name of the printer profile
-
modelstring- Printer model
-
colorstring- Color to associate with the printer profile
-
volumedict- Information about the print volume
-
volume.widthfloat- Width of the print volume (X axis)
-
volume.depthfloat- Depth of the print volume (Y axis)
-
volume.heightfloat- Height of the print volume (Z axis)
-
volume.formFactorstring- Form factor of the print bed, either
rectangularorcircular
-
volume.originstring- Location of gcode origin in the print volume, either
lowerleftorcenter
-
volume.custom_boxdictorFalse- Custom boundary box overriding the default bounding box based on the provided width, depth, height and origin.
If
False, the default boundary box will be used.
-
volume.custom_box.x_minfloat- Minimum valid X coordinate
-
volume.custom_box.y_minfloat- Minimum valid Y coordinate
-
volume.custom_box.z_minfloat- Minimum valid Z coordinate
-
volume.custom_box.x_maxfloat- Maximum valid X coordinate
-
volume.custom_box.y_maxfloat- Maximum valid Y coordinate
-
volume.custom_box.z_maxfloat- Maximum valid Z coordinate
-
heatedBedbool- Whether the printer has a heated bed (
True) or not (False)
-
heatedChamberbool- Whether the printer has a heated chamber (
True) or not (False)
-
extruderdict- Information about the printer's extruders
-
extruder.countint- How many extruders the printer has (default 1)
-
extruder.offsetslistoftuple- Extruder offsets relative to first extruder, list of (x, y) tuples, first is always (0,0)
-
extruder.nozzleDiameterfloat- Diameter of the printer nozzle(s)
-
extruder.sharedNozzleboolean- Whether there's only one nozzle shared among all extruders (true) or one nozzle per extruder (false).
-
extruder.defaultExtrusionLengthint- Default extrusion length used in Control tab on initial page load in mm.
-
axesdict- Information about the printer axes
-
axes.xdict- Information about the printer's X axis
-
axes.x.speedfloat- Speed of the X axis in mm/min
-
axes.x.invertedbool- Whether a positive value change moves the nozzle away from the print bed's origin (False, default) or towards it (True)
-
axes.ydict- Information about the printer's Y axis
-
axes.y.speedfloat- Speed of the Y axis in mm/min
-
axes.y.invertedbool- Whether a positive value change moves the nozzle away from the print bed's origin (False, default) or towards it (True)
-
axes.zdict- Information about the printer's Z axis
-
axes.z.speedfloat- Speed of the Z axis in mm/min
-
axes.z.invertedbool- Whether a positive value change moves the nozzle away from the print bed (False, default) or towards it (True)
-
axes.edict- Information about the printer's E axis
-
axes.e.speedfloat- Speed of the E axis in mm/min
-
axes.e.invertedbool- Whether a positive value change extrudes (False, default) or retracts (True) filament
.. autoclass:: PrinterProfileManager :members:
.. autoclass:: BedFormFactor :members:
.. autoclass:: BedOrigin :members:
.. autoclass:: SaveError
.. autoclass:: CouldNotOverwriteError
.. autoclass:: InvalidProfileError