2026-02-08 01:29:01 +08:00
# 🌡️ PolyWeather: Real-time Weather Query & Analysis Bot
2026-02-05 19:52:02 +08:00
2026-02-08 01:29:01 +08:00
An intelligent weather information bot designed to provide ultra-fast, live meteorological data, high-fidelity forecasts, and smart trend analysis. Built for speed and accuracy, it bypasses network caching to deliver the most up-to-date reports from global weather stations.
2026-02-05 19:52:02 +08:00
2026-02-07 01:59:51 +08:00
## 🚀 Quick Start
2026-02-07 01:21:55 +08:00
2026-02-07 01:59:51 +08:00
### Requirements
2026-02-07 01:21:55 +08:00
2026-02-08 01:29:01 +08:00
- **Python 3.11+**
- Dependencies: `pip install -r requirements.txt`
2026-02-07 01:21:55 +08:00
2026-02-08 01:29:01 +08:00
### Running Locally (Windows/Linux)
2026-02-07 01:21:55 +08:00
```bash
2026-02-08 01:29:01 +08:00
# Windows
py -3.11 run.py
2026-02-07 01:21:55 +08:00
2026-02-08 01:29:01 +08:00
# Linux/VPS
python3 run.py
2026-02-07 01:21:55 +08:00
```
2026-02-08 01:29:01 +08:00
_Note: The system is currently in **Weather Query Mode**. Active market monitoring and automated trading modules are suspended._
2026-02-05 19:52:02 +08:00
---
2026-02-07 01:59:51 +08:00
## 🤖 Telegram Bot Commands
2026-02-05 19:52:02 +08:00
2026-02-08 01:29:01 +08:00
| Command | Description | Usage |
| :------------- | :--------------------- | :--------------------------------------------- |
| `/city [name]` | **Query City Weather** | Get detailed forecasts, METAR & trend analysis |
| `/id` | **Get Chat ID** | Retrieve your current Telegram Chat ID |
| `/help` | **Help** | Display all available commands |
2026-02-07 22:30:19 +08:00
### /city Command Example
```
2026-02-08 01:29:01 +08:00
/city London
2026-02-07 22:30:19 +08:00
```
2026-02-08 01:29:01 +08:00
**Real-time Output:**
> 📍 **London 天气详情**
> ⏱️ 生成时间: 00:41:17
> ═══ ═══ ═══ ═══ ═══ ═══
> 🕐 当地时间: 16:41
>
> 📊 **Open-Meteo 7天预测**
> 👉 今天: 最高 12°C
> 02-09: 最高 11°C
>
> ✈️ **机场实测 (EGLC)**
> 🌡️ 10.0°C
> 💨 风速: 12kt
> 🕐 观测: 16:20 (当地)
>
> 💡 **态势分析**
> 📉 **处于降温期**:气温已开始从峰值下滑,今日大概率不会再反弹。
> 🍃 **清劲风**:空气流动快,虽然有助于散热,但可能伴随阵风引起微小波动。
2026-02-05 19:52:02 +08:00
---
2026-02-08 01:29:01 +08:00
## ✨ Key Features
2026-02-06 20:16:45 +08:00
2026-02-08 01:29:01 +08:00
### 1. 💡 Intelligent Trend Analysis
2026-02-06 20:16:45 +08:00
2026-02-08 01:29:01 +08:00
The bot doesn't just show numbers; it performs a **Live vs. Forecast** analysis:
2026-02-06 20:16:45 +08:00
2026-02-08 01:29:01 +08:00
- **Peak Detection**: Determines if the daily high has likely already passed.
- **Atmospheric Physics**: Uses humidity and dew point to predict if the temperature will "stall" at night.
- **Volatility Alerts**: Flags high wind speeds that might cause rapid temperature swings.
2026-02-05 19:52:02 +08:00
2026-02-08 01:29:01 +08:00
### 2. ✈️ High-Fidelity Airport Data (METAR)
2026-02-05 19:52:02 +08:00
2026-02-08 01:29:01 +08:00
Directly connected to **NOAA Aviation Weather** , the bot fetches raw METAR data from major international airports.
2026-02-07 01:21:55 +08:00
2026-02-08 01:29:01 +08:00
- Automatic conversion from UTC to **City Local Time** .
- Real-time station observations (Temperature, Wind, Dew Point).
2026-02-07 22:30:19 +08:00
2026-02-08 01:29:01 +08:00
### 3. ⚡ Ultra-Fresh Data (Cache Busting)
2026-02-07 22:30:19 +08:00
2026-02-08 01:29:01 +08:00
Engineered to bypass ISP and proxy caches:
2026-02-06 21:30:52 +08:00
2026-02-08 01:29:01 +08:00
- Every request includes a **micro-timestamp token** .
- Forces weather servers (Open-Meteo/NOAA) to deliver fresh results instead of stale cached snapshots.
2026-02-07 00:48:16 +08:00
2026-02-05 19:52:02 +08:00
---
2026-02-08 01:29:01 +08:00
## 🏗️ Architecture Note
2026-02-05 19:52:02 +08:00
2026-02-08 01:29:01 +08:00
The project contains a legacy **Monitoring Engine** and **Paper Trading System** (located in `main.py` ). These features are currently **deactivated** to prioritize high-speed on-demand weather reporting.
2026-02-06 20:16:45 +08:00
2026-02-08 01:29:01 +08:00
- To re-enable monitoring: Uncomment `monitor_thread.start()` in `run.py` .
- Documentation for inactive features: See [MARKET_DISCOVERY.md ](./MARKET_DISCOVERY.md ) and [PAPER_TRADING_GUIDE.md ](./PAPER_TRADING_GUIDE.md ).