Fix: Clarify installation options and warn about copied files

- README: Add Option A (direct include) as recommended method
- README: Add Option B (copy) with warning about manual updates
- install.sh: Detect direct include vs copied files
- README: Add troubleshooting for 'Error loading template' after update

The root cause: Moonraker updates the repo, but copied files in
~/printer_data/config/calibration/ don't get updated automatically.

Solution: Use direct include [include open4neptune-new/calibration/*.cfg]
so files are always loaded from the repo.
This commit is contained in:
root 2026-03-13 11:00:43 +00:00
parent 4d5b9d7243
commit 1c42d7c2b6
2 changed files with 47 additions and 3 deletions

View file

@ -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

View file

@ -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