2.2.2 • Published 9 months ago

bambu-js v2.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 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);
})();
2.2.2

9 months ago

2.2.1

10 months ago

2.2.0

10 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.5

10 months ago

2.0.1

11 months ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.3

1 year ago

1.1.1

1 year ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago