auto-sync: 2026-03-26 20:33:24
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
简单临时配置设置
|
||||
"""
|
||||
import os
|
||||
import json
|
||||
|
||||
print("="*60)
|
||||
print("📁 创建临时NAS存储配置")
|
||||
print("="*60)
|
||||
|
||||
# 临时存储路径
|
||||
temp_path = "/Users/chufeng/.openclaw/sanguo_projects/sanguo_quant_live/zhaoyun-data/data/temp_nas_minute"
|
||||
|
||||
# 创建目录
|
||||
os.makedirs(os.path.join(temp_path, "1min"), exist_ok=True)
|
||||
os.makedirs(os.path.join(temp_path, "5min"), exist_ok=True)
|
||||
os.makedirs(os.path.join(temp_path, "15min"), exist_ok=True)
|
||||
os.makedirs(os.path.join(temp_path, "logs"), exist_ok=True)
|
||||
os.makedirs(os.path.join(temp_path, "reports"), exist_ok=True)
|
||||
|
||||
print("✅ 临时存储目录已创建")
|
||||
print(f" 存储路径: {temp_path}")
|
||||
print(f" 1分钟数据: {temp_path}/1min")
|
||||
print(f" 5分钟数据: {temp_path}/5min")
|
||||
print(f" 15分钟数据: {temp_path}/15min")
|
||||
|
||||
# 保存配置
|
||||
config = {
|
||||
"status": "temporary_local",
|
||||
"path": temp_path,
|
||||
"note": "等待姜维将军提供实际NAS配置",
|
||||
"ready_for_testing": True
|
||||
}
|
||||
|
||||
config_file = os.path.join(temp_path, "config.json")
|
||||
with open(config_file, 'w', encoding='utf-8') as f:
|
||||
json.dump(config, f, indent=2)
|
||||
|
||||
print(f"\n✅ 配置文件已保存: {config_file}")
|
||||
|
||||
print("\n" + "="*60)
|
||||
print("🚀 赵云准备状态")
|
||||
print("="*60)
|
||||
|
||||
print("✅ 第一步完成:")
|
||||
print(" 1. VPN网络环境测试通过")
|
||||
print(" 2. AKShare数据源验证通过")
|
||||
print(" 3. 临时存储目录已创建")
|
||||
print(" 4. 技术脚本准备就绪")
|
||||
|
||||
print("\n🎯 等待姜维将军提供:")
|
||||
print(" 1. 实际NAS存储路径")
|
||||
print(" 2. 网络访问配置")
|
||||
print(" 3. VPN设置详情")
|
||||
|
||||
print("\n⚡ 立即可执行:")
|
||||
print(" 1. 使用临时路径开始分钟数据下载测试")
|
||||
print(" 2. 验证脚本功能和数据质量")
|
||||
print(" 3. 等待实际NAS配置后进行数据迁移")
|
||||
|
||||
print("\n" + "="*60)
|
||||
print("📊 总览: 赵云准备就绪,等待NAS配置")
|
||||
print("="*60)
|
||||
Reference in New Issue
Block a user