Commit Graph

39 Commits

Author SHA1 Message Date
2569718930@qq.com 78b23ef361 feat: implement Telegram account binding and update project structure in documentation 2026-05-18 17:10:44 +08:00
2569718930@qq.com 6041d25f23 feat: add telegram group pricing and direct payments 2026-05-18 16:18:26 +08:00
2569718930@qq.com fd59cd018d Harden Open-Meteo rate limiting 2026-05-18 00:13:51 +08:00
2569718930@qq.com b27bedbca3 修复网站 API 阻塞与积分同步问题
- uvicorn 改用 import string 格式启动 4 workers,防止数据采集阻塞 event loop
- prewarm 去掉 --force-refresh,仅依赖缓存预热避免每 5 分钟全量采集
- 积分变动时同步写入 Supabase user_metadata,避免前端回退路径失败时显示 0 积分
- /api/auth/me 积分解析增加 Supabase email 回退路径
2026-05-16 13:15:30 +08:00
2569718930@qq.com d97bb76480 移除 city_daily_max 表及 upsert 逻辑,日最高已改用 intraday_path_snapshots_store 2026-05-13 21:14:28 +08:00
2569718930@qq.com cac84dcc0c 修复今日最高:新增 city_daily_max 表,所有数据源写入日最高
- DB: city_daily_max(icao,max_temp,obs_date,max_time) upsert
- AMOS/JMA/KNMI/FMI/HKO/METAR集群/CWA 采集后均写入
- Rust: 读 city_daily_max 获取准确日最高 + 时间
- 卡片恢复 High 行,显示最高温 + 达成时间
- new_high 提醒也基于真实日最高重新生效

Tested: cargo build + ruff check 均通过
2026-05-13 20:50:46 +08:00
2569718930@qq.com a29ebfae27 今日实测最高改用 airport_current.max_so_far(METAR历史观测)
项目已有 airport_current 字段存储 METAR/AMOS 当天最高温及时间,
无需从 obs_log 自建。obs_log 保留期恢复为 2 小时。

Tested: pytest 176 passed, ruff check 通过
2026-05-12 21:15:57 +08:00
2569718930@qq.com b1d0e41fd4 今日实测最高改为从 airport_obs_log 取值,延长保留至 24h
不再依赖 city_weather.current.max_so_far(可能来自 METAR 等非机场源),
直接从 airport_obs_log 的机场站点观测历史中计算当日最高温及时间。
obs_log 保留期从 2h 延长到 24h 以支撑跨天查询。

Tested: pytest 176 passed, ruff check 通过
2026-05-12 21:12:53 +08:00
2569718930@qq.com 203094a97c 修复测试:移除 momentum_spike 断言 + Python 3.8 类型兼容
build_trading_alerts 已移除 momentum_spike 规则,对应测试也更新。
get_airport_obs_recent 返回类型改用 List[Dict] 兼容 3.8。

Tested: pytest 176 passed
2026-05-12 19:13:06 +08:00
2569718930@qq.com 64f8ff21ec @
新增机场高频推送:10分钟级温度监控 + DEB预测快报

为首尔/釜山/东京三大机场城市实现高频温度监控通道:
- 新增 airport_obs_log 表积累观测数据,支持趋势检测
- AMOS/JMA 成功后自动写入观测日志
- 新增 airport_rapid_temp_change 告警规则(20min窗口、0.5°C/10min阈值)
- 10分钟间隔高频子循环 + 30分钟机场快照(含 DEB 预测最高温)
- 最高温锁定后自动跳过,快照仅当地 08:00-20:00 发送

