docs: add web map screenshot and feature list
This commit is contained in:
@@ -13,11 +13,24 @@ PolyWeather is a weather analysis tool built for prediction markets like **Polym
|
|||||||
<em>📊 Live query: DEB Blended Forecast + Settlement Probability + Groq AI Decision</em>
|
<em>📊 Live query: DEB Blended Forecast + Settlement Probability + Groq AI Decision</em>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="docs/images/demo_map.png" alt="PolyWeather Web Map" width="600">
|
||||||
|
<br>
|
||||||
|
<em>🗺️ Interactive Web Map: Real-time global monitoring with rich data visualization</em>
|
||||||
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## ✨ Core Features
|
## ✨ Core Features
|
||||||
|
|
||||||
### 1. 🧬 Dynamic Ensemble Blending (DEB Algorithm)
|
### 1. 🌐 Interactive Web Map Dashboard
|
||||||
|
|
||||||
|
- **Global Overview**: Real-time Leaflet-based map pinpointed exactly to the official Polymarket settlement airport coordinates.
|
||||||
|
- **Progressive Background Loading**: Intelligently fetches multi-source data across all cities seamlessly without hitting rate limits.
|
||||||
|
- **Rich Visualization**: Includes Chart.js-powered temperature trends, multi-model comparison bars, Gaussian probability distribution, and dynamic risk badges.
|
||||||
|
- **Dual-Engine Co-existence**: Runs concurrently with the Telegram bot using a FastAPI backend, sharing the exact same data and caching layers.
|
||||||
|
|
||||||
|
### 2. 🧬 Dynamic Ensemble Blending (DEB Algorithm)
|
||||||
|
|
||||||
The system automatically tracks the historical performance of weather models (ECMWF, GFS, ICON, GEM, JMA) per city:
|
The system automatically tracks the historical performance of weather models (ECMWF, GFS, ICON, GEM, JMA) per city:
|
||||||
|
|
||||||
@@ -105,22 +118,15 @@ The easiest and most stable way to deploy without system dependency conflicts.
|
|||||||
|
|
||||||
1. Install dependencies: `pip install -r requirements.txt`
|
1. Install dependencies: `pip install -r requirements.txt`
|
||||||
2. Configure your `.env` file.
|
2. Configure your `.env` file.
|
||||||
3. Use the following script for one-click updates and restarts (for `nohup` background run):
|
3. Use the included `update.sh` script for one-click updates and restarts for both the Telegram Bot and the Web Map:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat > ~/update.sh << 'EOF'
|
# Run the script to update code and restart both services in the background
|
||||||
#!/bin/bash
|
./update.sh
|
||||||
cd ~/PolyWeather
|
|
||||||
git fetch origin
|
|
||||||
git reset --hard origin/main
|
|
||||||
pkill -f bot_listener.py
|
|
||||||
sleep 1
|
|
||||||
nohup python3 bot_listener.py > bot.log 2>&1 &
|
|
||||||
echo "✅ PolyWeather Restarted!"
|
|
||||||
EOF
|
|
||||||
chmod +x ~/update.sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
_(Note: The `update.sh` script automatically fetches the latest code, kills old processes, clears ports, and launches both `bot_listener.py` and `web/app.py` via `nohup`.)_
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🕹️ Bot Commands
|
## 🕹️ Bot Commands
|
||||||
@@ -186,4 +192,4 @@ graph TD
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
_Updated 2026-03-01_
|
_Updated 2026-03-03_
|
||||||
|
|||||||
+20
-14
@@ -13,11 +13,24 @@ PolyWeather 是一款专为 **Polymarket** 等预测市场打造的天气分析
|
|||||||
<em>📊 实时查询效果:DEB 融合预测 + 结算概率 + Groq AI 决策</em>
|
<em>📊 实时查询效果:DEB 融合预测 + 结算概率 + Groq AI 决策</em>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="docs/images/demo_map.png" alt="PolyWeather Web Map" width="600">
|
||||||
|
<br>
|
||||||
|
<em>🗺️ 交互式网页地图:全球城市实时监控与丰富的数据可视化可视化</em>
|
||||||
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## ✨ 核心功能
|
## ✨ 核心功能
|
||||||
|
|
||||||
### 1. 🧬 动态权重集合预报 (DEB 算法)
|
### 1. 🌐 交互式网页地图面板
|
||||||
|
|
||||||
|
- **全球纵览**:基于 Leaflet 的暗黑全屏实时地图,直接采用官方结算机场经纬度进行最精确的追踪与显示。
|
||||||
|
- **渐进式数据流加载**:进图后智能在后台进行无感知拉取更新,确保不触发高频 API 频率限制的前提下填满所有城市数据。
|
||||||
|
- **丰富的数据可视化**:引入了基于 Chart.js 的高分辨率全天走势预测平滑曲线,多模型直达对比横空出世,以及高颜值结算概率条,各城市实时风险等级色彩系统。
|
||||||
|
- **双引擎共生**:后端采用了基于原代码重构利用的 FastAPI,地图网络服务可以在任意 VPS 上零门槛与原本的 Telegram Bot(机器人)共享同一个内存核心并存互不打架。
|
||||||
|
|
||||||
|
### 2. 🧬 动态权重集合预报 (DEB 算法)
|
||||||
|
|
||||||
系统会自动追踪各个气象模型(ECMWF, GFS, ICON, GEM, JMA)在特定城市的历史表现:
|
系统会自动追踪各个气象模型(ECMWF, GFS, ICON, GEM, JMA)在特定城市的历史表现:
|
||||||
|
|
||||||
@@ -105,22 +118,15 @@ PolyWeather 是一款专为 **Polymarket** 等预测市场打造的天气分析
|
|||||||
|
|
||||||
1. 安装依赖: `pip install -r requirements.txt`
|
1. 安装依赖: `pip install -r requirements.txt`
|
||||||
2. 配置 `.env` 文件。
|
2. 配置 `.env` 文件。
|
||||||
3. 使用以下脚本实现一键更新与重启(仅适用于后台 `nohup` 运行):
|
3. 利用项目中已包含的 `update.sh` 实现机器人和网站的双轨后台一键重启(适用于 `nohup`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat > ~/update.sh << 'EOF'
|
# 每次代码变更后,只需在 VPS 执行此命令
|
||||||
#!/bin/bash
|
./update.sh
|
||||||
cd ~/PolyWeather
|
|
||||||
git fetch origin
|
|
||||||
git reset --hard origin/main
|
|
||||||
pkill -f bot_listener.py
|
|
||||||
sleep 1
|
|
||||||
nohup python3 bot_listener.py > bot.log 2>&1 &
|
|
||||||
echo "✅ PolyWeather 已重启!"
|
|
||||||
EOF
|
|
||||||
chmod +x ~/update.sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
_(该脚本将自动执行 git 抓取、杀僵尸进程、解绑释放死锁端口、并分别利用 nohup 重新唤醒 bot_listener.py 和 FastAPI app.py服务。)_
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🕹️ 机器人指令
|
## 🕹️ 机器人指令
|
||||||
@@ -186,4 +192,4 @@ graph TD
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
_更新于 2026-03-01_
|
_更新于 2026-03-03_
|
||||||
|
|||||||
Reference in New Issue
Block a user