This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import json | |
import re | |
import paho.mqtt.client as mqtt | |
import paho.mqtt.publish as publish | |
# Regex to match the hidden input on the initial log in page |