Skip to content

Instantly share code, notes, and snippets.

View pleasantone's full-sized avatar

Paul Traina pleasantone

View GitHub Profile
@Benny-Git
Benny-Git / bambu-notify.py
Created January 24, 2025 08:48
Advertise a Bambu printer to Orca Slicer / Bambu Studio
# Derived from this: https://gist.github.com/Alex-Schaefer/72a9e2491a42da2ef99fb87601955cc3
# This script mimics my Bambu printer's behavior and keeps advertising itself via SSDP every 5s.
# You could keep this running in the background, so you don't have to remember starting it whenever you start Orca Slicer or Bambu Studio.
import sys
import socket
import time
from datetime import datetime
TARGET_IP = "127.0.0.1" # Change this to the IP of the computer with the printer software. If you're running this on the same computer, leave it as is.
@Alex-Schaefer
Alex-Schaefer / bambu-ssdp-discovery.py
Last active May 3, 2026 12:49
Python implementation to send a fake SSDP discovery message to Bambu Studio or Orca Slicer
# Derived from this: https://github.com/gashton/bambustudio_tools/blob/master/bambudiscovery.sh
# Python implementation without need for linux
# Send the IP address of your BambuLab printer to port 2021/udp, which BambuStudio is listens on.
# Ensure your PC has firewall pot 2021/udp open. This is required as the proper response would usually go to the ephemeral source port that the M-SEARCH ssdp:discover message.
# But we are are blindly sending a response directly to the BambuStudio listening service port (2021/udp).
# Temporary solution to BambuStudio not allowing you to manually specify the Printer IP.
# Usage:
@jamesbrobb
jamesbrobb / multiform.py
Last active July 4, 2023 18:53 — forked from michelts/gist:1029336
django multiform mixin and view that allows the submission of a) All forms b) Grouped forms c) An individual form
class MultiFormMixin(ContextMixin):
form_classes = {}
prefixes = {}
success_urls = {}
grouped_forms = {}
initial = {}
prefix = None
success_url = None