β Back to Amfor-Cast
π Feature Catalog
All features of Amfor-Cast at a glance β’ Aug 2026
1. Multi-Model Forecasts user
8-day forecasts from 8 NWP models fetched hourly from Open-Meteo:
| Model | Source | Resolution |
| ICON | German DWD | 7 km |
| Best match | Open-Meteo blend | varies |
| ECMWF | European Centre | 9 km |
| AROME | MΓ©tΓ©oFrance | 1.3 km |
| GFS | US NOAA | 25 km |
| CMA | China Met | 15 km |
| JMA | Japan Met | 20 km |
| GEM | Canadian Met | 15 km |
- Hourly tables for today & tomorrow (8 time slots)
- Weekly overview with min/max/avg per day per model
- Weather emoji + Hungarian summary in header
- Interactive Chart.js comparison charts (temperature, precipitation, cloud, water balance)
- Best model highlighted: π badge, 2px line, full opacity
- Non-best models: 1.5px line, 50% opacity
- Windy.com radar embed (thunder + rain radar)
2. AMFOR Weighted Ensemble user dev
Our own blended forecast β weights each NWP model by inverse-square of its historical error.
- Appears as 9th model (β‘ badge, dark navy, 2.5px line)
- Weights derived from rankings DB per city and horizon (short/medium/long)
- Falls back to uniform average when no rankings available
- Saved to DB by validator for accuracy evaluation against measurements
- Re-weights automatically as more evaluation data accumulates
Phase 1 (current): Inverse-square error weighting. Phase 2 (future): LightGBM ML model trained on 60+ days of data.
3. Weather History user
Measured (not forecast) hourly data for the past 3 / 7 / 30 days:
- 19 interactive Chart.js charts per city
- Temperature, apparent temp, dew point
- Humidity, pressure, precipitation (always shown), rain, snowfall
- Cloud cover (total, low, mid, high)
- Wind speed, gusts, direction
- Solar radiation (shortwave, direct, diffuse), sunshine duration
- Pressure rate of change (ΞP/hour)
- Headache & Storm Risk Index with red alert zones + π€ markers
- All charts: 180px height, responsive, hover for values, 1.5px lines
4. Headache & Storm Risk user
Composite risk index based on atmospheric conditions known to trigger headaches:
- Pressure drop rate scoring (biggest contributor)
- Humidity + temperature oscillation factors
- Risk SVG sparkline in forecast headers
- Alert zones (red background) on history charts
- π€ markers at logged headache events
- Correlation analysis: multi-city, pressure-triggered patterns
- Admin panel: add/delete headache events with date/severity/city
5. Model Accuracy Rankings user dev
Daily validator compares saved forecasts against measured actuals:
- Per city, per parameter (temp, precip), per horizon (short/medium/long)
- π₯π₯π₯ medals by MAE (mean absolute error)
- Color bar length = relative accuracy
- Rain hit rate: % of actual rain events correctly predicted
- Adaptive model selector uses these rankings for chart highlights
- AMFOR blend evaluated alongside NWP models
- Minimum 3 samples required before ranking
6. Route Weather Planner user
Plan drives with weather-aware routing (client-side, all models):
- Set origin/destination + departure time
- OSRM routing + Open-Meteo forecast at waypoints along route
- Road condition assessment (dry/wet/icy)
- Weather zones visualization (where rain starts/stops)
- Optimal departure time suggestion
- Multi-route comparison
- Mobile-first responsive layout
- Route feedback loop (localStorage + evaluate-routes.py)
7. Dynamic Cities user
Users add any city in the world β system auto-tracks it:
- Global city pool in DB (shared across users)
- Search via Nominatim geocoding
- Status badges: β
(full reports), β³ (pending next run), π (just added)
- Live widget for new cities (instant Open-Meteo fetch)
- Hybrid upgrade to full page on next hourly run
- City navigation: floating side panel (desktop) + horizontal tabs (mobile)
- Anonymous users see Budapest only; logged-in see their saved cities
- Pi auto-generates reports for all user-added cities
8. User Accounts user dev
Username + password authentication (no email β GDPR compliant):
- Username: 3-30 chars, alphanumeric +
_.-
- Password: min 8 chars, bcrypt hashed
- Sessions: secure httponly cookie, 30-day expiry, max 5 per user
- Rate limiting: 5 failed logins/username/15min, 20/IP/hour, 3 reg/IP/hour
- Saved favorite cities per user
- Onboarding hints for anonymous/new users
- Admin link for
username === 'demogun'
- Contact form in user menu (max 250 chars, saved to DB, visible in admin)
9. Admin Panel ops
Server-rendered PHP at /api/admin.php (HTTP Basic Auth, collapsible sidebar):
- π Dashboard β table counts, system overview
- π₯ Users β view, delete with cascade
- π Cities β configured locations
- π Sessions β active sessions, revoke
- π€ Headaches β event log, add/delete
- π£οΈ Routes β route weather logs
- π Evaluations β model accuracy data
- β οΈ Gaps & Failures β coverage issues
- π‘οΈ Security β login attempts
- π Deployments β run history (last 5 days)
- π Uptime β 7-day reachability stats
- βοΈ Messages β user contact messages, delete
10. Monitoring & Alerts ops
Multi-layer reliability monitoring:
- Uptime monitor: 5-point check every 10min (DNS, TCP:443, HTTPS GET, SSH, rsync dry-run)
- Failure emails: Sent on first failure with diagnostics
- Recovery emails: Sent when all steps pass after a failure
- Cross-mode state safety: Hourly resume won't discard daily failures
- Run log (JSONL): Every run with timing, ok/failed counts, step names
- Uptime log (JSONL): Per-check latency and failure details
- Public uptime report: Shareable HTML (no login needed)
- Log rotation: cron.log truncated to 5000 lines at 10000
11. PWA & Mobile user
- PWA manifest β installable on Android/iOS (Add to Home Screen)
- Standalone display mode (no browser chrome)
- Icons at 32/180/192/512px
- Dark navy theme color
- Mobile-first responsive on all pages
- Floating city navigation adapts to phone width
- Service worker (offline) β planned for future
12. Bilingual (EN/HU) user
- Full-page EN/HU toggle on user guide, dev docs
- Hungarian weather summary in forecast header
data-i18n attributes for client-side translation
i18n.js handles language switching + localStorage persistence
13. Themes user
- 4 themes: Prism (default), Dark, Solarized Light, Solarized Dark
- Theme toggle in header (persisted via localStorage)
- CSS variables for all colors β
theme.css
- New visitors get Prism; existing users keep their choice
14. Automated Pipeline dev ops
Fully automated from cron to production:
| Step | Schedule | What |
| Hourly forecast | 0 * * * * | Fetch models β generate HTML β rsync to prod |
| Retry | 15,30,45 * * * * | Resume failed steps only |
| Daily validator | 5 6 * * * | Save snapshot + evaluate + rank + AMFOR blend |
| Uptime | */10 * * * * | 5-point reachability check |
| DB backup | Daily | mysqldump (30-day retention) |
- State machine with atomic JSON writes (resume-friendly)
- Circuit breaker: probes API before starting batch
- Parallel fetching: 4 model threads + 2 city processes
- 3-tier exit code: 0=sync, 1=partial sync, 2=no sync
- Partial model failure tolerance (β₯3/8 models)
- GitLab CI: ruff + mypy + pytest on every MR
- Auto cache-busting: JS/CSS get
?v=git-hash
Amfor-Cast Feature Catalog β’ Last updated: Aug 2026