Weather Widget
Embed a real-time weather widget on your website. Powered by Hyperion Live nowcasting, with auto-location detection, 3-day forecast, and support for 50+ languages.
Free6.6KB gzipped50+ LanguagesHyperion LiveDark ModeAuto-Location
API Key
Configure Widget
Live Preview
Enter an API key to see the preview
Documentation
Quick Start
Add this single line to your HTML and the widget appears automatically:
<script src="https://www.wfy24.com/widget.js" data-key="YOUR_API_KEY" data-city="athens-gr441183" data-theme="light" data-lang="en"> </script>
Attributes
| Attribute | Required | Default | Description |
|---|---|---|---|
| data-key | Yes | - | Your API key |
| data-city | No | auto-detect | City slug (e.g. "athens-gr441183"). If omitted, auto-detects user location. |
| data-theme | No | auto | light, dark, or auto (follows system preference) |
| data-lang | No | en | Language code (en, el, de, fr, es, it, pt, tr, ru, ja, zh, ar, ko, hi, nl, pl, bg, ...) |
| data-units | No | metric | metric (C, km/h) or imperial (F, mph) |
Features
- Real-time temperature from Hyperion Live nowcasting (station + radar + satellite + NWP fusion)
- Lightning detection within 100km with approach tracking
- Precipitation nowcast (minutes to rain/dry)
- 3-day forecast with min/max temperatures
- Auto-location detection via GPS (if permitted) or IP geolocation
- Shadow DOM isolation — no CSS conflicts with your site
- Auto-refreshes every 5 minutes
- Only 6.6KB gzipped — loads instantly
Rate Limits
Free API keys allow up to 600 requests per minute. Each widget refresh counts as 1 request. The widget auto-refreshes every 5 minutes, so a typical page gets ~12 requests/hour per visitor.