send_to_printer
Prepares a plate's print file and sends it to a Bambu printer by opening the file in official software, saving it, or starting a confirmed LAN print.
Instructions
Make the print file of one plate (.gcode.3mf) and send it. via = auto (Bambu Connect if installed, otherwise Bambu Studio) | bambu_connect | bambu_studio: open it in an official Bambu app, where the user checks printer and AMS mapping and presses Print/Send. via = file: only make the file. via = lan: copy it to the printer on the local network and START PRINTING, for printers in LAN-only mode with Developer Mode (print farms; in cloud mode the printer refuses and the answer says so). Two steps: without confirm nothing is sent, the answer gives the AMS slots it would use and a code; check with the user that the plate is clear, then call again with confirm=. AMS slots: from use_ams_filaments, or ams_slots (one AMS slot per project filament slot, 0 = automatic), or the tray with the same type and the closest color. Tell the user the time, weight and filaments of the plate (and for lan, follow it with printer_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | auto | |
| plate | No | ||
| confirm | No | ||
| ams_slots | No | ||
| timelapse | No | ||
| bed_leveling | No |