Added references to source/inspiration
This commit is contained in:
parent
1cd6317bca
commit
ff9c508e3c
@ -23,6 +23,7 @@ def publish(client, msg):
|
|||||||
print(f"Failed to send message to topic device/{PRINTER_ID}/request")
|
print(f"Failed to send message to topic device/{PRINTER_ID}/request")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Inspired by https://github.com/Donkie/Spoolman/issues/217#issuecomment-2303022970
|
||||||
def on_message(client, userdata, msg):
|
def on_message(client, userdata, msg):
|
||||||
global LAST_AMS_CONFIG
|
global LAST_AMS_CONFIG
|
||||||
# TODO: Consume spool
|
# TODO: Consume spool
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
# Code from https://github.com/greghesp/ha-bambulab/issues/673#issuecomment-2455955428
|
||||||
|
|
||||||
# Prompt the user for their Bambu Lab username and password
|
# Prompt the user for their Bambu Lab username and password
|
||||||
bambuUsername = input("Enter your Bambu Lab username: ")
|
bambuUsername = input("Enter your Bambu Lab username: ")
|
||||||
bambuPassword = input("Enter your Bambu Lab password: ")
|
bambuPassword = input("Enter your Bambu Lab password: ")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user