open4neptune-new/install.sh
root 1c42d7c2b6 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.
2026-03-13 11:00:43 +00:00

86 lines
2.8 KiB
Bash
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# ============================================================================
# INSTALL SCRIPT - Neptune 4 Plus Configs
# Runs automatically when updating via Moonraker Update Manager
# ============================================================================
set -e
echo "=============================================="
echo " Neptune 4 Plus Config Update"
echo "=============================================="
echo ""
# Get script directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONFIG_DIR="$HOME/printer_data/config"
echo "Script directory: $SCRIPT_DIR"
echo "Config directory: $CONFIG_DIR"
echo ""
# Check if calibration folder exists
if [ -d "$SCRIPT_DIR/calibration" ]; then
echo "✓ Found calibration folder"
# 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
echo ""
# Check if user_settings_clean.cfg exists
if [ -f "$SCRIPT_DIR/user_settings_clean.cfg" ]; then
echo "✓ Found user_settings_clean.cfg"
# Only copy if user_settings.cfg doesn't exist or is old
if [ ! -f "$CONFIG_DIR/user_settings.cfg" ]; then
echo " Copying clean version..."
cp "$SCRIPT_DIR/user_settings_clean.cfg" "$CONFIG_DIR/user_settings.cfg"
echo " ✓ user_settings.cfg installed"
else
echo " user_settings.cfg already exists (keeping current)"
echo " To update manually:"
echo " cp $SCRIPT_DIR/user_settings_clean.cfg $CONFIG_DIR/user_settings.cfg"
fi
else
echo "✗ user_settings_clean.cfg not found"
fi
echo ""
# Check if orca-profiles folder exists
if [ -d "$SCRIPT_DIR/orca-profiles" ]; then
echo "✓ Found Orca profiles"
echo " Location: $SCRIPT_DIR/orca-profiles/"
echo " Import manually in Orca Slicer:"
echo " File → Import → Import Config(s)..."
else
echo "✗ Orca profiles folder not found"
fi
echo ""
echo "=============================================="
echo " Installation Complete!"
echo "=============================================="
echo ""
echo "Next steps:"
echo " 1. Restart Klipper (Mainsail → Machine → Restart Firmware)"
echo " 2. Test macros in console:"
echo " - CALIBRATION_MENU"
echo " - PRINT_START EXTRUDER_TEMP=200 BED_TEMP=60"
echo ""
echo "Enjoy your updated configs! 🔥"
echo ""