Commit Graph

366 Commits

Author SHA1 Message Date
2569718930@qq.com bf5e92e656 AMOS 温度处理:METAR 优先,跑道中位数兜底
温度优先级:
1. METAR 温度(官方机场传感器,权威值)
2. 跑道传感器中位数(fallback;不同跑道传感器因位置/海拔可能差 0.5-1°C)

- 新增 temp_source 字段标注来源("metar" / "runway_median")
- 新增 runway_temps 数组保留每条跑道的原始 (温度, 露点)
- 回退逻辑用中位数而非第一个值(跑道数据可能是乱序的)
- 温度合理性检查:只取 -50°C ~ 60°C 范围内的值

Tested: python -m ruff check ., npx tsc --noEmit
2026-05-10 18:07:33 +08:00
2569718930@qq.com 27010d5fb3 移除 KMA 数据源:已被更精确的 AMOS 跑道级传感器取代
- weather_sources.py:移除 KmaStationSourceMixin 导入和继承
- 移除 _attach_korea_official_nearby() 函数
- 移除 kma_cache 初始化代码
- 首尔/釜山现在使用 AMOS 跑道传感器替代 KMA 地面站
- kma_station_sources.py 保留为参考文件

Replaced-by: AMOS (global.amo.go.kr) runway-level sensor data
2026-05-10 17:59:26 +08:00
2569718930@qq.com 058ab7a619 新增 AMOS 跑道级实时气象数据源(韩国仁川/釜山)
- src/data_collection/amos_station_sources.py:新增 AmosStationSourceMixin
- 从 global.amo.go.kr 爬取跑道级观测:温度/露点/气压/风向风速/能见度/RVR/云层
- 解析 METAR + TAF 报文,提取温/湿/压/风数值
- 解析跑道级表格数据(每跑道独立风分量、侧风、视程)
- 覆盖首尔/仁川 (RKSI) 和釜山/金海 (RKPK)

- weather_sources.py:集成 AmosStationSourceMixin
- fetch_all_sources 中为 seoul/busan 自动追加 AMOS 数据
- 结果存入 results["amos"],包含原始 METAR/TAF 和解析后的跑道数据

