@node-bambu/core
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

@node-bambu/core

npm (scoped)

This library is for integrating with the MQTT server running on the Bambu Labs' printers.

Usage

import { BambuClient } from './lib/BambuClient';

const client = new BambuClient({
  host: '10.10.20.101', // Found inside the Bambu Network Settings on the Bambu printer itself (Click the Cog > Network > IP)
  port: 8883,
  token: '<your-token-here>', // Found inside the Bambu Network Settings on the Bambu printer itself (Click the Cog > Network > Access Code)
  serial: '<your-serial-here>', // Found inside the Bambu System Settings on the Bambu printer itself (Click the Cog > General > Device Info)
});

client.on('print:update', (job) => {
  console.log('Update: ', job);
});
client.on('print:start', (job) => {
  console.log('Start: ', job);
});
client.on('print:finish', (job) => {
  console.log('Finish: ', job);
  client.disconnect();
});

client.connect();

Building

Run nx build node-bambu to build the library.

Readme

Keywords

none

Package Sidebar

Install

npm i @node-bambu/core

Weekly Downloads

1

Version

0.5.1

License

MIT

Unpacked Size

64.9 kB

Total Files

56

Last publish

Collaborators

  • aequasi