bambuspool
BambuSpool
This value object is used by BambuPrinter
to enumerate "spools" connected to the printer.
It is used primarily within BambuPrinter
's _spools
attribute and is returned as part of a
Tuple when there are spools active on machine.
__init__(id, name, type, sub_brands, color, tray_info_idx, k, bed_temp, nozzle_temp_min, nozzle_temp_max)
Sets up all internal storage attributes for BambuSpool
.
Parameters
- id : int - Spool id can be
0-3
for AMS spools or254
for the External spool. - name : str - The name of the spool, typically only populated if a Bambu Lab RFID tag is recognized by the AMS.
- type : str - The type of filament in the spool. Will either be read by the RFID tag or set on the Printer display.
- sub_brands : str - For Bambu Lab filaments, specifies the specialization of the filament (Matte, Pro, Tough, etc).
- color : str - Will either be a color hex code or a color name if
webcolors
is able to recognize the color code. - tray_info_idx : str - The underlying index for the selected filament in Bambu Studio.
- k : float - The K-Factor to use for determining optimial linear advance (flow rate).
- bed_temp : int - The target bed temperature to use.
- nozzle_temp_min : int - The minimum usable nozzle temperature to use.
- nozzle_temp_max : int - The maximum usable nozzle temperature to use.