Skip to content

Proof of concept app to stream MQTT from Bambu Lab 3D printer to OBS for video streaming.

License

Notifications You must be signed in to change notification settings

DrEsteban/BambuVideoStream

 
 

Repository files navigation

BambuVideoStream

.Net app to push MQTT sensor data from Bambu Lab 3D printer to OBS for video streaming.

Improvements have been made in this fork to make the app more streamlined, reliable, and configurable without needing experience in .NET programming.

General improvements

  • OBS inputs will be created if not exists
  • Additional controls for OBS stream ownership
  • Switched to an FTP library that should be cross-platform. (Doesn't rely on WinSCP.exe)
  • General code cleanup, refactoring, and updating to modern .NET practices
  • Adding publishing of ready-to-use binaries for end-users, with more prescriptive instructions
  • Created an installer with auto update for Windows

I also had to fork obs-websocket-dotnet to fix/workaround some annoying issues & behavior. This project has a submodule reference to my fork of it.

Prerequisites

Instructions for streaming the Bambu webcam with OBS are here: https://wiki.bambulab.com/en/software/bambu-studio/virtual-camera. Before you run this app, you should have the Bambu Studio software and OBS Studio installed and running.

You will need your Bambu printer's:

  • Local IP address
  • Password
  • Serial number

...to connect to its MQTT endpoint. All of this can be found on the printer's LCD screen. The password and IP address can be found in the WiFi settings, and the serial number can be found in the printer's information page.

First time setup

  1. Download the latest release from the Releases page.
  2. Extract the zip file to a folder on your computer.
  3. Open the appsettings.json file in a text editor.
  4. Replace all values with <brackets> in the BambuSettings and ObsSettings sections with the appropriate values.
    1. NOTE: The ObsSettings:PathToSDP value shouldn't need to be changed for Windows users. The app will attempt to automatically find the default .sdp location in your user directory.
  5. (Configure any other control settings as you prefer.)

Usage

  1. Open Bambu Studio, navigate to the Device tab, and start streaming. ("Go live")
  2. Open OBS Studio, and make sure the Websocket server is enabled.
  3. Run the BambuVideoStream app!

Credits

Much of this work is derived from this thread: https://community.home-assistant.io/t/bambu-lab-x1-x1c-mqtt/489510.

BIG props to the original creator of this project: https://github.com/SuperTroye/BambuVideoStream

About

Proof of concept app to stream MQTT from Bambu Lab 3D printer to OBS for video streaming.

Resources

License

Stars

Watchers

Forks

Languages

  • C# 100.0%