Status checking HF space seems to be working, but not here
#8
by
sgbaird
- opened
https://huggingface.co/spaces/AccelerationConsortium/A1_Mini
Unless I'm misunderstanding and A1_mini from above is just grabbing the most recently stored data point (i.e., from a while ago), but still updating the timestamp.
Oh, sorry. That there should be an equivalent functionality on this HF space, but it just returns N/A.
And that a relatively large log is produced (clicked refresh twice), no errors thrown, etc.
===== Application Startup at 2025-03-05 01:30:10 =====
2025-03-05 02:30:34,922 - bambu-analysis - INFO - BAMBU MQTT Configuration: HOST=mqtt.bambulab.com, PORT=8883, USERNAME=bblp, PWD=****
2025-03-05 02:30:34,923 - bambu-analysis - INFO - RPI MQTT Configuration: HOST=248cc294c37642359297f75b7b023374.s2.eu.hivemq.cloud, PORT=8883, USERNAME=sgbaird, PWD=***************
2025-03-05 02:30:35,133 - bambu-analysis - INFO - Starting Bambu A1 Mini Print Control application
2025-03-05 02:30:35,133 - bambu-analysis - INFO - Initializing Bambu MQTT client
/home/user/app/app.py:60: DeprecationWarning: Callback API version 1 is deprecated, update to latest version
bambu_client = mqtt.Client()
2025-03-05 02:30:35,265 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
2025-03-05 02:30:45,199 - bambu-analysis - ERROR - Failed to initialize Bambu MQTT: [Errno 101] Network is unreachable
2025-03-05 02:30:45,199 - bambu-analysis - INFO - Initializing RPI MQTT client
/home/user/app/app.py:68: DeprecationWarning: Callback API version 1 is deprecated, update to latest version
rpi_client = mqtt.Client()
2025-03-05 02:30:45,774 - bambu-analysis - INFO - Connected with result code 0
* Running on local URL: http://0.0.0.0:7860, with SSR โก (experimental, to disable set `ssr=False` in `launch()`)
2025-03-05 02:30:46,474 - httpx - INFO - HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK"
2025-03-05 02:30:46,935 - httpx - INFO - HTTP Request: HEAD http://0.0.0.0:7861/ "HTTP/1.1 200 OK"
2025-03-05 02:30:46,937 - httpx - INFO - HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
To create a public link, set `share=True` in `launch()`.
2025-03-05 02:31:33,177 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:31:34,153 - matplotlib.font_manager - INFO - generated new fontManager
2025-03-05 02:31:34,522 - bambu-analysis - INFO - API call: lambda with params: 200, 60, 60, 100, use_test_image: False, test_image_name:
2025-03-05 02:31:34,522 - bambu-analysis - INFO - API call: send_print_parameters with nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:31:34,522 - bambu-analysis - INFO - API call: get_data
2025-03-05 02:31:34,524 - bambu-analysis - INFO - No valid image data received, using default test image
2025-03-05 02:31:34,524 - bambu-analysis - INFO - API call: capture_frame with URL: , use_test_image: False
2025-03-05 02:31:34,524 - bambu-analysis - INFO - Sending parameters to 0309CA471800852: nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:31:34,525 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:31:34,525 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:31:34,525 - bambu-analysis - INFO - Parameters sent successfully
2025-03-05 02:31:34,526 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:31:34,526 - bambu-analysis - INFO - Using test image: /home/user/app/test_images/test1.png
2025-03-05 02:31:38,180 - bambu-analysis - INFO - Received message
2025-03-05 02:31:38,532 - bambu-analysis - INFO - Capturing image from URL: https://jwoo-picam-bucket.s3.us-east-1.amazonaws.com/2025-03-05-01:31:36.jpeg
2025-03-05 02:33:34,424 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:33:34,618 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:33:35,133 - bambu-analysis - INFO - API call: lambda with params: 200, 60, 60, 100, use_test_image: False, test_image_name:
2025-03-05 02:33:35,133 - bambu-analysis - INFO - API call: capture_frame with URL: , use_test_image: False
2025-03-05 02:33:35,134 - bambu-analysis - INFO - No valid image data received, using default test image
2025-03-05 02:33:35,134 - bambu-analysis - INFO - API call: send_print_parameters with nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:33:35,134 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:33:35,134 - bambu-analysis - INFO - API call: get_data
2025-03-05 02:33:35,134 - bambu-analysis - INFO - Sending parameters to 0309CA471800852: nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:33:35,135 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:33:35,135 - bambu-analysis - INFO - Parameters sent successfully
2025-03-05 02:33:35,135 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:33:35,135 - bambu-analysis - INFO - Using test image: /home/user/app/test_images/test3.png
2025-03-05 02:33:37,062 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:33:37,063 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:33:38,681 - bambu-analysis - INFO - Received message
2025-03-05 02:33:39,139 - bambu-analysis - INFO - Capturing image from URL: https://jwoo-picam-bucket.s3.us-east-1.amazonaws.com/2025-03-05-01:33:37.jpeg
2025-03-05 02:34:14,085 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:34:14,735 - bambu-analysis - INFO - API call: send_print_parameters with nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:34:14,735 - bambu-analysis - INFO - Sending parameters to 0309CA471800852: nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:34:14,735 - bambu-analysis - INFO - Parameters sent successfully
2025-03-05 02:34:14,736 - bambu-analysis - INFO - API call: lambda with params: 200, 60, 60, 100, use_test_image: False, test_image_name:
2025-03-05 02:34:14,736 - bambu-analysis - INFO - API call: get_data
2025-03-05 02:34:14,737 - bambu-analysis - INFO - No valid image data received, using default test image
2025-03-05 02:34:14,737 - bambu-analysis - INFO - API call: capture_frame with URL: , use_test_image: False
2025-03-05 02:34:14,738 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:14,739 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:14,739 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:34:14,739 - bambu-analysis - INFO - Using test image: /home/user/app/test_images/test6.png
2025-03-05 02:34:14,891 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:34:15,341 - bambu-analysis - INFO - API call: lambda with params: 200, 60, 60, 100, use_test_image: False, test_image_name:
2025-03-05 02:34:15,341 - bambu-analysis - INFO - API call: send_print_parameters with nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:34:15,342 - bambu-analysis - INFO - No valid image data received, using default test image
2025-03-05 02:34:15,342 - bambu-analysis - INFO - Sending parameters to 0309CA471800852: nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:34:15,343 - bambu-analysis - INFO - Parameters sent successfully
2025-03-05 02:34:15,344 - bambu-analysis - INFO - Using test image: /home/user/app/test_images/test1.png
2025-03-05 02:34:17,119 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:17,119 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:34:18,753 - bambu-analysis - INFO - Received message
2025-03-05 02:34:19,744 - bambu-analysis - INFO - Capturing image from URL: https://jwoo-picam-bucket.s3.us-east-1.amazonaws.com/2025-03-05-01:34:17.jpeg
2025-03-05 02:34:20,055 - bambu-analysis - INFO - API call: capture_frame with URL: , use_test_image: False
2025-03-05 02:34:20,056 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:23,234 - bambu-analysis - INFO - Received message
2025-03-05 02:34:24,059 - bambu-analysis - INFO - Capturing image from URL: https://jwoo-picam-bucket.s3.us-east-1.amazonaws.com/2025-03-05-01:34:22.jpeg
2025-03-05 02:34:24,758 - bambu-analysis - INFO - API call: get_data
2025-03-05 02:34:24,759 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:24,759 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:34:46,014 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:46,014 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:34:49,683 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:34:51,189 - httpx - INFO - HTTP Request: GET http://0.0.0.0:7861/?__theme=system "HTTP/1.1 200 OK"
2025-03-05 02:34:52,312 - bambu-analysis - INFO - API call: get_data
2025-03-05 02:34:52,312 - bambu-analysis - INFO - API call: lambda with params: 200, 60, 60, 100, use_test_image: False, test_image_name:
2025-03-05 02:34:52,312 - bambu-analysis - INFO - API call: capture_frame with URL: , use_test_image: False
2025-03-05 02:34:52,313 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:52,313 - bambu-analysis - INFO - API call: send_print_parameters with nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:34:52,313 - bambu-analysis - INFO - No valid image data received, using default test image
2025-03-05 02:34:52,313 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:52,314 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:34:52,314 - bambu-analysis - INFO - Sending parameters to 0309CA471800852: nozzle=200, bed=60, speed=60, fan=100
2025-03-05 02:34:52,314 - bambu-analysis - INFO - Using test image: /home/user/app/test_images/test2.png
2025-03-05 02:34:52,315 - bambu-analysis - INFO - Parameters sent successfully
2025-03-05 02:34:56,026 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:34:56,026 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:34:57,029 - bambu-analysis - INFO - Received message
2025-03-05 02:34:57,318 - bambu-analysis - INFO - Capturing image from URL: https://jwoo-picam-bucket.s3.us-east-1.amazonaws.com/2025-03-05-01:34:55.jpeg
2025-03-05 02:35:13,752 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:35:13,753 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
2025-03-05 02:35:27,211 - bambu-analysis - INFO - Subscribing to bambu_a1_mini/response/0309CA471800852
2025-03-05 02:35:27,212 - bambu-analysis - INFO - Publishing request to bambu_a1_mini/request/0309CA471800852
Hoping someone can take a look sooner than later. We're close, but also coming down to the wire.
Could someone update the secrets for Bambu MQTT please? I'm afraid I may be putting in the wrong values.

