Bladeren bron

Updated CHANGELOG

maziggy 4 maanden geleden
bovenliggende
commit
ea737c4719
2 gewijzigde bestanden met toevoegingen van 7 en 16 verwijderingen
  1. 7 7
      CHANGELOG.md
  2. 0 9
      backend/app/api/routes/settings.py

+ 7 - 7
CHANGELOG.md

@@ -5,13 +5,6 @@ All notable changes to Bambuddy will be documented in this file.
 ## [0.1.6] - Not released
 ## [0.1.6] - Not released
 
 
 ### New Features
 ### New Features
-- **HMS Error Notifications** - Get notified when printer errors occur (Issue #84):
-  - Automatic notifications for HMS errors (AMS issues, nozzle problems, etc.)
-  - Human-readable error messages (853 error codes translated)
-  - Friendly error type names (Print/Task, AMS/Filament, Nozzle/Extruder, Motion Controller, Chamber)
-  - Deduplication prevents spam from repeated error messages
-  - Publishes to MQTT relay for home automation integrations
-  - New "Printer Error" toggle in notification provider settings
 - **Plate Not Empty Notification** - Dedicated notification category for build plate detection:
 - **Plate Not Empty Notification** - Dedicated notification category for build plate detection:
   - New toggle in notification provider settings (enabled by default)
   - New toggle in notification provider settings (enabled by default)
   - Sends immediately (bypasses quiet hours and digest mode)
   - Sends immediately (bypasses quiet hours and digest mode)
@@ -69,6 +62,13 @@ All notable changes to Bambuddy will be documented in this file.
   - Tri-state toggles: unchanged / on / off for each setting
   - Tri-state toggles: unchanged / on / off for each setting
 
 
 ### Fixes
 ### Fixes
+- **HMS Error Notifications** - Get notified when printer errors occur (Issue #84):
+  - Automatic notifications for HMS errors (AMS issues, nozzle problems, etc.)
+  - Human-readable error messages (853 error codes translated)
+  - Friendly error type names (Print/Task, AMS/Filament, Nozzle/Extruder, Motion Controller, Chamber)
+  - Deduplication prevents spam from repeated error messages
+  - Publishes to MQTT relay for home automation integrations
+  - New "Printer Error" toggle in notification provider settings
 - **Plate Calibration Persistence** - Fixed plate detection reference images not persisting after restart in Docker deployments
 - **Plate Calibration Persistence** - Fixed plate detection reference images not persisting after restart in Docker deployments
 - **Telegram Notification Parsing** - Fixed Telegram markdown parsing errors when messages contain underscores (e.g., error codes)
 - **Telegram Notification Parsing** - Fixed Telegram markdown parsing errors when messages contain underscores (e.g., error codes)
 - **Settings API PATCH Method** - Added PATCH support to `/api/settings` for Home Assistant rest_command compatibility (Issue #152)
 - **Settings API PATCH Method** - Added PATCH support to `/api/settings` for Home Assistant rest_command compatibility (Issue #152)

+ 0 - 9
backend/app/api/routes/settings.py

@@ -1,6 +1,5 @@
 import io
 import io
 import json
 import json
-import logging
 import zipfile
 import zipfile
 from datetime import datetime
 from datetime import datetime
 from pathlib import Path
 from pathlib import Path
@@ -31,8 +30,6 @@ from backend.app.schemas.settings import AppSettings, AppSettingsUpdate
 from backend.app.services.printer_manager import printer_manager
 from backend.app.services.printer_manager import printer_manager
 from backend.app.services.spoolman import init_spoolman_client
 from backend.app.services.spoolman import init_spoolman_client
 
 
-logger = logging.getLogger(__name__)
-
 router = APIRouter(prefix="/settings", tags=["settings"])
 router = APIRouter(prefix="/settings", tags=["settings"])
 
 
 # Default settings
 # Default settings
@@ -929,7 +926,6 @@ async def import_backup(
                             filename = zip_path.replace("plate_calibration/", "", 1)
                             filename = zip_path.replace("plate_calibration/", "", 1)
                             if filename:  # Skip directory entries
                             if filename:  # Skip directory entries
                                 plate_cal_files[filename] = zf.read(zip_path)
                                 plate_cal_files[filename] = zf.read(zip_path)
-                                logger.info(f"Stored plate calibration file for later: {filename}")
                             continue
                             continue
                         target_path = base_dir / zip_path
                         target_path = base_dir / zip_path
                         target_path.parent.mkdir(parents=True, exist_ok=True)
                         target_path.parent.mkdir(parents=True, exist_ok=True)
@@ -1078,7 +1074,6 @@ async def import_backup(
         await db.flush()
         await db.flush()
 
 
     # Restore plate calibration files (remap printer IDs based on serial numbers)
     # Restore plate calibration files (remap printer IDs based on serial numbers)
-    logger.info(f"Plate calibration files to restore: {len(plate_cal_files)} files: {list(plate_cal_files.keys())}")
     if plate_cal_files:
     if plate_cal_files:
         # Build serial_number -> new_printer_id mapping
         # Build serial_number -> new_printer_id mapping
         serial_to_new_id: dict[str, int] = {}
         serial_to_new_id: dict[str, int] = {}
@@ -1101,9 +1096,6 @@ async def import_backup(
             if serial and serial in serial_to_new_id:
             if serial and serial in serial_to_new_id:
                 old_id_to_new_id[old_id] = serial_to_new_id[serial]
                 old_id_to_new_id[old_id] = serial_to_new_id[serial]
 
 
-        logger.info(
-            f"Plate calibration ID mapping: old_id_to_serial={old_id_to_serial}, serial_to_new_id={serial_to_new_id}, old_id_to_new_id={old_id_to_new_id}"
-        )
         app_settings.plate_calibration_dir.mkdir(parents=True, exist_ok=True)
         app_settings.plate_calibration_dir.mkdir(parents=True, exist_ok=True)
 
 
         for filename, file_data in plate_cal_files.items():
         for filename, file_data in plate_cal_files.items():
@@ -1119,7 +1111,6 @@ async def import_backup(
                         new_filename = filename.replace(f"printer_{old_printer_id}_", f"printer_{new_printer_id}_", 1)
                         new_filename = filename.replace(f"printer_{old_printer_id}_", f"printer_{new_printer_id}_", 1)
 
 
             target_path = app_settings.plate_calibration_dir / new_filename
             target_path = app_settings.plate_calibration_dir / new_filename
-            logger.info(f"Writing plate calibration file: {filename} -> {target_path}")
             with open(target_path, "wb") as f:
             with open(target_path, "wb") as f:
                 f.write(file_data)
                 f.write(file_data)
             files_restored += 1
             files_restored += 1