Bambu Print Sync

approvedunreviewed

by GeorgeP

Plan 3D prints, import print history from the Bambu Lab cloud, and track filament spools and cost with Bases.

↓ 15 downloadsUpdated todayMIT

Bambu Print Sync

Release Obsidian 1.9+ Desktop and mobile MIT Support on Boosty

English · Русский


Keep your 3D printing log where the rest of your notes live. Bambu Print Sync turns every print into a note, pulls the real time, filament and result from the Bambu Lab cloud, and keeps your spool notes up to date, so a Bases table can show what is queued, what it cost and how much filament is left.

Features

🗂 Print queuePlan prints as notes and see them on a board: Planned → Printing → Done / Failed.
📎 Queue from a linkClick Add model above the board, paste a MakerWorld, Printables, Thingiverse or Cults3D link, and a planned print with the model's picture appears in the queue.
💰 Spending at a glanceThe print dashboard opens with tiles: spent in total, this month, last month and on failed prints, with print count, kilograms and hours.
🎨 Spools by colourNew spool shows the material and colour pairs your printer actually used, as colour tiles; pick one, or choose a material from the list and a colour with the colour picker. When adding a model you can pick the spool by colour too.
🖼 Model picturesCards show the model's picture from its page, or the plate preview from the Bambu cloud after printing.
☁️ Cloud historyImports jobs from your Bambu Lab account: name, status, printer time, grams per filament, plate, printer.
🔗 Plan ↔ factA job is linked to the planned note by MakerWorld model ID or by name instead of creating a duplicate.
🧵 SpoolsFinds the spool by material and AMS colour, splits multi-colour prints across spools, and deducts grams once per print.
💸 Full print costFilament + electricity + printer depreciation + maintenance, written into every print. Pick your Bambu Lab printer model for its typical power draw.
❌ Failed printsThe cloud reports the full sliced weight for a cancelled job. The plugin scales it by how long the job ran against the slicer estimate, counts only the time it really ran, and marks the grams as an estimate (grams_estimated). A job cancelled before it started costs nothing; without a slicer estimate the full weight is kept as an upper bound. Warm-up and calibration count as printing, so very early failures are slightly overestimated; fix the grams by hand if you know them, the sync will not overwrite them.
🌍 English and RussianFollows Obsidian's language. Status words are configurable.

Screenshots

Queue board: planned, printing, done and failed prints

Cost breakdown: filament, electricity and wear per print

Grams, hours and cost by month
By month: grams, hours and cost per month.
Spool note with the prints made from it
Spool note: remaining filament and every print made from it.
Spools table with remaining filament
Spools: what is left, price per kg, low-stock warning.
Print note created from a MakerWorld link
From a link: a planned print created by pasting a MakerWorld URL.

Screenshots use a demo vault with sample data.

How it works

flowchart LR
    A[Bambu Studio / Handy<br/>sends a job] --> B[(Bambu Lab cloud<br/>print history)]
    B -- sync --> C{Note with this job ID?}
    C -- yes --> D[Update status, time, grams]
    C -- no --> E{Planned note<br/>with the same name?}
    E -- yes --> D
    E -- no --> F[Create a print note]
    D --> G[Match spool by<br/>material + colour]
    F --> G
    G --> H[Deduct grams from<br/>spool remaining_g]
    H --> I[[Bases: queue, totals,<br/>failures, spools]]

Your notes stay plain Markdown with properties. The plugin only reads and writes the properties listed below, and never touches a finished print you have edited.

Quick start

  1. Install the plugin (Community plugins → Browse → Bambu Print Sync), or put main.js, manifest.json and styles.css from the latest release into .obsidian/plugins/bambu-print-sync/.
  2. Open the plugin settings, click Log in and enter your Bambu Lab email and password. If Bambu sends a code by email, the plugin asks for it.
  3. On first start the plugin offers to create the prints and spools folders, the tracker base (Print tracker.base) and the Print dashboard note: buttons on top, the board below. Skipped it? Run Create print dashboard later.
  4. Set Import prints since to today if you do not want your whole history, and fill in the Print cost section (see below).
  5. Queue a model with the Add model button on the dashboard (or the ➕ icon in the ribbon) and paste its link.
  6. Add your spools with New spool note, filling material, color_hex, price and weight_g.
  7. Click the printer icon in the ribbon, or wait for the automatic sync.