Tested: python -m ruff check ., npx tsc --noEmit
2026-05-10 17:55:39 +08:00
2569718930@qq.com b3ea8dcfa7 数据链路 P1 修复:ETag 缓存 + 校准漂移检测
P1-5 ETag 支持:
- 后端新增 _etag_middleware:GET /api/* 自动返回 ETag (MD5)
- 支持 If-None-Match 请求头,匹配时返回 304 + 30s Cache-Control
- 前端 cache: no-store → default,浏览器自动处理 ETag/304 节省带宽

P1-6 校准漂移检测:
- probability_calibration.py 新增 check_calibration_drift()
- 对比最近 200 条 daily_records 的 CRPS 与校准基线
- 漂移 >15% 时返回 warning 提示重新训练
- 集成到 /api/system/status 的 probability.drift 字段

Tested: python -m ruff check ., npx tsc --noEmit
2026-05-10 16:54:48 +08:00
2569718930@qq.com 2183c0399d 移除错误定价信号和市场聚焦摘要功能
保留关键市场警报推送(4 条触发规则不变),
移除 mispricing 信号分类/推送、focus digest 评分/聚合/定时推送、
/markets 手动查询等全套逻辑,净删除 1049 行。
2026-05-07 21:42:06 +08:00
2569718930@qq.com f8c5cfab28 降低市场监控Telegram推送频率,减少重复通知
收紧推送周期、冷却时间和触发门槛的默认值,避免52城
同时监控导致的通知轰炸。删除不再使用的doc_refresher技能。

Constraint: 用户反馈电报群通知太频繁且同城市重复推送
Rejected: 在.env中配置 | 用户要求写死在代码默认值中
Confidence: high
Scope-risk: narrow
Directive: 如需临时放宽,仍可通过同名环境变量覆盖
Tested: Not-tested: 需实际运行bot验证推送频率
2026-05-06 14:50:35 +08:00
2569718930@qq.com 6c203bee60 This version of Antigravity is no longer supported. Please upgrade to receive the latest features. 2026-05-01 11:27:16 +08:00
2569718930@qq.com 96dfb4c5b3 This version of Antigravity is no longer supported. Please upgrade to receive the latest features. 2026-04-30 09:50:17 +08:00
2569718930@qq.com f0436f498a This version of Antigravity is no longer supported. Please upgrade to receive the latest features. 2026-04-29 21:10:56 +08:00
2569718930@qq.com 89a71d1bc0 Add Qingdao to the tradable city network
Qingdao needs the same airport-settlement path as the other Wunderground-backed APAC cities, so the registry, aliases, timezone, prewarm, official links, market focus, and tests now point to ZSQD / Qingdao Jiaodong International Airport.

Constraint: User supplied Wunderground Qingdao/ZSQD settlement URL.
Rejected: Add a partial registry-only entry | it would show in APIs without frontend links, prewarm coverage, or alias support.
Confidence: high
Scope-risk: narrow
Reversibility: clean
Tested: pytest tests/test_country_networks.py tests/test_web_observability.py::test_cities_endpoint_includes_new_wunderground_cities -q
Tested: npm run build
Not-tested: Live Wunderground fetch for ZSQD in production.
2026-04-28 07:08:33 +08:00
2569718930@qq.com 9ded30b125 feat: implement AI-driven weather scan terminal with decision utilities and forecast visualization 2026-04-27 02:18:34 +08:00
2569718930@qq.com 670c0328c8 feat: add read-only Polymarket data collection layer for market discovery and price tracking 2026-04-26 12:47:24 +08:00
2569718930@qq.com 312b366a50 feat: implement PolyWeather dashboard UI with Leaflet map integration and backend data collection support 2026-04-26 10:22:11 +08:00
2569718930@qq.com 0f23d8af9d feat: implement dashboard types, Polymarket data collection, and decision utilities for AI-driven city weather analysis 2026-04-26 09:40:02 +08:00
2569718930@qq.com b25c9312da feat: add multi-model Open-Meteo data collection and implement scan terminal dashboard service 2026-04-26 06:55:16 +08:00
2569718930@qq.com 3083d6b8fe feat: implement scan terminal service with caching, background refresh, and AI-driven market analysis support 2026-04-25 04:25:17 +08:00
2569718930@qq.com 77c0597e74 feat: implement Polymarket data collection and dashboard UI for weather market analysis 2026-04-25 03:59:02 +08:00
2569718930@qq.com 0e5a1f2652 feat: implement ScanTerminalDashboard with modular components and backend integration for Polymarket data collection 2026-04-25 03:26:28 +08:00
2569718930@qq.com 62a12257f0 Upgrade V4 scan to city analysis 2026-04-25 02:19:37 +08:00
2569718930@qq.com 99ffa717ef Use model cluster for tail no scan signals 2026-04-24 15:12:53 +08:00
2569718930@qq.com 42d4a4e198 Simplify scan opportunity list and speed quotes 2026-04-24 14:26:47 +08:00
2569718930@qq.com c61a3f500d feat: implement Polymarket read-only data service and add scan terminal dashboard components 2026-04-24 10:19:16 +08:00
2569718930@qq.com 79b58a8b98 Add locale controls and distribution previews to scan terminal 2026-04-24 00:34:09 +08:00
2569718930@qq.com ddc0180ae6 Implement EMOS scan terminal with REST-only market data 2026-04-23 23:49:52 +08:00
2569718930@qq.com e2eb5eb429 feat: implement PolymarketReadOnlyLayer for data collection and add comprehensive unit tests 2026-04-23 21:15:47 +08:00
2569718930@qq.com ca81fda287 feat: implement analysis service, dashboard components, and data collection utilities for PolyWeather 2026-04-23 21:10:22 +08:00
2569718930@qq.com 54b326ff42 feat: implement comprehensive Polymarket weather analysis service with frontend dashboard and market scanning capabilities 2026-04-23 20:45:32 +08:00
2569718930@qq.com 94f1a64522 Use Shenzhen market for Lau Fau Shan 2026-04-23 00:31:31 +08:00
2569718930@qq.com 40564b545d Optimize probability hub market refresh 2026-04-22 04:54:19 +08:00
2569718930@qq.com 67eec8dcdd Optimize city list load from SQLite history 2026-04-22 04:32:25 +08:00
2569718930@qq.com 974b55e34f Add full probability distributions to dashboard 2026-04-22 01:43:13 +08:00
2569718930@qq.com e5facb041c Handle range-based Polymarket temperature buckets 2026-04-22 00:38:19 +08:00
2569718930@qq.com 5a1610d428 feat: implement Polymarket WebSocket cache and add dashboard panel UI components 2026-04-22 00:09:49 +08:00
2569718930@qq.com b5c1de1078 Add debug logging for Polymarket market scans 2026-04-21 22:40:51 +08:00
2569718930@qq.com bb6fe21166 feat: implement read-only Polymarket data collection layer with market discovery and price fetching 2026-04-21 21:54:20 +08:00
2569718930@qq.com 9eba41cd1c Hydrate bucket prices from token IDs 2026-04-21 21:31:15 +08:00
2569718930@qq.com 82ec594277 启用概率校准和 WebSocket 报价配置 2026-04-21 21:06:48 +08:00
2569718930@qq.com 582ded8cfb 改进METAR当日状态判断与展示 2026-04-21 19:13:33 +08:00
2569718930@qq.com f5fe8b9b95 feat: implement Supabase entitlement service for signup trials and subscription management 2026-04-19 20:19:38 +08:00
2569718930@qq.com d1fa49ee35 Fix city-local nearby station time labels 2026-04-19 18:45:25 +08:00
2569718930@qq.com d6cc3b1b90 Fix city-local time display for nearby stations 2026-04-19 15:37:13 +08:00
2569718930@qq.com 717106eec6 Anchor Paris weather data to Le Bourget 2026-04-19 14:25:38 +08:00
2569718930@qq.com 22060efae6 Clamp EMOS calibrated mu to observed max and add tests 2026-04-19 03:56:35 +08:00
2569718930@qq.com 1892d638fa Promote EMOS to the primary probability engine 2026-04-19 03:36:26 +08:00
2569718930@qq.com fbbd13b1c3 Add nearby station timing sync labels 2026-04-19 02:38:34 +08:00
2569718930@qq.com 80072e3a7f Enable fast METAR refresh for Lagos 2026-04-19 01:55:42 +08:00
2569718930@qq.com 25122fed4a Use realtime METAR cluster for Moscow nearby maps 2026-04-18 16:28:08 +08:00
2569718930@qq.com 8c6a7c4071 Fix Russia station parser to read latest archive row 2026-04-18 16:15:34 +08:00
2569718930@qq.com 4e4c809265 Expand Moscow nearby station map coverage 2026-04-18 16:07:37 +08:00
2569718930@qq.com 449eb48d8b Add history model context and widen signal push window 2026-04-17 19:49:01 +08:00