功能: 完善风电功率方案计算

- 新增计算方案保存与方案二筛选参数
- 支持方案二桨角规则和有效数据导出
- 优化功率曲线绘制和设计功率展示
This commit is contained in:
cloud
2026-07-17 16:01:58 +08:00
parent 3cb7684039
commit d5d381759e
23 changed files with 918 additions and 50 deletions
+6 -6
View File
@@ -6,7 +6,7 @@
# 1. 本地执行 package.sh 生成 runtime/wind_power/
# 2. rsync runtime/wind_power/ → ~/wind_power/
# 3. 安装/更新 systemd 服务 wind_power.service
# 4. 重启 wind_power,并验证 8848 直连接口
# 4. 重启 wind_power,并验证 8080 直连接口
#
# 不安装、不配置 nginx;不修改 gitea。
#
@@ -114,17 +114,17 @@ sudo systemctl restart "${SERVICE_NAME}"
echo "[remote] systemd ${SERVICE_NAME} 已安装并启动"
REMOTE
step "5/5 校验 8848 直连服务..."
step "5/5 校验 8080 直连服务..."
sleep 2
ssh_cmd "SERVICE_NAME='${SERVICE_NAME}'" 'bash -s' <<'REMOTE' | sed 's/^/[remote] /'
set +e
echo "service: $(systemctl is-active ${SERVICE_NAME})"
echo "health: $(curl -s -m 5 localhost:8848/api/system/health)"
echo "version: $(curl -s -m 5 localhost:8848/api/system/version)"
echo "listen: $(ss -tlnp 2>/dev/null | grep ':8848' | head -1 | sed 's/.*users://')"
echo "health: $(curl -s -m 5 localhost:8080/api/system/health)"
echo "version: $(curl -s -m 5 localhost:8080/api/system/version)"
echo "listen: $(ss -tlnp 2>/dev/null | grep ':8080' | head -1 | sed 's/.*users://')"
REMOTE
echo ""
info "✅ 部署完成"
echo -e " wind_power: ${GREEN}http://${TARGET#*@}:8848/${NC}"
echo -e " wind_power: ${GREEN}http://${TARGET#*@}:8080/${NC}"
echo " 查看服务: ssh ${TARGET} 'systemctl status ${SERVICE_NAME}'"