Commands

CommandWhat it does
Sync prints from Bambu cloudImports new jobs, updates running ones, then deducts filament.
Deduct filament from spoolsDeducts finished and failed prints that have a spool but were not deducted yet. Works for manual notes too.
Add model to queue by linkCreates a planned print from a MakerWorld, Printables, Thingiverse or Cults3D link.
New print noteCreates a print note with the right properties in the configured folder.
New spool noteOpens the spool window: colour tiles from your prints, material list, colour picker, brand, weight and price.
Choose the spool for this printPick a spool by colour for the open print note.
Create print dashboardCreates a note with spending tiles and the Add model, Sync and Empty card buttons above the embedded tracker.
Create tracker baseWrites the Bases file with Queue, All prints, By month, Failed, Cost breakdown and Spools views.
Recalculate cost of all printsRewrites the cost of every print with the current rates.
Log in to Bambu accountOpens the login window.

Note properties

Print note (type: print)
PropertyExampleSet by
statusPlanned, Printing, Done, Failedyou or sync
spool"[[PLA Basic Black]]"you, or sync when it finds one match
grams42.4you or sync
time_h, time_m2, 40you or sync (real runtime once a job ends)
printed2026-11-26sync
plate1you or sync
filamentsPLA #000000 — 42.4 gsync
usage"[[PLA Basic Black]]: 30"sync, for multi-colour prints
grams_estimatedtruesync, for failed prints
model_url, model_site, makerworld_idhttps://makerworld.com/…Add model, or the cloud sync
cover[[bambu-123.png]]model page or Bambu cloud
bambu_task_id, bambu_title, printer, time_est_min, sourcesync
spool_deductedtrueplugin, after deducting
price_kg1990you, optional override of the spool price
cost_filament, cost_power, cost_wear, cost1.06, 0.06, 0.67, 1.79plugin
Spool note (type: spool)
PropertyExampleNotes
materialPLA BasicThe first word is matched against the AMS filament type.
color_hex000000AMS colour without #. Leave empty to match by material only.
weight_g1000Filament weight on a full spool.
price1990Price of the spool in your currency.
remaining_g870Updated by the plugin.
spool_statusIn use, EmptyEmpty spools are never matched.

Matching a job to a planned note

A planned or printing note created from a MakerWorld link is linked by the model ID, which is exact. Otherwise a note is linked when its name matches the job name after both are normalised: lower case, without .3mf, plate N, underscores and dashes. Shelf_bracket.3mf matches a note called Shelf bracket. If your note has another name, put the cloud name in bambu_title.

Print cost

Set the rates once in the settings:

SettingExampleUsed for
Printer modelBambu Lab P2S · ~130 Wfills in the average power; edit the watts if you measured yours
Electricity price per kWh0.18hours × W ÷ 1000 × price
Printer price, lifetime hours800, 4000depreciation: hours × price ÷ lifetime
Maintenance per hour0.05nozzles, plates, belts, lubricant
Currency symbol$shown on the queue cards
cost = grams × price per kg ÷ 1000            (filament, per spool for multi-colour prints)
     + hours × watts ÷ 1000 × price per kWh   (electricity)
     + hours × (printer price ÷ lifetime hours + maintenance per hour)   (wear)

The plugin writes cost_filament, cost_power, cost_wear and cost into a print whenever its grams, time or spool change. Once a print is done or failed, its cost stays as it was, so changing your electricity tariff does not rewrite history; run Recalculate cost of all prints when you want that. The settings show your machine cost per printing hour. Power values for printer models are typical averages, not measurements.

Queue from a link

Click Add model on the print dashboard (or the ➕ ribbon icon, or the Add model to queue by link command) and paste the link. The plugin recognises MakerWorld, Printables, Thingiverse and Cults3D pages, takes the model name from the URL (or from the page, if the link has none, like /models/12703) and creates a planned print with the link. Adding the same model again does not create a second card while the first is still queued.

