1.3.0 • Published 2 months ago

bambu-js v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Bambu JS

Tools to interact with Bambu Lab printers over MQTT and FTP.

Example

import { BambuPrinter } from "bambu-js";

(async () => {
	// Create the printer
	const printer = new BambuPrinter("192.168.68.1", "01P0XX1XX2XX", "12345678");

	// Connect to the printer
	await printer.connect();

	// Manipulate files on the SD card
	await printer.manipulateFiles((context) => {
		let dir = await context.readDir("models");
		console.log(dir);
	});

	// Start a print job
	printer.printProjectFile(
		"models/project.3mf",
		"plate_1.gcode",
		"Plate 1",
		"66b1ea1d91b15ace6f74ea1456ba1456",
		{
			timelapse: false,
		},
	);

	// Log the printer state
	console.log(printer.state);
})();
1.3.0

2 months ago

1.2.0

2 months ago

1.1.3

2 months ago

1.1.1

3 months ago

1.1.2

3 months ago

1.1.0

3 months ago

1.0.0

3 months ago