1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[GH-ISSUE #979] [Bug Report] will not load camera view from x1c #680

Closed
opened 2026-05-07 00:12:43 +02:00 by BreizhHardware · 11 comments

Originally created by @maziggy on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/979

Originally assigned to: @maziggy on GitHub.

will not load camera view from x1c

Reporter Contact

Email: rob@bobcat.ca

System Information
{
  "generated_at": "2026-04-14T11:30:11.965809",
  "app": {
    "version": "0.2.2.2",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.12.74+deb13+1-amd64",
    "platform_version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08)",
    "architecture": "x86_64",
    "python_version": "3.13.5"
  },
  "environment": {
    "docker": false,
    "data_dir": "/root/bambuddy",
    "log_dir": "/root/bambuddy/logs",
    "timezone": ""
  },
  "database": {
    "archives_total": 2,
    "archives_completed": 2,
    "printers_total": 1,
    "filaments_total": 0,
    "projects_total": 0,
    "smart_plugs_total": 0
  },
  "printers": [
    {
      "index": 1,
      "model": "X1C",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "99.00.00.00",
      "wifi_signal": -51,
      "reachable": true,
      "ams_unit_count": 1,
      "ams_tray_count": 4,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": null,
      "nozzle_rack_count": 0
    }
  ],
  "settings": {
    "advanced_auth_enabled": "false",
    "smtp_auth_enabled": "true",
    "auth_enabled": "false",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "25.0",
    "currency": "USD",
    "energy_cost_per_kwh": "0.15",
    "energy_tracking_mode": "total",
    "disable_filament_warnings": "false",
    "check_updates": "true",
    "check_printer_firmware": "true",
    "include_beta_updates": "false",
    "notification_language": "en",
    "bed_cooled_threshold": "35.0",
    "ams_humidity_good": "40",
    "ams_humidity_fair": "60",
    "ams_temp_good": "28.0",
    "ams_temp_fair": "35.0",
    "ams_history_retention_days": "30",
    "queue_drying_enabled": "false",
    "queue_drying_block": "false",
    "ambient_drying_enabled": "false",
    "drying_presets": "",
    "per_printer_mapping_expanded": "false",
    "date_format": "system",
    "time_format": "system",
    "default_printer_id": "None",
    "ftp_retry_enabled": "true",
    "ftp_retry_count": "3",
    "ftp_retry_delay": "2",
    "ftp_timeout": "30",
    "mqtt_enabled": "false",
    "mqtt_broker": "",
    "mqtt_port": "1883",
    "mqtt_topic_prefix": "bambuddy",
    "mqtt_use_tls": "false",
    "ha_enabled": "false",
    "library_archive_mode": "ask",
    "library_disk_warning_gb": "5.0",
    "camera_view_mode": "window",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false",
    "user_notifications_enabled": "true",
    "spoolman_enabled": "true",
    "spoolman_sync_mode": "auto",
    "spoolman_disable_weight_sync": "true",
    "spoolman_report_partial_usage": "true",
    "debug_logging_enabled": "false",
    "debug_logging_enabled_at": ""
  },
  "virtual_printers": [],
  "integrations": {
    "notification_providers": [],
    "spoolman": {
      "enabled": true,
      "reachable": true
    },
    "mqtt_relay": {
      "enabled": false,
      "connected": false,
      "broker": "",
      "port": 0,
      "topic_prefix": "bambuddy"
    },
    "homeassistant": {
      "enabled": false
    }
  },
  "database_health": {
    "journal_mode": "wal",
    "quick_check": "ok",
    "db_size_bytes": 446464,
    "wal_size_bytes": 4124152
  },
  "dependencies": {
    "fastapi": "0.135.3",
    "uvicorn": "0.44.0",
    "pydantic": "2.13.0",
    "sqlalchemy": "2.0.49",
    "paho-mqtt": "2.1.0",
    "psutil": "7.2.2",
    "httpx": "0.28.1",
    "aiofiles": "25.1.0",
    "cryptography": "46.0.7",
    "opencv-python-headless": "4.13.0.92",
    "numpy": "2.4.4"
  },
  "log_file": {
    "size_bytes": 3664902,
    "size_formatted": "3.5 MB"
  },
  "network": {
    "interface_count": 1,
    "interfaces": [
      {
        "name": "eno1",
        "subnet": "x.x.1.0/24"
      }
    ]
  },
  "websockets": {
    "active_connections": 1
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Apr 14, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/979 Originally assigned to: @maziggy on GitHub. will not load camera view from x1c <details> <summary>Reporter Contact</summary> Email: rob@bobcat.ca </details> <details> <summary>System Information</summary> ```json { "generated_at": "2026-04-14T11:30:11.965809", "app": { "version": "0.2.2.2", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.12.74+deb13+1-amd64", "platform_version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08)", "architecture": "x86_64", "python_version": "3.13.5" }, "environment": { "docker": false, "data_dir": "/root/bambuddy", "log_dir": "/root/bambuddy/logs", "timezone": "" }, "database": { "archives_total": 2, "archives_completed": 2, "printers_total": 1, "filaments_total": 0, "projects_total": 0, "smart_plugs_total": 0 }, "printers": [ { "index": 1, "model": "X1C", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "99.00.00.00", "wifi_signal": -51, "reachable": true, "ams_unit_count": 1, "ams_tray_count": 4, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": null, "nozzle_rack_count": 0 } ], "settings": { "advanced_auth_enabled": "false", "smtp_auth_enabled": "true", "auth_enabled": "false", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "25.0", "currency": "USD", "energy_cost_per_kwh": "0.15", "energy_tracking_mode": "total", "disable_filament_warnings": "false", "check_updates": "true", "check_printer_firmware": "true", "include_beta_updates": "false", "notification_language": "en", "bed_cooled_threshold": "35.0", "ams_humidity_good": "40", "ams_humidity_fair": "60", "ams_temp_good": "28.0", "ams_temp_fair": "35.0", "ams_history_retention_days": "30", "queue_drying_enabled": "false", "queue_drying_block": "false", "ambient_drying_enabled": "false", "drying_presets": "", "per_printer_mapping_expanded": "false", "date_format": "system", "time_format": "system", "default_printer_id": "None", "ftp_retry_enabled": "true", "ftp_retry_count": "3", "ftp_retry_delay": "2", "ftp_timeout": "30", "mqtt_enabled": "false", "mqtt_broker": "", "mqtt_port": "1883", "mqtt_topic_prefix": "bambuddy", "mqtt_use_tls": "false", "ha_enabled": "false", "library_archive_mode": "ask", "library_disk_warning_gb": "5.0", "camera_view_mode": "window", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false", "user_notifications_enabled": "true", "spoolman_enabled": "true", "spoolman_sync_mode": "auto", "spoolman_disable_weight_sync": "true", "spoolman_report_partial_usage": "true", "debug_logging_enabled": "false", "debug_logging_enabled_at": "" }, "virtual_printers": [], "integrations": { "notification_providers": [], "spoolman": { "enabled": true, "reachable": true }, "mqtt_relay": { "enabled": false, "connected": false, "broker": "", "port": 0, "topic_prefix": "bambuddy" }, "homeassistant": { "enabled": false } }, "database_health": { "journal_mode": "wal", "quick_check": "ok", "db_size_bytes": 446464, "wal_size_bytes": 4124152 }, "dependencies": { "fastapi": "0.135.3", "uvicorn": "0.44.0", "pydantic": "2.13.0", "sqlalchemy": "2.0.49", "paho-mqtt": "2.1.0", "psutil": "7.2.2", "httpx": "0.28.1", "aiofiles": "25.1.0", "cryptography": "46.0.7", "opencv-python-headless": "4.13.0.92", "numpy": "2.4.4" }, "log_file": { "size_bytes": 3664902, "size_formatted": "3.5 MB" }, "network": { "interface_count": 1, "interfaces": [ { "name": "eno1", "subnet": "x.x.1.0/24" } ] }, "websockets": { "active_connections": 1 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/2e3a3b1cd5904f348fdcbc62938992f4.log) --- *Submitted via BamBuddy Bug Report*
BreizhHardware 2026-05-07 00:12:43 +02:00
Author
Owner

@broncosis commented on GitHub (Apr 14, 2026):

Doing my own troubleshooting this appears to be a lack of FFmpeg this should be added to the documentation when installing prerequisites

this would be my suggested edit

"sudo apt install python3 python3-venv python3-pip git ffmpeg"

or at least a note to install FFmpeg however the installer wants

<!-- gh-comment-id:4246306061 --> @broncosis commented on GitHub (Apr 14, 2026): Doing my own troubleshooting this appears to be a lack of FFmpeg this should be added to the documentation when installing prerequisites this would be my suggested edit "sudo apt install python3 python3-venv python3-pip git ffmpeg" or at least a note to install FFmpeg however the installer wants
Author
Owner

@lightmaster commented on GitHub (Apr 14, 2026):

I have ffmpeg already installed, and it's not loading the camera for me on the dev branch, but is loading the camera on the main branch. I think my issue might be separate from this one though since it is working on 0.2.2.2 but not on the current dev as of this post. I did notice that on the dev branch, the reconnect timer counts super fast, with a 30 second timer taking maybe 10 seconds.

I already have ffmpeg and python 3.13.5 installed.

support package from dev branch where camera doesn't work:
DEV - bambuddy-support-20260414-180239.zip

support package from main branch where camera does work:
MAIN - bambuddy-support-20260414-180008.zip

<!-- gh-comment-id:4247492875 --> @lightmaster commented on GitHub (Apr 14, 2026): I have ffmpeg already installed, and it's not loading the camera for me on the dev branch, but is loading the camera on the main branch. I think my issue might be separate from this one though since it is working on 0.2.2.2 but not on the current dev as of this post. I did notice that on the dev branch, the reconnect timer counts super fast, with a 30 second timer taking maybe 10 seconds. I already have ffmpeg and python 3.13.5 installed. support package from dev branch where camera doesn't work: [DEV - bambuddy-support-20260414-180239.zip](https://github.com/user-attachments/files/26729287/DEV.-.bambuddy-support-20260414-180239.zip) support package from main branch where camera does work: [MAIN - bambuddy-support-20260414-180008.zip](https://github.com/user-attachments/files/26729290/MAIN.-.bambuddy-support-20260414-180008.zip)
Author
Owner

@VREmma commented on GitHub (Apr 14, 2026):

@lightmaster on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded...

In my browser, I see this on the calls of the new window, but it works fine with embedded.
detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token"

<!-- gh-comment-id:4247901916 --> @VREmma commented on GitHub (Apr 14, 2026): @lightmaster on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded... In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token"
Author
Owner

@lightmaster commented on GitHub (Apr 15, 2026):

@lightmaster on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded...

In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token"

New window. Actually forgot it can do embedded, I always just pop it open on a 2nd monitor when I'm printing something that I'm worried might fail.

<!-- gh-comment-id:4248549656 --> @lightmaster commented on GitHub (Apr 15, 2026): > [@lightmaster](https://github.com/lightmaster) on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded... > > In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token" New window. Actually forgot it can do embedded, I always just pop it open on a 2nd monitor when I'm printing something that I'm worried might fail.
Author
Owner

@VREmma commented on GitHub (Apr 15, 2026):

@lightmaster on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded...
In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token"

New window. Actually forgot it can do embedded, I always just pop it open on a 2nd monitor when I'm printing something that I'm worried might fail.

Try it embedded and see if it works like that... Im wondering if its the problem I am seeing.

<!-- gh-comment-id:4248556209 --> @VREmma commented on GitHub (Apr 15, 2026): > > [@lightmaster](https://github.com/lightmaster) on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded... > > In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token" > > New window. Actually forgot it can do embedded, I always just pop it open on a 2nd monitor when I'm printing something that I'm worried might fail. Try it embedded and see if it works like that... Im wondering if its the problem I am seeing.
Author
Owner

@lightmaster commented on GitHub (Apr 15, 2026):

Try it embedded and see if it works like that... Im wondering if its the problem I am seeing.

It would seem so. When opened in a new window, reconnect timer is going super faster and it never opens the stream. When opened in Overlay mode, it seems to work perfectly.

<!-- gh-comment-id:4248932932 --> @lightmaster commented on GitHub (Apr 15, 2026): > Try it embedded and see if it works like that... Im wondering if its the problem I am seeing. It would seem so. When opened in a new window, reconnect timer is going super faster and it never opens the stream. When opened in Overlay mode, it seems to work perfectly.
Author
Owner

@maziggy commented on GitHub (Apr 15, 2026):

Please update to latest beta version.

<!-- gh-comment-id:4249515440 --> @maziggy commented on GitHub (Apr 15, 2026): Please update to latest beta version.
Author
Owner

@maziggy commented on GitHub (Apr 15, 2026):

Doing my own troubleshooting this appears to be a lack of FFmpeg this should be added to the documentation when installing prerequisites

this would be my suggested edit

"sudo apt install python3 python3-venv python3-pip git ffmpeg"

or at least a note to install FFmpeg however the installer wants

This is documented in multiple places in the docs. There are also some checks which produce error logs and a warning in settigs. So.......

<!-- gh-comment-id:4249614995 --> @maziggy commented on GitHub (Apr 15, 2026): > Doing my own troubleshooting this appears to be a lack of FFmpeg this should be added to the documentation when installing prerequisites > > this would be my suggested edit > > "sudo apt install python3 python3-venv python3-pip git ffmpeg" > > or at least a note to install FFmpeg however the installer wants This is documented in multiple places in the docs. There are also some checks which produce error logs and a warning in settigs. So.......
Author
Owner

@maziggy commented on GitHub (Apr 15, 2026):

@lightmaster on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded...

In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token"

Available/Fixed in branch dev and available with the next release or daily build.

This should fix also @lightmaster's issue.

<!-- gh-comment-id:4249689258 --> @maziggy commented on GitHub (Apr 15, 2026): > [@lightmaster](https://github.com/lightmaster) on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded... > > In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token" Available/Fixed in branch dev and available with the next release or daily build. This should fix also @lightmaster's issue.
Author
Owner

@lightmaster commented on GitHub (Apr 15, 2026):

@lightmaster on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded...
In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token"

Available/Fixed in branch dev and available with the next release or daily build.

This should fix also @lightmaster's issue.

Yes, the latest dev pull does fix the camera on a new window. Thanks

<!-- gh-comment-id:4252342329 --> @lightmaster commented on GitHub (Apr 15, 2026): > > [@lightmaster](https://github.com/lightmaster) on dev branch, are you doing new window or embedded overlay for the camera on the General tab of Settings? I know mine started doing this on New Window... but works embedded... > > In my browser, I see this on the calls of the new window, but it works fine with embedded. detail "Valid camera stream token required. Obtain one from POST /api/v1/printers/camera/stream-token" > > Available/Fixed in branch dev and available with the next release or daily build. > > This should fix also [@lightmaster](https://github.com/lightmaster)'s issue. Yes, the latest dev pull does fix the camera on a new window. Thanks
Author
Owner

@maziggy commented on GitHub (Apr 15, 2026):


If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:4252376530 --> @maziggy commented on GitHub (Apr 15, 2026): ----- If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/maziggy/bambuddy) — it helps others discover the project!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#680
No description provided.