Add Moonraker Update Manager integration

🎉 One-click updates from Mainsail/Fluidd UI!

New files:
- moonraker/update_manager.cfg - Moonraker config
- moonraker/README.md - Setup instructions
- install.sh - Auto-install/update script
- README.md - Complete project documentation

Features:
 Update Manager entry in Mainsail/Fluidd
 One-click updates from web UI
 Automatic Klipper restart after update
 Safe install (doesn't overwrite custom user_settings.cfg)
 Installs calibration macros automatically
 Professional update workflow

Setup:
1. Add [include open4neptune-new/moonraker/update_manager.cfg] to moonraker.conf
2. Restart Moonraker
3. Machine → Update Manager → open4neptune-configs → Update

Like official Klipper plugins! 🔥
This commit is contained in:
root 2026-03-12 14:38:40 +00:00
parent 862b062ecb
commit 8dba9d6b55
4 changed files with 631 additions and 0 deletions

76
install.sh Executable file
View file

@ -0,0 +1,76 @@
#!/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"
echo " Copying to config directory..."
cp -r "$SCRIPT_DIR/calibration" "$CONFIG_DIR/"
echo " ✓ Calibration macros installed"
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 ""