You can put the buttons into any note yourself:

```bambu-print-sync
```

Prefer pasting links straight into notes? Turn on Queue models from pasted links in the settings: then a model link pasted into any note creates a card too.

Pictures. The plugin saves the picture the model page offers for link previews into an Images folder next to your notes and shows it on the queue card. Some sites block automated requests; then the card stays without a picture until you print, when the plate preview from the Bambu cloud is used. Turn off Model images if you do not want this. Imported prints also get a link to their MakerWorld model when the cloud knows it. Grams and time come from the cloud sync once you print, or you fill them in after slicing.

Using it with a vault sync

Obsidian Sync, Seafile, iCloud, Syncthing and similar tools copy your notes between devices. The plugin is built to work alongside them:

  • One device writes. Only the main device imports from the Bambu cloud, deducts filament and writes costs. The switch is the first item in the plugin settings, and there is also a command, Make this device the main one. Desktops are main by default, phones are not. The switch is stored on the device itself, so it stays put even if your plugin settings are synced. Make exactly one device the main one; a phone works too, but it only syncs while Obsidian is open.
  • Two main devices cannot happen. Each device keeps a small service note in a Devices folder next to your notes, and only ever writes its own note, so the vault sync has nothing to merge. Turning the switch on while another device is actively the main one asks first; the other device then steps down by itself the next time it would import, before touching anything. The settings show which device is the main one and when it last synced.
  • No main device is noticed. If no device is the main one, or the main device has not synced for two days, the other devices show a warning (once a day) with a Make this the main device button. A main device that is not logged in warns too.
  • It waits for your sync. The first Bambu sync after Obsidian starts is delayed (30 seconds by default) so notes made on other devices arrive first.
  • Duplicates clean themselves up. If two copies of the same cloud job ever show up, the plugin keeps the one already deducted, or the oldest, and moves the other to the trash.
  • Edits are small. The plugin only changes properties in the note header, and only when a value actually changes, so the sync tool has little to merge and no edit loops between devices.

Adding models works on every device, since it is something you do by hand.

Privacy and network use

This plugin needs a Bambu Lab account and talks to the Bambu Lab cloud over the internet:

  • api.bambulab.com (or api.bambulab.cn for China accounts) to log in, list your printers and read your print history;
  • bambulab.com/api/sign-in/tfa only if your account uses two-factor authentication;
  • the Bambu CDN, to download plate preview images of your prints (if Model images is on).

When you add a model by link, the plugin opens that model page (MakerWorld, Printables, Thingiverse or Cults3D) once to read its preview picture, and downloads the picture. Nothing is sent to those sites except the normal page request. Turn off Model images to skip this.

Your password is sent to Bambu Lab once to get a token and is never stored. The token (valid about three months) is saved in .obsidian/plugins/bambu-print-sync/data.json inside your vault, so it travels with your vault sync. No other data goes anywhere: no telemetry, no analytics, no third-party servers.

[!WARNING] The Bambu Lab cloud API is not public or documented by Bambu Lab. It may change or stop working at any time. If login fails, you can paste a token manually in the settings.

FAQ

Does it work without the cloud? Yes. Create print and spool notes yourself and run Deduct filament from spools; the base works the same. LAN-only printers are not synced.

Will it import my whole history? It requests the last 50 jobs by default. Use Import prints since to start from a date.

Does it change my notes after a print is done? No. Once a job is final in the note, the plugin leaves it alone, so your corrections stay.

Can I use my own status words? Yes, under Status names in the settings. The generated base uses them too.

Development

The plugin is plain JavaScript with no build step: main.js is what Obsidian loads.

npm test

The test runs the sync and deduction logic against a fake vault and a fake cloud. To release, bump version in manifest.json and versions.json, then push a tag with the same number; the workflow attaches main.js, manifest.json and styles.css to a GitHub release.

Support

If the plugin saves you time, you can support its development on Boosty. The Support button on the plugin page in Obsidian leads there too.

Disclaimer

Not affiliated with, endorsed by or supported by Bambu Lab. "Bambu Lab" is a trademark of its owner.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.