From a3924486b80e2085c367ecb65c4e60face5095fc Mon Sep 17 00:00:00 2001 From: PianCat <50688679+PianCat@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E9=9D=92=E9=BE=99=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E8=BF=9B=E4=B8=80=E6=AD=A5=E9=80=82=E9=85=8D=20(#148)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加 青龙面板 相关参数文件头 清理部分信息 添加青龙面板任务参数文件头 * 添加 青龙面板 环境配置相关任务文件 --- firstrun.sh | 12 ++++++++++++ miuitask.py | 8 +++----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 firstrun.sh diff --git a/firstrun.sh b/firstrun.sh new file mode 100644 index 0000000..f461744 --- /dev/null +++ b/firstrun.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# new Env("MIUI-Auto-Task 环境配置") +# cron 0 0 1 * * firstrun.sh + +echo "开始安装依赖" +pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt +echo "依赖已安装完毕" + +echo "开始首次执行" +task 0-8-4_miui-auto-tasks_master/miuitask.py +echo "首次执行完毕" +echo "请到 脚本管理 - 0-8-4_miui-auto-tasks_master - data - config.yml 中配置参数" diff --git a/miuitask.py b/miuitask.py index c557b1c..9009fb5 100644 --- a/miuitask.py +++ b/miuitask.py @@ -1,8 +1,6 @@ -""" -Date: 2023-11-13 20:29:19 -LastEditors: Night-stars-1 nujj1042633805@gmail.com -LastEditTime: 2023-11-13 20:29:58 -""" +# new Env("MIUI-Auto-Task") +# cron 30 8 * * * miuitask.py + import asyncio from utils.api.login import Login