From ff9c508e3cf9c5959afe35146274df665e8cdba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Bedn=C3=A1rik?= Date: Thu, 12 Dec 2024 23:17:32 +0100 Subject: [PATCH] Added references to source/inspiration --- mqtt_bambulab.py | 1 + scripts/init_bambulab.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mqtt_bambulab.py b/mqtt_bambulab.py index 0c2a97a..3975b1f 100644 --- a/mqtt_bambulab.py +++ b/mqtt_bambulab.py @@ -23,6 +23,7 @@ def publish(client, msg): print(f"Failed to send message to topic device/{PRINTER_ID}/request") return False +# Inspired by https://github.com/Donkie/Spoolman/issues/217#issuecomment-2303022970 def on_message(client, userdata, msg): global LAST_AMS_CONFIG # TODO: Consume spool diff --git a/scripts/init_bambulab.py b/scripts/init_bambulab.py index dae517e..17e6844 100644 --- a/scripts/init_bambulab.py +++ b/scripts/init_bambulab.py @@ -1,6 +1,8 @@ import requests import json +# Code from https://github.com/greghesp/ha-bambulab/issues/673#issuecomment-2455955428 + # Prompt the user for their Bambu Lab username and password bambuUsername = input("Enter your Bambu Lab username: ") bambuPassword = input("Enter your Bambu Lab password: ")