Linux 软件免费装
Banner图

WFY24 Weather Widget – Forecast & Air Quality

开发者 wfy24
更新时间 2026年11月14日 07:56
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

widget weather forecast weather widget air quality

下载

2.6.0 2.0.0 2.0.1 2.7.0 2.0.3 1.5.6 1.7.1 2.0.2 2.1.0 2.1.1 1.6.0 1.7.0 2.4.0 2.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.3.0

详情介绍:

WFY24 Weather Widget puts a weather card from wfy24.com on any post, page or sidebar: with the WFY24 Weather Widget block, the [wfy24_weather] shortcode, or the one-click quick actions on the settings screen. There is no API key to sign up for and nothing to copy and paste. The activation button registers your site with wfy24.com and stores the widget key for you. What your visitors see Built to stay out of your way Where the forecast comes from The forecast is wfy24.com's and is based on numerical weather models: DWD ICON (ICON-D2 over central Europe, ICON-EU over Europe, ICON global elsewhere), ECMWF and NOAA GFS. The Classic, Forecast, Week and Country map layouts name the models in their footer. The Country map's region boundaries come from OpenStreetMap data, credited on the map. Usage Shortcode, with the defaults from Settings → WFY24 Weather: [wfy24_weather] Override them for one widget: [wfy24_weather city="paris-fr17807753" theme="dark" variant="forecast" lang="fr"] [wfy24_weather variant="country" country="GR"] shows the Country map of Greece. Attributes: city (a wfy24.com city slug), variant (classic, compact, minimal, badge, forecast, aqi, aqi-wide, country, week), country (the Country map's two-letter country code, e.g. GR; without it, the country of the city, else the visitor's — the settings screen and the block list the countries by name), theme (auto, light, dark), units (metric, imperial), lang (any of the 52 codes, optionally with a region such as pt-BR), width (400, 400px, 80%) and geolocation (on asks the visitor's browser for the precise location). Or add the WFY24 Weather Widget block (Widgets category). Its settings start on «Site default» and follow Settings → WFY24 Weather until you change them; the editor shows the chosen layout with sample weather. Attribution Every widget shows one small credit link, «wfy24.com». It opens the wfy24.com forecast page of the place the widget shows, in a new tab; the place name in the widget links to the same page. On the Country map the credit opens the country's page, the title and each town link to their pages on wfy24.com, and the map credit «© OpenStreetMap» links to OpenStreetMap's copyright page. The activation screen mentions the credit link above the «Activate now (free)» button. External services This plugin works with the WFY24 weather service at https://www.wfy24.com. Requests from your server carry a User-Agent with the plugin's name and version and your site's address. wfy24.com is served through Cloudflare. Like any web server it keeps access logs of these requests — the visitor's IP address, the address of the page that shows the widget (Referer), the browser's User-Agent and the request with the widget key shortened — currently for about 52 days, for security, rate limiting and abuse prevention. The plugin runs no scheduled tasks and sends no telemetry.

安装:

  1. Install the plugin from Plugins → Add New (search for «WFY24»), or upload it to /wp-content/plugins/wfy24-weather-widget/.
  2. Activate it. Settings → WFY24 Weather opens.
  3. Check the pre-filled email and your defaults (city, language, theme, units) and click Activate now (free). The widget is live: use the quick actions (Create Weather page, Add to sidebar), the block, or [wfy24_weather] anywhere.
Already have a key (an earlier install of this plugin, the wfy24.com widget builder, or the main site of a sub-directory Multisite)?
  1. Go to Settings → WFY24 Weather.
  2. Open Connect an existing WFY24 widget and paste the key (it looks like wfy24_ followed by 32 letters and digits). A value of any other shape is rejected and nothing is changed.
  3. Add the block or [wfy24_weather] to any post, page or widget area.

屏幕截图:

  • The welcome screen on first open — "Activate now (free)" or enter a key manually
  • Classic widget layout rendered on a live WordPress page

升级注意事项:

2.7.0 Pick the Country map's country by name; set the widget's width with a slider on the preview and see its size. Fix: a percentage width was applied twice (80% drew 64%), so pages that use one get a wider widget. No settings change needed. 2.6.0 New layouts: Country map and Week (7 days). The block works in the editor; admin previews run in a sandbox; no layout jump; structured data is now opt-in: this update turns it off (re-tick under Advanced); Pro code removed; a support link; complete translations; Bosnian (52). Needs WordPress 6.3. 2.5.0 Paste-your-key form and a clear message when the site is already registered; widget language defaults to your site language; Armenian added (51); fresh installs show IP-based local weather instead of an error box. Existing settings unchanged. 2.4.0 The admin interface is now translated into 15 locales and the plugin is tested against WordPress 7.1. No settings changes needed.

常见问题:

Is it really free?

Yes. No credit card, no trial, no paid plan and no ads in the widget. Fair-use rate limits apply; they are generous for normal sites.

Do I need an API key?

The widget uses one, but you do not have to get it: you sign up nowhere, and the activation button registers your site with wfy24.com and stores the widget key for you. If you already have a key — from an earlier install, from the wfy24.com widget builder or from another subsite — paste it into Connect an existing WFY24 widget on the same screen.

Can I revoke or change my key later?

Yes — visit wfy24.com/en/widgets to manage keys (the «Lost it? request a replacement» link on the activation screen takes you to the same place). Paste a replacement key issued there into this plugin: on a site that already has a key, into the API key field under Settings → WFY24 Weather → Advanced, then «Save changes»; on a site without one, into Connect an existing WFY24 widget. The old key stops working within about 30 minutes.

What data is sent to wfy24.com?

See «External services» above. The plugin's own requests happen only when you activate, search for a city, save a default city, save a post, page or widget area that names a city while «SEO structured data» is ticked, or open its settings screen while a city's name is still missing (to look up the place's name). Visitors' browsers load the widget from wfy24.com on pages that show one. In the admin, once the site is activated, the settings screen and the block editor load widget.js into a sandboxed frame for their previews, which use sample weather: no key, no weather request.

Does it slow my site down?

It adds one script, loaded asynchronously in the footer of pages that show a widget; pages without a widget load nothing from wfy24.com. The space for the widget is reserved before it loads, so the page does not jump.

Can I customize the look?

Choose from 9 layouts (Classic, Compact, Minimal, Badge, Forecast, Air quality, Air quality + weather wide, Country map, Week), 3 themes (Auto, Light, Dark), metric or imperial units and a width. The card is drawn in a Shadow DOM, so your theme's CSS does not change it.

What languages are supported?

  1. The widget starts in your WordPress site language as it is when you activate the plugin, and keeps it: if you change the site language later, change the widget's too in Settings → WFY24 Weather. Set the lang attribute on a shortcode, or the Language setting of a block, to use another for one widget.

How do I find a city slug?

Easiest: pick the city in Settings → WFY24 Weather, which stores the slug for you. Or search for the city on wfy24.com and copy the last part of its forecast page address: www.wfy24.com/en/weather/paris-fr17807753 → paris-fr17807753.

Does it work with caching plugins?

Yes. The weather is fetched in the visitor's browser, so a cached page still shows the current forecast.

Does it work with the block editor?

Yes — the «WFY24 Weather Widget» block, in the Widgets category. Once the site is activated, the editor shows the chosen layout with sample weather; the published page shows the live forecast.

Is there a «powered by» link?

One small link with the text wfy24.com in each widget; see «Attribution» above.

Where do I get help?

In the plugin's support forum on WordPress.org. The settings screen and the plugin's row on the Plugins screen link to it («Help & support»).

更新日志:

2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 Earlier versions 1.x (2026): the first releases — shortcode, block, settings page, activation without copy and paste, structured data and the city picker. Their notes are in the plugin's SVN history.