Tested: ruff check 通过
@
2026-05-12 17:04:17 +08:00
AmandaloveYang 76b4a5df59 修复转化漏斗:后端返回原始比率,避免前端二次乘以 100 导致显示 3750%
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 15:49:39 +08:00
AmandaloveYang 787d04619b feat: revamp points/reward system for inclusive engagement
- /city /deb now free, capped at 10/day each (was 2 pts cost)
- Welcome bonus +20 pts on first-ever valid message
- First-message-of-day bonus +2 pts
- Weekly winner point bonuses reduced (500→200, 300→100, 150→50)
- Weekly participation rewards for all active users (+5 base, +15 for ≥20 pts)
- Pro-day rewards for top 3 unchanged

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 13:35:52 +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 67eec8dcdd Optimize city list load from SQLite history 2026-04-22 04:32:25 +08:00
2569718930@qq.com c0e5307893 Add cached dashboard prewarm hints for priority cities 2026-04-16 15:05:14 +08:00
2569718930@qq.com 53d2ae4c10 Retire dual storage mode and default runtime state to sqlite 2026-04-16 00:52:55 +08:00
2569718930@qq.com e2c43351bd Make city history read from SQLite truth and feature records 2026-04-05 10:57:51 +08:00
2569718930@qq.com 781c247952 Add ops dashboards for training data and model coverage 2026-04-03 00:57:19 +08:00
2569718930@qq.com 3bbd8774a4 Sync Telegram profile fields to Supabase and show user IDs 2026-04-01 02:13:17 +08:00
2569718930@qq.com c29b560401 Add app analytics tracking for paywall and checkout events 2026-03-31 07:15:54 +08:00
2569718930@qq.com 7adec4e17c Add peak-12h DEB history reference and bump extension to 0.1.5 2026-03-23 23:17:48 +08:00
2569718930@qq.com fcaa9d5c7f Store HKO intraday observations in runtime state 2026-03-23 21:28:04 +08:00
2569718930@qq.com e662ef7d3b Add ops tools for payment incident triage and resolution 2026-03-21 13:44:32 +08:00
2569718930@qq.com 75c2baf1d1 Add ops membership list and official source links 2026-03-21 13:02:07 +08:00
2569718930@qq.com e7e52c0da7 Release v1.5.0 and add ops admin dashboard 2026-03-21 00:40:28 +08:00
2569718930@qq.com ddf909f690 Add script to grant points by Supabase email 2026-03-20 23:52:49 +08:00
2569718930@qq.com 98d36a9174 Fix weekly points display and clarify leaderboard stats 2026-03-20 23:50:40 +08:00
2569718930@qq.com a0b8a3595c feat: Implement payment processing with contract auditing, event loops, and web observability endpoints. 2026-03-20 23:33:50 +08:00
2569718930@qq.com 43749fff7c Unify runtime state in SQLite and add rollout observability 2026-03-20 23:00:07 +08:00
2569718930@qq.com 786765e48b feat: implement SQLite database manager for user data, points, and Supabase bindings. 2026-03-13 19:48:40 +08:00
2569718930@qq.com edf2a37976 feat: Implement core Telegram bot features including command handling, user points, and identity management, and add Polymarket wallet activity watcher. 2026-03-13 18:39:39 +08:00
2569718930@qq.com ac9e537070 feat: Implement initial web frontend, comprehensive database management, and a bot-based weekly reward system. 2026-03-13 16:47:25 +08:00
2569718930@qq.com 024df2dc5b feat: implement user account center with authentication, payments, and subscriptions. 2026-03-13 10:14:13 +08:00
2569718930@qq.com 990182e089 feat: Implement account center for user authentication, subscription, and payment management. 2026-03-13 09:50:04 +08:00
2569718930@qq.com f7b649bb0a feat: Implement bot orchestration, command handling, and runtime coordination for background services. 2026-03-13 05:53:41 +08:00
2569718930@qq.com 0a869459c4 feat: Implement Supabase authentication, account management UI, and entitlement services. 2026-03-13 02:23:01 +08:00
2569718930@qq.com bd333cf970 feat: Implement user point system with message activity tracking and command cost deductions, introducing a new db_manager.py for database operations. 2026-03-06 19:50:44 +08:00
2569718930@qq.com 7f0b57c47c feat: Initialize data infrastructure by adding historical weather data, various data storage files, a database manager, logging, and updating Docker Compose configuration. 2026-03-06 19:20:52 +08:00
2569718930@qq.com 14838fde4d feat: Add database-backed user and subscription management, update project architecture documentation, and outline technical debt. 2026-03-06 19:10:05 +08:00