CreatBotKlipper/scripts/fetch_assets.sh
zkk 94328730bd 全系实现断料自动切头功能、添加床网调平淡出高度、修复重启时温度有概率异常问题、F430修改为闭环电机、优化复制镜像模式并修改回零舵机角度
Squashed commit of the following:

commit 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd
Merge: 588ea4402 9b487abec
Author: zkk <1007518571@qq.com>
Date:   Thu Dec 19 16:23:07 2024 +0800

    Merge commit '9b487abec3449dea3673618c1a8b9e88f16b4c40' into release

commit 9b487abec3449dea3673618c1a8b9e88f16b4c40
Author: ruipeng <1041589370@qq.com>
Date:   Thu Dec 19 16:03:04 2024 +0800

    F430NX更换为闭环Y电机

commit 641f767175387cacf9820affd616dcdb017590b9
Author: ruipeng <1041589370@qq.com>
Date:   Thu Dec 19 10:42:11 2024 +0800

    F430NX复制、镜像模式优化

commit ef148604da4f925305939e74cfb0edc7fbd261d1
Author: ruipeng <1041589370@qq.com>
Date:   Thu Dec 19 10:40:25 2024 +0800

    自动切头功能

commit fa74a82184caa6a914a32578b31aeb21f8299c7c
Merge: 9307b8957 93efb1abd
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 18 15:53:46 2024 +0800

    Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop

commit 9307b89570a63040259b457ef7ff8969b394b527
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 18 15:49:41 2024 +0800

    修复重启时候有概率出现温度数值异常的问题

commit 9925c7864471f1f9f7b1e22f45dc4d1421c1245a
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 17 15:55:28 2024 +0800

    实现二喷头的偏移值校准功能

commit 93efb1abdea67a732b17351b8c31ae5387eaaf91
Author: ruipeng <1041589370@qq.com>
Date:   Fri Dec 13 09:55:41 2024 +0800

    配置网床调平淡出高度

commit 30b77165a7bdae2cd338c283fbab3c8baa37c694
Author: ruipeng <1041589370@qq.com>
Date:   Thu Dec 12 14:03:30 2024 +0800

    调整F430NX探测舵机角度,由90°->120°

commit 588ea4402812b09100b2417b040d7daa2d2fbfaa
Merge: 349f8f7a2 9be203c58
Author: zkk <1007518571@qq.com>
Date:   Thu Dec 12 10:39:56 2024 +0800

    Merge commit '9be203c58f7c88e4f6963a1079d2dcfaa5401dde' into release

commit 9be203c58f7c88e4f6963a1079d2dcfaa5401dde
Author: ruipeng <1041589370@qq.com>
Date:   Wed Dec 11 15:24:05 2024 +0800

    新增D600pro2、D1000的V0版机型

commit 349f8f7a249ac113700eed2b4a234473016d32c0
Merge: e554ddb83 401da556f
Author: zkk <1007518571@qq.com>
Date:   Fri Nov 29 10:21:01 2024 +0800

    Merge branch 'develop' into release

commit 401da556f58df5e917a379dd54565ef5775f7ed2
Merge: 508378825 52ea64cf8
Author: zkk <1007518571@qq.com>
Date:   Fri Nov 29 10:12:48 2024 +0800

    Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop

commit 52ea64cf83535c84c378239b43a7f0a6a362a517
Author: ruipeng <1041589370@qq.com>
Date:   Thu Nov 28 10:55:09 2024 +0800

    修复暂停掉温后,恢复时喷头温度不能恢复的问题

commit 508378825da2881043b88427a6df03230c9f66c0
Author: zkk <1007518571@qq.com>
Date:   Wed Nov 27 14:47:23 2024 +0800

    D1000 z轴最大速度设置成7

commit 41c2cd39275dfecafd85a0cbe504f2f5f1cdeec6
Author: zkk <1007518571@qq.com>
Date:   Mon Nov 25 17:12:23 2024 +0800

    优化热电偶最大报错次数

# Conflicts:
#	config/CreatBot_D1000/base.cfg   resolved by 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd version
#	config/CreatBot_D1000_V0/base.cfg   resolved by 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd version
#	config/CreatBot_D600Pro2/base.cfg   resolved by 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd version
#	config/CreatBot_D600Pro2_V0/base.cfg   resolved by 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd version
#	config/CreatBot_F430NX/base.cfg   resolved by 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd version
2024-12-19 16:44:25 +08:00

64 lines
1.8 KiB
Bash

#!/bin/bash
# Get model name and type
Type="$1"
Model="$2"
Filename="$3"
echo "Type: ${Type}"
echo "Model: ${Model}"
echo "Filename: ${Filename}"
# Check if model name is provided
if [ -z "$Model" ]; then
echo "Error: Model name not provided"
exit 1
fi
# Check if the Type is Gcode
if [ "$Type" = "Gcode" ]; then
# Define download path and filename
download_path="$HOME/.temp/"
download_filename="${download_path}NozzleAglin.zip"
download_url="https://www.creatbot.com/downloads/3dmodels/gcode/${Model}/NozzleAglin.zip"
# Create temporary download directory
mkdir -p "${download_path}"
# Define target folder for extracted file
target_folder="$HOME/printer_data/gcodes/.PresetModel/"
# Check if the target folder already contains the extracted file
if [ -f "${target_folder}NozzleAglin.gcode" ]; then
echo "Target file 'NozzleAglin.gcode' already exists, skipping download and extraction."
exit 0
fi
# If the file does not exist, start downloading the file
wget -q -O "${download_filename}" "${download_url}"
# Check if wget successfully downloaded the file
if [ $? -ne 0 ]; then
echo "Error: Download failed, the URL might be invalid or there is a network issue."
exit 1
fi
# Create target extraction directory if it doesn't exist
mkdir -p "$target_folder"
# Extract the downloaded file to the target directory, using -o to overwrite existing files
unzip -o -q "${download_filename}" -d "$target_folder"
# Check if the extraction was successful
if [ $? -ne 0 ]; then
echo "Error: Extraction failed, please check if the file is corrupted or the path is correct."
exit 1
fi
# Remove the temporary download folder
rm -rf "${download_path}"
echo "Download and extraction completed successfully."
fi