diff --git a/README.md b/README.md index 1d6e0fb..ccd22e6 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,22 @@ Restart Moonraker, then update directly from Mainsail/Fluidd UI! 🎉 ### 3. Install Configs +**⚠️ IMPORTANT: Choose ONE option!** + +#### Option A: Direct Include (Recommended!) ✅ +Files stay in repo, auto-update via Moonraker: + +```ini +# Add to moonraker.conf or printer.cfg: +[include open4neptune-new/calibration/*.cfg] +[include open4neptune-new/user_settings_clean.cfg] +``` + +**Advantage:** Updates automatically via Moonraker UI! + +#### Option B: Copy Files (Legacy) +Files copied to config folder, manual updates: + ```bash # Copy calibration macros cp -r open4neptune-new/calibration/ ~/printer_data/config/ @@ -33,6 +49,8 @@ cp -r open4neptune-new/calibration/ ~/printer_data/config/ cp open4neptune-new/user_settings_clean.cfg ~/printer_data/config/user_settings.cfg ``` +**⚠️ Warning:** These copies won't auto-update! You must re-run the copy command after each update, or switch to Option A. + ### 4. Restart Klipper **Mainsail/Fluidd:** Machine → Restart Firmware @@ -185,6 +203,22 @@ ls ~/printer_data/config/calibration/ grep "calibration" ~/printer_data/config/printer.cfg ``` +### ⚠️ Error After Update: "Error loading template" + +If you get template errors after updating via Moonraker, you likely have **copied files** that weren't updated: + +```bash +# Check for duplicate files +find ~/printer_data -name "test_patterns.cfg" + +# If you see multiple files, remove the old copy: +rm ~/printer_data/config/calibration/test_patterns.cfg + +# Or switch to direct include (recommended): +# Add to moonraker.conf: [include open4neptune-new/calibration/*.cfg] +# Then remove the copied calibration/ folder +``` + ### Update Manager Not Showing ```bash diff --git a/install.sh b/install.sh index ec1816f..07aa729 100755 --- a/install.sh +++ b/install.sh @@ -22,9 +22,19 @@ echo "" # Check if calibration folder exists if [ -d "$SCRIPT_DIR/calibration" ]; then echo "✓ Found calibration folder" - echo " Copying to config directory..." - cp -r "$SCRIPT_DIR/calibration" "$CONFIG_DIR/" - echo " ✓ Calibration macros installed" + + # Check if using direct include (recommended) or copied files + if [ -d "$CONFIG_DIR/open4neptune-new/calibration" ]; then + echo " ℹ Using direct include from repo (recommended!)" + echo " No copy needed - files update automatically" + else + echo " Copying to config directory..." + cp -r "$SCRIPT_DIR/calibration" "$CONFIG_DIR/" + echo " ✓ Calibration macros installed" + echo " ⚠️ Note: Copied files won't auto-update!" + echo " Consider switching to direct include:" + echo " [include open4neptune-new/calibration/*.cfg]" + fi else echo "✗ Calibration folder not found" fi