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

[GH-ISSUE #1086] [Bug Report] The use of Obico and Bambuddy does not work #774

Closed
opened 2026-05-07 00:13:40 +02:00 by BreizhHardware · 7 comments

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

Originally assigned to: @maziggy on GitHub.

The use of Obico and Bambuddy does not work

Screenshot

Bug Report Screenshot

Reporter Contact

Email: Tom-Klaffehn@web.de

System Information
{
  "generated_at": "2026-04-22T16:41:51.762449",
  "app": {
    "version": "0.2.3.2",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.12.54-Unraid",
    "platform_version": "#1 SMP PREEMPT_DYNAMIC Tue Oct 21 15:58:46 PDT 2025",
    "architecture": "x86_64",
    "python_version": "3.13.13"
  },
  "environment": {
    "docker": true,
    "data_dir": "/app/data",
    "log_dir": "/app/logs",
    "timezone": "Europ/Berlin"
  },
  "database": {
    "archives_total": 85,
    "archives_completed": 73,
    "printers_total": 1,
    "filaments_total": 0,
    "projects_total": 3,
    "smart_plugs_total": 2
  },
  "printers": [
    {
      "index": 1,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "RUNNING",
      "firmware_version": "01.02.00.00",
      "wifi_signal": -50,
      "reachable": true,
      "ams_unit_count": 2,
      "ams_tray_count": 4,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 1,
      "developer_mode": true,
      "nozzle_rack_count": 1
    }
  ],
  "settings": {
    "auth_enabled": "true",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "12.0",
    "currency": "EUR",
    "energy_cost_per_kwh": "0.4",
    "energy_tracking_mode": "total",
    "check_updates": "true",
    "check_printer_firmware": "true",
    "include_beta_updates": "false",
    "notification_language": "de",
    "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",
    "per_printer_mapping_expanded": "false",
    "date_format": "eu",
    "time_format": "24h",
    "default_printer_id": "1",
    "ftp_retry_enabled": "true",
    "ftp_retry_count": "3",
    "ftp_retry_delay": "2",
    "ftp_timeout": "30",
    "mqtt_enabled": "false",
    "mqtt_broker": "",
    "mqtt_port": "1883",
    "mqtt_username": "",
    "mqtt_password": "",
    "mqtt_topic_prefix": "bambuddy",
    "mqtt_use_tls": "false",
    "external_url": "[REDACTED]",
    "ha_enabled": "true",
    "ha_url": "[REDACTED]",
    "ha_token": "[REDACTED]",
    "library_archive_mode": "ask",
    "library_disk_warning_gb": "5.0",
    "camera_view_mode": "embedded",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false",
    "prometheus_token": "",
    "debug_logging_enabled": "false",
    "debug_logging_enabled_at": "",
    "language": "de",
    "queue_drying_enabled": "false",
    "queue_drying_block": "false",
    "ambient_drying_enabled": "true",
    "drying_presets": "",
    "advanced_auth_enabled": "false",
    "smtp_auth_enabled": "true",
    "disable_filament_warnings": "true",
    "user_notifications_enabled": "true",
    "spoolman_enabled": "false",
    "spoolman_url": "[REDACTED]",
    "spoolman_sync_mode": "auto",
    "spoolman_disable_weight_sync": "false",
    "spoolman_report_partial_usage": "true",
    "dark_accent": "green",
    "dark_style": "vibrant",
    "obico_enabled": "true",
    "obico_ml_url": "[REDACTED]",
    "obico_sensitivity": "medium",
    "obico_action": "notify",
    "obico_poll_interval": "10",
    "obico_enabled_printers": "",
    "prefer_lowest_filament": "false",
    "default_bed_levelling": "true",
    "default_flow_cali": "false",
    "default_vibration_cali": "true",
    "default_layer_inspect": "false",
    "default_timelapse": "false",
    "stagger_group_size": "2",
    "stagger_interval_minutes": "5",
    "require_plate_clear": "false"
  },
  "docker": {
    "container_memory_limit_bytes": null,
    "container_memory_limit_formatted": null,
    "network_mode_hint": "host"
  },
  "virtual_printers": [
    {
      "index": 1,
      "enabled": false,
      "mode": "review",
      "model": "N7",
      "model_name": "P2S",
      "has_target_printer": true,
      "has_bind_ip": true,
      "running": false,
      "pending_files": 0
    }
  ],
  "integrations": {
    "notification_providers": [
      {
        "type": "homeassistant",
        "enabled": true,
        "has_last_error": true
      }
    ],
    "spoolman": {
      "enabled": false,
      "reachable": false
    },
    "mqtt_relay": {
      "enabled": false,
      "connected": false,
      "broker": "",
      "port": 0,
      "topic_prefix": "bambuddy"
    },
    "spoolbuddy": {
      "device_count": 0,
      "online_count": 0,
      "devices": []
    },
    "homeassistant": {
      "enabled": true
    }
  },
  "database_health": {
    "backend": "sqlite",
    "journal_mode": "wal",
    "quick_check": "ok",
    "db_size_bytes": 1957888,
    "wal_size_bytes": 4140632
  },
  "dependencies": {
    "fastapi": "0.136.0",
    "uvicorn": "0.45.0",
    "pydantic": "2.13.3",
    "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": 3500518,
    "size_formatted": "3.3 MB"
  },
  "network": {
    "interface_count": 3,
    "interfaces": [
      {
        "name": "br0",
        "subnet": "x.x.178.0/24"
      },
      {
        "name": "wg0",
        "subnet": "x.x.2.2/32"
      },
      {
        "name": "shim-br0",
        "subnet": "x.x.178.0/24"
      }
    ]
  },
  "websockets": {
    "active_connections": 1
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Apr 22, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1086 Originally assigned to: @maziggy on GitHub. The use of Obico and Bambuddy does not work ### Screenshot ![Bug Report Screenshot](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/screenshots/6c8856be9f0b42e1b88f8ec41258dc6c.png) <details> <summary>Reporter Contact</summary> Email: Tom-Klaffehn@web.de </details> <details> <summary>System Information</summary> ```json { "generated_at": "2026-04-22T16:41:51.762449", "app": { "version": "0.2.3.2", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.12.54-Unraid", "platform_version": "#1 SMP PREEMPT_DYNAMIC Tue Oct 21 15:58:46 PDT 2025", "architecture": "x86_64", "python_version": "3.13.13" }, "environment": { "docker": true, "data_dir": "/app/data", "log_dir": "/app/logs", "timezone": "Europ/Berlin" }, "database": { "archives_total": 85, "archives_completed": 73, "printers_total": 1, "filaments_total": 0, "projects_total": 3, "smart_plugs_total": 2 }, "printers": [ { "index": 1, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "RUNNING", "firmware_version": "01.02.00.00", "wifi_signal": -50, "reachable": true, "ams_unit_count": 2, "ams_tray_count": 4, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 1, "developer_mode": true, "nozzle_rack_count": 1 } ], "settings": { "auth_enabled": "true", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "12.0", "currency": "EUR", "energy_cost_per_kwh": "0.4", "energy_tracking_mode": "total", "check_updates": "true", "check_printer_firmware": "true", "include_beta_updates": "false", "notification_language": "de", "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", "per_printer_mapping_expanded": "false", "date_format": "eu", "time_format": "24h", "default_printer_id": "1", "ftp_retry_enabled": "true", "ftp_retry_count": "3", "ftp_retry_delay": "2", "ftp_timeout": "30", "mqtt_enabled": "false", "mqtt_broker": "", "mqtt_port": "1883", "mqtt_username": "", "mqtt_password": "", "mqtt_topic_prefix": "bambuddy", "mqtt_use_tls": "false", "external_url": "[REDACTED]", "ha_enabled": "true", "ha_url": "[REDACTED]", "ha_token": "[REDACTED]", "library_archive_mode": "ask", "library_disk_warning_gb": "5.0", "camera_view_mode": "embedded", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false", "prometheus_token": "", "debug_logging_enabled": "false", "debug_logging_enabled_at": "", "language": "de", "queue_drying_enabled": "false", "queue_drying_block": "false", "ambient_drying_enabled": "true", "drying_presets": "", "advanced_auth_enabled": "false", "smtp_auth_enabled": "true", "disable_filament_warnings": "true", "user_notifications_enabled": "true", "spoolman_enabled": "false", "spoolman_url": "[REDACTED]", "spoolman_sync_mode": "auto", "spoolman_disable_weight_sync": "false", "spoolman_report_partial_usage": "true", "dark_accent": "green", "dark_style": "vibrant", "obico_enabled": "true", "obico_ml_url": "[REDACTED]", "obico_sensitivity": "medium", "obico_action": "notify", "obico_poll_interval": "10", "obico_enabled_printers": "", "prefer_lowest_filament": "false", "default_bed_levelling": "true", "default_flow_cali": "false", "default_vibration_cali": "true", "default_layer_inspect": "false", "default_timelapse": "false", "stagger_group_size": "2", "stagger_interval_minutes": "5", "require_plate_clear": "false" }, "docker": { "container_memory_limit_bytes": null, "container_memory_limit_formatted": null, "network_mode_hint": "host" }, "virtual_printers": [ { "index": 1, "enabled": false, "mode": "review", "model": "N7", "model_name": "P2S", "has_target_printer": true, "has_bind_ip": true, "running": false, "pending_files": 0 } ], "integrations": { "notification_providers": [ { "type": "homeassistant", "enabled": true, "has_last_error": true } ], "spoolman": { "enabled": false, "reachable": false }, "mqtt_relay": { "enabled": false, "connected": false, "broker": "", "port": 0, "topic_prefix": "bambuddy" }, "spoolbuddy": { "device_count": 0, "online_count": 0, "devices": [] }, "homeassistant": { "enabled": true } }, "database_health": { "backend": "sqlite", "journal_mode": "wal", "quick_check": "ok", "db_size_bytes": 1957888, "wal_size_bytes": 4140632 }, "dependencies": { "fastapi": "0.136.0", "uvicorn": "0.45.0", "pydantic": "2.13.3", "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": 3500518, "size_formatted": "3.3 MB" }, "network": { "interface_count": 3, "interfaces": [ { "name": "br0", "subnet": "x.x.178.0/24" }, { "name": "wg0", "subnet": "x.x.2.2/32" }, { "name": "shim-br0", "subnet": "x.x.178.0/24" } ] }, "websockets": { "active_connections": 1 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/31366004cb9548b2b91f6b5cdb09040d.log) --- *Submitted via BamBuddy Bug Report*
BreizhHardware 2026-05-07 00:13:40 +02:00
Author
Owner

@IROKILLER commented on GitHub (Apr 22, 2026):

I contacted Obico to ask why it shouldn't work, and they told me to contact you.

I have Obico running as a Docker container on the Unraid server and followed the installation instructions on the Obico website.

<!-- gh-comment-id:4298133037 --> @IROKILLER commented on GitHub (Apr 22, 2026): I contacted Obico to ask why it shouldn't work, and they told me to contact you. I have Obico running as a Docker container on the Unraid server and followed the installation instructions on the Obico website.
Author
Owner

@mrnoisytiger commented on GitHub (Apr 22, 2026):

Is your obico ML instance actually accessible at the port 5334, from the Bambuddy instance? Looks like it's not actually hitting the obico ML instance -- not the obico web instance. Those are typically two different things.

Did you also whitelist the Bambuddy image path from any authentication?

<!-- gh-comment-id:4298153442 --> @mrnoisytiger commented on GitHub (Apr 22, 2026): Is your obico ML instance actually accessible at the port 5334, from the Bambuddy instance? Looks like it's not actually hitting the obico **ML** instance -- not the obico **web** instance. Those are typically two different things. Did you also whitelist the Bambuddy image path from any authentication?
Author
Owner

@IROKILLER commented on GitHub (Apr 22, 2026):

Oh, I didn't know that the web port isn't the same as the mail server port; I actually hadn't read that. What do you mean by whitelist?

<!-- gh-comment-id:4298209127 --> @IROKILLER commented on GitHub (Apr 22, 2026): Oh, I didn't know that the web port isn't the same as the mail server port; I actually hadn't read that. What do you mean by whitelist?
Author
Owner

@mrnoisytiger commented on GitHub (Apr 22, 2026):

Machine Learning server BTW, not mail. IIRC the default container name for it is obico-ml and the port is typically 3333.

Your Obico ML container needs to be able to access the image data from Bambuddy from Bambuddy's external URL. github.com/maziggy/bambuddy@a2c7fd4542

In short, your Obico ML needs to be able to access the image from http://example.com/api/v1/obico/cached-frame/{random string}. If your authentication system (which hopefully you have) blocks this URL without logging in, then Obico ML can't get the image for obvious reasons. Therefore, you need to either (i) allow this URL path publicly or (ii) "whitelist" your Obico ML instance from authentication, likely by IP or similar.

I prefer (i) since it's just easier and security concerns aren't too bad since it's just a picture of the inside of your printer and the random string rotates with every image.


If your Bambuddy instance does not go through a reverse proxy which applies authentication, then you can ignore that extra step.

<!-- gh-comment-id:4298256368 --> @mrnoisytiger commented on GitHub (Apr 22, 2026): Machine Learning server BTW, not mail. IIRC the default container name for it is `obico-ml` and the port is typically 3333. Your Obico ML container needs to be able to access the image data from Bambuddy from Bambuddy's external URL. https://github.com/maziggy/bambuddy/commit/a2c7fd454250a714ed1932f35805892a2c9b598b In short, your Obico ML needs to be able to access the image from http://example.com/api/v1/obico/cached-frame/{random string}. If your authentication system (which hopefully you have) blocks this URL without logging in, then Obico ML can't get the image for obvious reasons. Therefore, you need to either (i) allow this URL path publicly or (ii) "whitelist" your Obico ML instance from authentication, likely by IP or similar. I prefer (i) since it's just easier and security concerns aren't too bad since it's just a picture of the inside of your printer and the random string rotates with every image. --- If your Bambuddy instance does **not** go through a reverse proxy which applies authentication, then you can ignore that extra step.
Author
Owner

@IROKILLER commented on GitHub (Apr 22, 2026):

I can see the images even without authentication. I just installed the Obico server with the web interface. I think that's why I can't access the ML instance via that port.

<!-- gh-comment-id:4298516672 --> @IROKILLER commented on GitHub (Apr 22, 2026): I can see the images even without authentication. I just installed the Obico server with the web interface. I think that's why I can't access the ML instance via that port.
Author
Owner

@mrnoisytiger commented on GitHub (Apr 22, 2026):

I can see the images even without authentication. I just installed the Obico server with the web interface. I think that's why I can't access the ML instance via that port.

You should check your docker config and determine what port your Obico ML instance is running on. Then, change the Bambuddy config to the appropriate port.

<!-- gh-comment-id:4298692750 --> @mrnoisytiger commented on GitHub (Apr 22, 2026): > I can see the images even without authentication. I just installed the Obico server with the web interface. I think that's why I can't access the ML instance via that port. You should check your docker config and determine what port your Obico ML instance is running on. Then, change the Bambuddy config to the appropriate port.
Author
Owner

@IROKILLER commented on GitHub (Apr 22, 2026):

Quick update:

It's working now. You need to add an additional port to the Unraid template (which you can download from the Community App Store) that points to 3333 so that the API can be accessed.

<!-- gh-comment-id:4298698635 --> @IROKILLER commented on GitHub (Apr 22, 2026): Quick update: It's working now. You need to add an additional port to the Unraid template (which you can download from the Community App Store) that points to 3333 so that the API can be accessed.
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#774
No description provided.