3 Commits

Author SHA1 Message Date
ramseshk 40f26cf232 Add /simple dashboard (zero JS deps) + Chart.js fallback error handler
- /simple: lightweight HTML dashboard, no external JS, works instantly
  Shows current conditions, tomorrow forecast, ML predictions,
  5-day forecast table, Kelly sizing, typhoon signal
- /: added Chart.js CDN onerror fallback — shows clear message + /simple link
  if CDN is unreachable (common cause of 'everything says loading')
2026-08-11 12:10:39 +08:00
ramseshk aad4ee8cf6 Add ML dashboard panel, paper trader, time decay model
- /api/ml endpoint: per-model raw vs calibrated, typhoon, spatial features
- ML Predictions card in web dashboard (color-coded, sorted by confidence)
- Typhoon Probabilities card (T1/T3/T8 now/72h/120h)
- PaperTrader: simulated trading with portfolio Kelly, P&L tracking,
  trade history persistence, auto-resolution after 24h
- TimeDecayModel: theta decay for binary options
  sigma(t) = sigma_0 * (T-t)^beta (beta=0.4 for weather)
  Fair price convergence from 50%→model_prob as expiry approaches
- Paper trader CLI: --track (monitor), --report, --simulate-days

Run dashboard: python web_dashboard.py  # see ML panel
Run paper:  python ml/paper_trader.py --simulate-days 30
2026-08-11 11:15:43 +08:00
ramseshk e59076ad6a Add web dev dashboard with real-time HK weather + model comparison
- Flask web server with interactive charts (Chart.js)
- Temperature, rain probability, wind speed charts with HKO vs Open-Meteo comparison
- Current conditions card with typhoon signal indicator
- Kelly criterion sizing simulator panel
- Trading signals panel with model-implied probabilities
- Raw forecast data JSON viewer
- Github-dark theme with responsive card layout
- Fixed Open-Meteo SDK compatibility and numpy bool serialization

Run: python web_dashboard.py  # http://localhost:5000
2026-08-10 17:11:49 +08:00